Skip to content

Commit b0bc668

Browse files
committed
fix: streamline compile:demos and build scripts by removing unnecessary pwd commands
1 parent 410d7ff commit b0bc668

2 files changed

Lines changed: 13 additions & 8 deletions

File tree

demos/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"version": "0.0.1",
55
"type": "module",
66
"scripts": {
7-
"compile:demos": "pwd && cd .. && pwd && pnpm demos",
7+
"compile:demos": "cd .. && pnpm demos",
88
"dev": "vite",
9-
"build": "pwd && tsc -b && vite build",
9+
"build": "tsc -b && vite build",
1010
"lint": "eslint .",
1111
"preview": "vite preview"
1212
},

nx.json

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,23 @@
22
"$schema": "./node_modules/nx/schemas/nx-schema.json",
33
"defaultBase": "main",
44
"targetDefaults": {
5-
"build": {
5+
"dist": {
66
"dependsOn": [
7-
"^build",
8-
"minify",
9-
"lint",
10-
"compile:demos"
7+
"build"
118
],
129
"outputs": [
1310
"{projectRoot}/dist"
1411
],
1512
"cache": true
1613
},
14+
"build": {
15+
"dependsOn": [
16+
"^build",
17+
"minify",
18+
"lint",
19+
"compile:demos"
20+
]
21+
},
1722
"minify": {
1823
"dependsOn": [
1924
"^minify",
@@ -53,4 +58,4 @@
5358
]
5459
},
5560
"nxCloudId": "66b806726340ec37c5b8ec1b"
56-
}
61+
}

0 commit comments

Comments
 (0)