Merge pull request #32820 from woocommerce/fix/fix-ts-build-errors

Fix TS build errors in admin
This commit is contained in:
Moon 2022-04-28 19:09:59 -07:00 committed by GitHub
commit 938cd88ff6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -155,4 +155,5 @@ export type Extension = {
manage_url: string; manage_url: string;
name: string; name: string;
is_built_by_wc: boolean; is_built_by_wc: boolean;
is_visible: boolean;
}; };

View File

@ -11,7 +11,7 @@
"scripts": { "scripts": {
"analyze": "cross-env NODE_ENV=production ANALYZE=true webpack", "analyze": "cross-env NODE_ENV=production ANALYZE=true webpack",
"prebuild": "pnpm run install-if-deps-outdated", "prebuild": "pnpm run install-if-deps-outdated",
"build": "WC_ADMIN_PHASE=core pnpm run build:feature-config && cross-env NODE_ENV=production WC_ADMIN_PHASE=core webpack", "build": "pnpm run clean && WC_ADMIN_PHASE=core pnpm run build:packages && WC_ADMIN_PHASE=core pnpm run build:feature-config && cross-env NODE_ENV=production WC_ADMIN_PHASE=core webpack",
"build:feature-config": "php ../woocommerce/bin/generate-feature-config.php", "build:feature-config": "php ../woocommerce/bin/generate-feature-config.php",
"build:packages": "cross-env NODE_ENV=production pnpm run:packages -- build", "build:packages": "cross-env NODE_ENV=production pnpm run:packages -- build",
"clean": "rimraf ../woocommerce/assets/client/admin/* && pnpm run:packages -- clean --parallel", "clean": "rimraf ../woocommerce/assets/client/admin/* && pnpm run:packages -- clean --parallel",

View File

@ -20,6 +20,7 @@
"executor": "@nrwl/workspace:run-commands", "executor": "@nrwl/workspace:run-commands",
"options": { "options": {
"commands": [ "commands": [
"WC_ADMIN_PHASE=development pnpm nx clean woocommerce-admin",
"WC_ADMIN_PHASE=development pnpm nx dev woocommerce-admin", "WC_ADMIN_PHASE=development pnpm nx dev woocommerce-admin",
"pnpm nx watch woocommerce-admin" "pnpm nx watch woocommerce-admin"
], ],