Skip to content

Commit

Permalink
Remove node_modules for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ytham committed Jan 19, 2024
1 parent ae82c60 commit 403a88c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/setLocal.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ if (process.argv[2] === "ci") {

const packageManager = ci ? "npm" : "pnpm";
const localPrefix = ci ? "file:" : "link:";
const optionalClearNodeModules = ci ? "" : "rm -rf node_modules &&";

const packages = {
"@axiom-crypto/circuit": {
Expand Down Expand Up @@ -63,7 +64,7 @@ function main() {
fs.writeFileSync(packageJsonPath.slice(1), JSON.stringify(packageJson, null, 2));

// Install dependencies & build
execSync(`cd ${packages[package].path.slice(1)} && ${packageManager} i && ${packageManager} run build && cd ..`);
execSync(`cd ${packages[package].path.slice(1)} &&${optionalClearNodeModules} ${packageManager} i && ${packageManager} run build && cd ..`);
}
}

Expand Down

0 comments on commit 403a88c

Please sign in to comment.