Move npm run sub:init to preinstall

This commit is contained in:
Hinton 2021-02-11 19:08:37 +01:00
parent 1a03e053b0
commit 238d0c5c69
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@
"sub:update": "git submodule update --remote",
"sub:pull": "git submodule foreach git pull origin master",
"sub:commit": "npm run sub:pull && git commit -am \"update submodule\"",
"postinstall": "electron-rebuild && npm run sub:init",
"preinstall": "npm run sub:init",
"postinstall": "electron-rebuild",
"symlink:win": "rm -rf ./jslib && cmd /c mklink /J .\\jslib ..\\jslib",
"symlink:mac": "npm run symlink:lin",
"symlink:lin": "rm -rf ./jslib && ln -s ../jslib ./jslib",