From 269008eacbb4e78e7cc0773a3a430f397ca864fd Mon Sep 17 00:00:00 2001 From: retrofox Date: Wed, 25 Aug 2021 12:16:14 -0700 Subject: [PATCH] build for dev without watching changes --- projects/packages/post-list/composer.json | 2 +- projects/packages/post-list/package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/packages/post-list/composer.json b/projects/packages/post-list/composer.json index 807a4233dbd51..53f90857bea12 100644 --- a/projects/packages/post-list/composer.json +++ b/projects/packages/post-list/composer.json @@ -30,7 +30,7 @@ "scripts": { "build-development": [ "Composer\\Config::disableProcessTimeout", - "pnpm run watch" + "pnpm run start" ], "build-production": [ "Composer\\Config::disableProcessTimeout", diff --git a/projects/packages/post-list/package.json b/projects/packages/post-list/package.json index 6b72e8933e7fb..113b005ad5224 100644 --- a/projects/packages/post-list/package.json +++ b/projects/packages/post-list/package.json @@ -12,8 +12,8 @@ "build-all": "pnpm run install-if-deps-outdated && pnpm run clean && pnpm run build", "clean": "rm -rf build/", "build": "wp-scripts build", - "start": "wp-scripts start", - "watch": "pnpm run start", + "start": "NODE_ENV=development wp-scripts build", + "watch": "wp-scripts start", "lint:css": "wp-scripts lint-style", "lint:js": "wp-scripts lint-js" },