Skip to content

Commit efbaa80

Browse files
committed
chore: only run patch-package for build targets
1 parent 0f13c25 commit efbaa80

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

package-lock.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -141,19 +141,20 @@
141141
"reformat-only": "prettier --single-quote --trailing-comma es5 --print-width 80 --arrow-parens always --write",
142142
"lint-fix": "eslint --fix Sources Examples",
143143
"lint": "eslint Sources Examples",
144-
"doc": "kw-doc -c ./Documentation/config.js",
145-
"doc:www": "npm t -- --single-run && kw-doc -c ./Documentation/config.js -s",
146-
"doc:minified": "kw-doc -c ./Documentation/config.js -m",
147-
"doc:generate-api": "node ./Documentation/generate-api-docs.js",
144+
"doc": "npm run build:pre && kw-doc -c ./Documentation/config.js",
145+
"doc:www": "npm t -- --single-run && npm run build:pre && kw-doc -c ./Documentation/config.js -s",
146+
"doc:minified": "npm run build:pre && kw-doc -c ./Documentation/config.js -m",
147+
"doc:generate-api": "npm run build:pre && node ./Documentation/generate-api-docs.js",
148148
"example": "node ./Utilities/ExampleRunner/example-runner-cli.js -c ./Documentation/config.js",
149149
"example:https": "node ./Utilities/ExampleRunner/example-runner-cli.js --server-type https -c ./Documentation/config.js",
150150
"example:webgpu": "cross-env WEBGPU=1 NO_WEBGL=1 node ./Utilities/ExampleRunner/example-runner-cli.js --server-type https -c ./Documentation/config.js",
151+
"build:pre": "patch-package",
151152
"dev:esm": "npm run build:esm -- -w",
152-
"dev:umd": "webpack --watch --config webpack.dev.js --progress",
153+
"dev:umd": "npm run build:pre && webpack --watch --config webpack.dev.js --progress",
153154
"build": "npm run build:release",
154-
"build:esm": "rollup -c rollup.config.js",
155-
"build:umd": "webpack --config webpack.prod.js --progress",
156-
"build:release": "npm run lint && concurrently \"cross-env NOLINT=1 npm run build:esm\" \"cross-env NOLINT=1 npm run build:umd\"",
155+
"build:esm": "npm run build:pre && rollup -c rollup.config.js",
156+
"build:umd": "npm run build:pre && webpack --config webpack.prod.js --progress",
157+
"build:release": "npm run lint && npm run build:pre && concurrently \"cross-env NOLINT=1 npm run build:esm\" \"cross-env NOLINT=1 npm run build:umd\"",
157158
"release:create-packages": "node ./Utilities/ci/build-npm-package.js",
158159
"test": "karma start ./karma.conf.js",
159160
"test:headless": "karma start ./karma.conf.js --browsers ChromeHeadlessNoSandbox --single-run",
@@ -163,8 +164,7 @@
163164
"test:firefox-debug": "karma start ./karma.conf.js --browsers Firefox --no-single-run",
164165
"commit": "git cz",
165166
"semantic-release": "semantic-release",
166-
"prepare": "node ./Utilities/prepare.js",
167-
"postinstall": "patch-package"
167+
"prepare": "node ./Utilities/prepare.js"
168168
},
169169
"config": {
170170
"commitizen": {

0 commit comments

Comments
 (0)