diff --git a/boilerplates/lerna-module/package.json b/boilerplates/lerna-module/package.json index feedc7d99..90b3650fc 100644 --- a/boilerplates/lerna-module/package.json +++ b/boilerplates/lerna-module/package.json @@ -21,9 +21,9 @@ }, "scripts": { "copy": "copyfiles -f ../../LICENSE README.md package.json dist", - "prepublishOnly": "npm run copy", "clean": "del dist/**", - "build": "npm run clean; tsc; tsc -p tsconfig.esm.json", + "prepare": "npm run build", + "build": "npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy", "test": "jest", "test:watch": "jest --watch" }, diff --git a/boilerplates/lerna-tsx-module/package.json b/boilerplates/lerna-tsx-module/package.json index 0de44b916..78676d2e7 100644 --- a/boilerplates/lerna-tsx-module/package.json +++ b/boilerplates/lerna-tsx-module/package.json @@ -21,9 +21,9 @@ }, "scripts": { "copy": "copyfiles -f ../../LICENSE README.md package.json dist", - "prepublishOnly": "npm run copy", "clean": "del dist/**", - "build": "npm run clean; tsc; tsc -p tsconfig.esm.json", + "prepare": "npm run build", + "build": "npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy", "test": "jest", "test:watch": "jest --watch" }, diff --git a/boilerplates/npm-boilerplate/package.json b/boilerplates/npm-boilerplate/package.json index 8cea0ffbf..64bb09381 100644 --- a/boilerplates/npm-boilerplate/package.json +++ b/boilerplates/npm-boilerplate/package.json @@ -21,9 +21,9 @@ }, "scripts": { "copy": "copyfiles -f LICENSE README.md package.json dist", - "prepublishOnly": "npm run copy", "clean": "del dist/**", - "build": "npm run clean; tsc; tsc -p tsconfig.esm.json", + "prepare": "npm run build", + "build": "npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy", "test": "jest", "test:watch": "jest --watch" },