Skip to content

Commit

Permalink
fix: nx deps
Browse files Browse the repository at this point in the history
  • Loading branch information
JiLiZART committed Apr 23, 2024
1 parent a0c3282 commit 2d99220
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 4 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
},
"build": {
"dependsOn": [
"types",
"^types",
"^build:commonjs",
"^build:es",
"^build:umd"
],
"outputs": ["{projectRoot}/lib", "{projectRoot}/es", "{projectRoot}/dist"],
"cache": true
},
"test": {
Expand All @@ -28,6 +29,7 @@
},
"build:commonjs": {
"dependsOn": [
"^build:es",
"^build:commonjs"
],
"outputs": ["{projectRoot}/lib"],
Expand All @@ -42,6 +44,7 @@
},
"build:umd": {
"dependsOn": [
"^build:es",
"^build:umd"
],
"outputs": ["{projectRoot}/dist"],
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,9 @@
}
},
"pkgTasks": {
"build-commonjs": "@/cross-env BABEL_ENV=commonjs NODE_ENV=production @/swc ./src/ --config-file ../../.swcrc-commonjs.json --out-dir lib --strip-leading-paths",
"build-es": "@/cross-env BABEL_ENV=es NODE_ENV=production @/swc ./src/ --config-file ../../.swcrc.json --out-dir es --strip-leading-paths",
"build-umd": "@/cross-env BABEL_ENV=rollup NODE_ENV=production @/rollup --config ../../rollup.config.mjs",
"build": "npm run types && npm run build:commonjs && npm run build:es && npm run build:umd",
"build:commonjs": "@/cross-env BABEL_ENV=commonjs NODE_ENV=production @/swc ./src/ --config-file ../../.swcrc-commonjs.json --out-dir lib --strip-leading-paths",
"build:es": "@/cross-env BABEL_ENV=es NODE_ENV=production @/swc ./src/ --config-file ../../.swcrc.json --out-dir es --strip-leading-paths",
"build:umd": "@/cross-env BABEL_ENV=rollup NODE_ENV=production @/rollup --config ../../rollup.config.mjs",
"test": "npm run build && @/jest",
"cover": "npm run build && @/jest --config ../../jest.config.js --coverage .",
"lint": "@/eslint .",
Expand Down

0 comments on commit 2d99220

Please sign in to comment.