diff --git a/package.json b/package.json index 21c9774a8..7274229ec 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "site:preview": "cd site && npm run build:preview", "site:intranet": "cd site && npm run build:intranet", "postsite:preview": "cp _site/index.html _site/404.html", - "prebuild": "rimraf es/* esm/* lib/* cjs/* dist/*", + "prebuild": "rimraf es/* esm/* lib/* cjs/* dist/* --glob", "build": "cross-env NODE_ENV=production rollup -c script/rollup.config.js && npm run build:tsc", "build:tsc": "run-p build:tsc-*", "build:tsc-es": "tsc --emitDeclarationOnly -d --outDir es/", @@ -165,7 +165,7 @@ "postcss": "^8.3.11", "prettier": "^2.6.2", "prismjs": "^1.25.0", - "rimraf": "^4.4.1", + "rimraf": "^5.0.1", "rollup": "^2.53.2", "rollup-plugin-analyzer": "^3.3.0", "rollup-plugin-esbuild": "^4.8.2", diff --git a/script/rollup.config.js b/script/rollup.config.js index d38a041d3..c8a6b901c 100644 --- a/script/rollup.config.js +++ b/script/rollup.config.js @@ -79,7 +79,7 @@ const getPlugins = ({ }), ignoreImport({ include: ['src/*/style/*'], - body: 'import "./style/css.js";', + body: 'import "./css.js";', }), ); } else if (ignoreLess) { @@ -91,7 +91,7 @@ const getPlugins = ({ }), ignoreImport({ include: ['src/*/style/*'], - body: 'import "./style/index.js";', + body: 'import "./index.js";', }), ); }