Skip to content

Commit

Permalink
配置vscode lerna task
Browse files Browse the repository at this point in the history
  • Loading branch information
jetjo committed May 17, 2024
1 parent 2f1b9c0 commit f939490
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,21 @@
// "uriFormat": "http://localhost:%s"
// }
}
{
"name": "Dev Next App",
"request": "launch",
"runtimeArgs": [
"run-script",
// 此命令由两个子命令组成: `pnpm lerna-watch-deps & pnpm lerna-dev`,
// 如果在终端中运行, 当`Ctrl-C`退出后, 第一个子指令`pnpm lerna-watch-deps`无法退出
"task-dev"
],
"runtimeExecutable": "pnpm",
"cwd": "${workspaceFolder}",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
}
]
}
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
"start": "next start",
"lint": "next lint",
"show-ts-conf": "ts-node --showConfig",
"build-fonts": "node .bin/build-fonts.mjs"
"build-fonts": "node .bin/build-fonts.mjs",
"lerna-ls-pkgs": "lerna la",
"lerna-dev": "lerna run dev --scope=\"next-blog\"",
"lerna-watch-deps": "lerna watch --ignore=\"next-blog\" --ignore=\"search\" -- lerna run predev --scope=\\$LERNA_PACKAGE_NAME",
"task-dev": "pnpm lerna-watch-deps & pnpm lerna-dev"
},
"dependencies": {
"@babel/preset-typescript": "^7.24.1",
Expand Down Expand Up @@ -74,4 +78,4 @@
"injected": true
}
}
}
}

0 comments on commit f939490

Please sign in to comment.