From ab5d64df3b3e8893fd1e3b9156b33ee5ab476527 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Mon, 25 Jan 2021 12:52:18 +0100 Subject: [PATCH] package.json: fix script name conflict with life cycle scripts --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 850af94..379ddc4 100644 --- a/package.json +++ b/package.json @@ -15,10 +15,10 @@ "scripts": { "test": "jest --verbose --runInBand", "clean": "(test ! -d dist || rm -r dist)", - "prepare": "cp package.json src/", + "prepareSources": "cp package.json src/", "compile": "yarn clean && tsc", - "dev": "yarn prepare && concurrently -k -n \"Typescript,Node,Webpack,Maildev\" -p \"[{name}]\" -c \"blue,green,red,yellow\" \"tsc --watch\" \"nodemon\" \"maildev\"", - "build": "yarn prepare && yarn compile && cp -r yarn.lock README.md config/ views/ dist/ && mkdir dist/types && cp src/types/* dist/types/", + "dev": "yarn prepareSources && concurrently -k -n \"Typescript,Node,Webpack,Maildev\" -p \"[{name}]\" -c \"blue,green,red,yellow\" \"tsc --watch\" \"nodemon\" \"maildev\"", + "build": "yarn prepareSources && yarn compile && cp -r yarn.lock README.md config/ views/ dist/ && mkdir dist/types && cp src/types/* dist/types/", "lint": "eslint . --ext .js,.jsx,.ts,.tsx", "release": "yarn build && yarn lint && yarn test && cd dist && yarn publish" },