Skip to content

Commit

Permalink
workflow: pnpm:devPreinstall runs only under dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
cloydlau committed Dec 17, 2023
1 parent 69148a4 commit f6b20df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"serve": "vite preview",
"doc": "vitepress dev --open /README",
"release": "esno ./scripts/release.mts",
"pnpm:devPreinstall": "node -e \"if (process.env.INIT_CWD === process.cwd()) { process.exit(1) }\" || node ./scripts/devPreinstall.mjs",
"pnpm:devPreinstall": "node ./scripts/devPreinstall.mjs",
"preinstall": "node -e \"if (process.env.INIT_CWD === process.cwd()) { process.exit(1) }\" || npx only-allow pnpm",
"postinstall": "node -e \"if (process.env.INIT_CWD === process.cwd()) { process.exit(1) }\" || npx simple-git-hooks"
},
Expand Down Expand Up @@ -67,4 +67,4 @@
"lint-staged": {
"*.md": "case-police --fix"
}
}
}

0 comments on commit f6b20df

Please sign in to comment.