Skip to content

Commit

Permalink
make post install optional (#29)
Browse files Browse the repository at this point in the history
* make post install optional

* Update test script to generate types

---------

Co-authored-by: Robert Leonard <[email protected]>
  • Loading branch information
Robert-H-Leonard and Robert Leonard authored May 14, 2024
1 parent 8b52a65 commit 23933b8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ts-client-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
working-directory: ./ts-client
run: yarn install --frozen-lockfile

- name: Build typechain types
working-directory: ./ts-client
run: yarn postinstall:manual

- name: Run Anvil Node
run: anvil &

Expand Down
4 changes: 2 additions & 2 deletions ts-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@identity.com/did-bnb-client",
"version": "2.0.1-beta",
"version": "2.0.2-beta",
"main": "dist/src/index.js",
"typings": "dist/src/index.d.ts",
"license": "MIT",
Expand All @@ -12,7 +12,7 @@
"/npm-shrinkwrap.json"
],
"scripts": {
"postinstall": "node ./scripts/shouldRunPostInstall.ts || $npm_execpath run generate-contract-types",
"postinstall:manual": "$npm_execpath run generate-contract-types",
"lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w",
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check",
"clean": "shx rm -rf ./dist",
Expand Down
5 changes: 0 additions & 5 deletions ts-client/scripts/shouldRunPostInstall.ts

This file was deleted.

0 comments on commit 23933b8

Please sign in to comment.