From df925b013bb02a16d308a86050ec8e0e0e361ff7 Mon Sep 17 00:00:00 2001 From: Vojtech Simetka Date: Wed, 3 Aug 2022 15:44:10 +0200 Subject: [PATCH] fix: compile types when building the library (#516) --- .github/workflows/check.yaml | 3 --- .github/workflows/publish_npmjs.yaml | 1 - package.json | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 41fd3a5..1610cfc 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -60,9 +60,6 @@ jobs: - name: Types check run: npm run check:types - - name: Types build - run: npm run compile:types - - name: Update supported Bee action uses: ethersphere/update-supported-bee-action@v1 if: github.ref == 'refs/heads/master' diff --git a/.github/workflows/publish_npmjs.yaml b/.github/workflows/publish_npmjs.yaml index 268d6ad..8ec1070 100644 --- a/.github/workflows/publish_npmjs.yaml +++ b/.github/workflows/publish_npmjs.yaml @@ -15,7 +15,6 @@ jobs: node-version: 18 registry-url: 'https://registry.npmjs.org' - run: npm ci - - run: npm run compile:types - run: npm publish --access public env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/package.json b/package.json index 41d52f5..03b75ad 100644 --- a/package.json +++ b/package.json @@ -129,7 +129,7 @@ "start": "react-scripts start", "desktop": "node ./desktop.mjs", "build": "react-scripts build", - "build:component": "rimraf ./lib && webpack --mode=production", + "build:component": "rimraf ./lib && webpack --mode=production && npm run compile:types", "compile:types": "tsc --project tsconfig.lib.json --emitDeclarationOnly --declaration", "test": "react-scripts test", "test:ui": "node ui-test/index.js",