Skip to content

Commit

Permalink
chore: fix build script process in Windows env (#2644)
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn authored Aug 1, 2023
1 parent afa778c commit 3bd6c4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/",
Expand Down Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions script/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const getPlugins = ({
}),
ignoreImport({
include: ['src/*/style/*'],
body: 'import "./style/css.js";',
body: 'import "./css.js";',
}),
);
} else if (ignoreLess) {
Expand All @@ -91,7 +91,7 @@ const getPlugins = ({
}),
ignoreImport({
include: ['src/*/style/*'],
body: 'import "./style/index.js";',
body: 'import "./index.js";',
}),
);
}
Expand Down

0 comments on commit 3bd6c4d

Please sign in to comment.