update post install scripts

This commit is contained in:
SrGooglo 2023-10-12 20:54:53 +00:00
parent fda218be0d
commit ec1e505966
2 changed files with 9 additions and 2 deletions

View File

@ -14,8 +14,8 @@
"dev:server": "cd packages/server && yarn dev",
"dev:client": "cd packages/app && yarn dev",
"release": "node ./scripts/release.js",
"post:deploy": "node ./scripts/post-deploy.js",
"postinstall": "npm rebuild @tensorflow/tfjs-node --build-from-source && node ./scripts/post-install.js"
"postdeploy": "node ./scripts/post-deploy.js",
"postinstall": "node ./scripts/post-install.js"
},
"workspaces": [
"packages/**"

View File

@ -89,6 +89,13 @@ async function main() {
await initializeEvite()
console.log("Rebuilding TFJS...")
await child_process.execSync("npm rebuild @tensorflow/tfjs-node --build-from-source &&", {
cwd: rootPath,
stdio: "inherit",
})
// read dir with absolute paths
let packages = await getPackages()