Skip to content

Commit

Permalink
strip postintall
Browse files Browse the repository at this point in the history
  • Loading branch information
magicmark committed Nov 19, 2023
1 parent dc467a4 commit fbaa626
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "extract-schema-coordinates",
"version": "3.0.4",
"version": "3.0.5",
"description": "extract schema coordinates from GraphQL documents",
"type": "module",
"exports": {
Expand All @@ -17,7 +17,7 @@
"build": "npx tsup-node src/extract-schema-coordinates.ts --dts --format esm,cjs --out-dir lib",
"typecheck": "npx tsup-node src/extract-schema-coordinates.ts --dts-only",
"postinstall": "npx husky install",
"prepare": "bash -c \"cat <<< $(jq 'del(.scripts.postinstall)' package.json) > package.json\"",
"prepare": "./strip-postinstall",
"test": "NODE_OPTIONS=--experimental-vm-modules jest"
},
"devDependencies": {
Expand Down
6 changes: 6 additions & 0 deletions strip-postinstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail

# prevent our postinstall hook from infecting applications
jq 'del(.scripts.postinstall)' package.json > package.json.tmp
mv package.json.tmp package.json

0 comments on commit fbaa626

Please sign in to comment.