From ab2be2a1822784212ea709080b391f1452125af7 Mon Sep 17 00:00:00 2001 From: Cameron-C-Chapman Date: Wed, 3 Mar 2021 16:58:44 -0600 Subject: [PATCH] Add dependency build script to typescript webpack template package.json --- templates/express-starter-typescript-webpack/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/express-starter-typescript-webpack/package.json b/templates/express-starter-typescript-webpack/package.json index 51bd4b5..2addb17 100644 --- a/templates/express-starter-typescript-webpack/package.json +++ b/templates/express-starter-typescript-webpack/package.json @@ -14,7 +14,8 @@ "webpack-cli": "^3.3.12" }, "scripts": { - "build": "webpack && npm i --only=prod --prefix=build/", + "build": "webpack && npm run build-dependencies", + "build-dependencies": "cp package*.json build/ && npm i --only=prod --prefix=build", "test": "echo \"Error: no test specified\" && exit 1" }, "author": "",