Skip to content
This repository was archived by the owner on Jan 18, 2025. It is now read-only.

Commit a2ab6db

Browse files
author
Ernest
committed
build: fix build
1 parent 36c307b commit a2ab6db

File tree

3 files changed

+11
-46
lines changed

3 files changed

+11
-46
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@
4949
"@rollup/plugin-babel": "^6.0.0",
5050
"@rollup/plugin-json": "^6.0.0",
5151
"@rollup/plugin-node-resolve": "^15.0.0",
52+
"@rollup/plugin-terser": "^0.1.0",
5253
"@types/jest": "^29.0.0",
54+
"@types/node": "^20.11.30",
5355
"@vue/compiler-sfc": "^3.2.0",
5456
"@vue/test-utils": "^2.0.0-rc",
5557
"babel-jest": "^29.0.0",
@@ -66,7 +68,6 @@
6668
"rollup-plugin-copy-watch": "^0.0.1",
6769
"rollup-plugin-node-globals": "^1.4.0",
6870
"rollup-plugin-svg": "^2.0.0",
69-
"@rollup/plugin-terser": "^0.1.0",
7071
"rollup-plugin-typescript2": "^0.34.0",
7172
"rollup-plugin-vue": "^6.0.0-beta.9",
7273
"standard-version": "^9.1.0",

pnpm-lock.yaml

Lines changed: 8 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ formats.forEach(format => {
6767
})
6868
})
6969

70-
const isWatchMode = JSON.parse(process.env.npm_config_argv).original.includes('--watch')
70+
const isWatchMode = process.env.npm_lifecycle_script.includes('--watch')
7171
configs[configs.length - 1].plugins.push(
7272
copy({
7373
watch: isWatchMode ? ['src/index.css'] : false,

0 commit comments

Comments
 (0)