init submodule on npm install

This commit is contained in:
codetypes committed 2025-03-17 14:17:23 +08:00
1 parent 90d2e30ff7
commit f37bf6b48a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@
}, },
"scripts": { "scripts": {
"tsc-check": "tsc --noEmit", "tsc-check": "tsc --noEmit",
"postinstall": "tsx pre-commit.ts", "postinstall": "git submodule update --init --recursive && tsx pre-commit.ts",
"dev": "vite", "dev": "vite",
"build": "tsc && vite build && electron-builder", "build": "tsc && vite build && electron-builder",
"preview": "vite preview", "preview": "vite preview",
+1 -1
View File
@@ -1,4 +1,4 @@
import * as fs from "node:fs"; import * as fs from "fs";
const hooks = ` const hooks = `
#!/bin/sh #!/bin/sh