Skip to content

Commit

Permalink
Add prepack script (#57)
Browse files Browse the repository at this point in the history
In #54, I removed the `postinstall` script. Our build/publish
pipeline actually depended on the build that was a consequence of
the `postinstall` script, so this broke publishing in that the
build never occurred.

This commit adds a `prepack` script which runs the build prior to
packing for publish.
  • Loading branch information
trevor-scheer authored Oct 12, 2022
1 parent 688ccb2 commit 946d79e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/many-ears-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@apollo/datasource-rest': patch
---

Fix build process (again), ensure built directory exists before publish
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"build": "tsc --build tsconfig.build.json",
"clean": "git clean -dfqX",
"install-with-npm-8.5": "npm i -g npm@^8.5.0 && npm i",
"prepack": "npm run build",
"prettier-check": "prettier --check .",
"prettier-fix": "prettier --write .",
"publish-changeset": "changeset publish",
Expand Down

0 comments on commit 946d79e

Please sign in to comment.