diff --git a/.github/workflows/ts-client-integration-test.yml b/.github/workflows/ts-client-integration-test.yml index 369efd4..b98f224 100644 --- a/.github/workflows/ts-client-integration-test.yml +++ b/.github/workflows/ts-client-integration-test.yml @@ -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 & diff --git a/ts-client/package.json b/ts-client/package.json index 15d588f..4e1b000 100644 --- a/ts-client/package.json +++ b/ts-client/package.json @@ -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", @@ -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", diff --git a/ts-client/scripts/shouldRunPostInstall.ts b/ts-client/scripts/shouldRunPostInstall.ts deleted file mode 100644 index 99ef375..0000000 --- a/ts-client/scripts/shouldRunPostInstall.ts +++ /dev/null @@ -1,5 +0,0 @@ -if (process.env.SKIP_BUILD) { - process.exit(0); -} else { - process.exit(1); -} \ No newline at end of file