Skip to content

Commit

Permalink
♻️ refactor: move skip_postinstall to js
Browse files Browse the repository at this point in the history
  • Loading branch information
Rettend committed Nov 17, 2023
1 parent e0d856a commit a6a7525
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions bin/eemoji.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env node

import { process } from 'node:process'
import { runMain } from '../dist/index.mjs'

runMain()
if (!process.env.SKIP_POSTINSTALL)
runMain()
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"lint:fix": "pnpm run lint --fix",
"typecheck": "tsc --noEmit",
"release": "bumpp && unbuild && pnpm publish",
"postinstall": "if [ \"$SKIP_POSTINSTALL\" != \"true\" ]; then node ./bin/eemoji.mjs init -c none; fi",
"postinstall": "node ./bin/eemoji.mjs init -c none",
"preuninstall": "node ./bin/eemoji.mjs cleanup"
},
"dependencies": {
Expand Down

0 comments on commit a6a7525

Please sign in to comment.