wyt-cli 1.0.23 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/commands/run.js +2 -2
- package/bin/main.js +1 -1
- package/package.json +1 -1
package/bin/commands/run.js
CHANGED
|
@@ -267,7 +267,7 @@ function runDocsProjects(commandEnv) {
|
|
|
267
267
|
'VitePress Docs', // 新终端窗口的标题
|
|
268
268
|
'cmd',
|
|
269
269
|
'/k',
|
|
270
|
-
`cd ${docsPath} &&
|
|
270
|
+
`cd ${docsPath} && npm run dev`, // 在新窗口中执行的命令
|
|
271
271
|
];
|
|
272
272
|
} else {
|
|
273
273
|
// macOS / Linux:
|
|
@@ -281,7 +281,7 @@ function runDocsProjects(commandEnv) {
|
|
|
281
281
|
terminalArgs = [
|
|
282
282
|
'-e',
|
|
283
283
|
`tell application "Terminal"
|
|
284
|
-
do script "cd ${docsPath} &&
|
|
284
|
+
do script "cd ${docsPath} && npm run dev"
|
|
285
285
|
activate
|
|
286
286
|
end tell`,
|
|
287
287
|
];
|
package/bin/main.js
CHANGED