Skip to content

Commit 37e4a37

Browse files
committed
chore: updated dev script
1 parent 4b1d3f8 commit 37e4a37

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
},
4343
"scripts": {
4444
"init": "pnpm i",
45-
"dev": "esno scripts/dev.js",
45+
"dev": "pnpm run dev:other && pnpm run dev:client",
46+
"dev:other": "esno scripts/dev.js",
4647
"dev:client": "pnpm run --filter @ikun-svelte-devtools/client dev",
4748
"build": "pnpm run clean:dist && esno scripts/build.js",
4849
"play": "pnpm run --filter @ikun-svelte-devtools/playground dev",

scripts/dev.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import { runTask } from './utils.js';
22

3-
runTask('pnpm run dev', 'packages/shared', 'dev').finally(() => {
4-
runTask('pnpm run dev', 'packages/utils/client', 'dev').finally(() => {
5-
runTask('pnpm run dev', 'packages/utils/server', 'dev').finally(() => {
6-
runTask('pnpm run build', 'packages/icons', 'dev').finally(() => {
7-
runTask('pnpm run dev', 'packages/server', 'dev').finally(() => {});
3+
runTask('pnpm run build', 'packages/shared', 'build').finally(() => {
4+
runTask('pnpm run build', 'packages/utils/client', 'build').finally(() => {
5+
runTask('pnpm run build', 'packages/utils/server', 'build').finally(() => {
6+
runTask('pnpm run build', 'packages/icons', 'build').finally(() => {
7+
runTask('pnpm run build', 'packages/server', 'build').finally(() => {
8+
9+
});
810
});
911
});
1012
});
1113
});
14+

0 commit comments

Comments
 (0)