Skip to content

Commit c43452f

Browse files
committed
fix: write file issue
1 parent 77fa1e9 commit c43452f

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "fullstacksjs-vscode",
33
"displayName": "FullstacksJS Theme",
44
"description": "FullstacksJS community Minimal VSCode and Cursor theme based on FlatRemix",
5-
"version": "1.4.1",
5+
"version": "1.4.2",
66
"publisher": "FullstacksJS",
77
"license": "MIT",
88
"type": "module",

src/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export function kebabCase(str: string) {
2727
}
2828

2929
export function writeJSON(p: string, content: object) {
30+
fs.mkdirSync(path.dirname(p), { recursive: true });
3031
fs.writeFileSync(
3132
path.join(process.cwd(), p),
3233
`${JSON.stringify(content, null, 2)}\n`,

0 commit comments

Comments
 (0)