Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb8b0277

Browse files
committed
Fix npm run devtoString() error
1 parentbe5c643 commitb8b0277

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

‎package-lock.json‎

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎vite.config.ts‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,20 @@ import { defineConfig } from "vite";
66
importtsconfigPathsfrom"vite-tsconfig-paths";
77

88
functionconsolidateSnippets(projectRoot:string){
9-
constcmd=spawnSync("tsx",["utils/consolidateSnippets.ts"],{
9+
constcmd=spawnSync("npx",["tsx","utils/consolidateSnippets.ts"],{
1010
cwd:projectRoot,
11+
shell:true,
12+
stdio:"pipe",
1113
});
1214

1315
if(cmd.status===0)return;
1416

15-
console.log(`Consolidating snippets failed:\n${cmd.output.toString()}`);
17+
consterrorMessage=cmd.stderr?.toString().trim()||"No error message";
18+
constoutputMessage=cmd.stdout?.toString().trim()||"No additional output";
19+
20+
console.log(`❌ Consolidating snippets failed!`);
21+
console.log(`Error:${errorMessage}`);
22+
console.log(`Output:${outputMessage}`);
1623
}
1724

1825
// https://vitejs.dev/config/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp