Skip to content

Commit df925b0

Browse files
fix: compile types when building the library (#516)
1 parent d7867ff commit df925b0

3 files changed

Lines changed: 1 addition & 5 deletions

File tree

.github/workflows/check.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@ jobs:
6060
- name: Types check
6161
run: npm run check:types
6262

63-
- name: Types build
64-
run: npm run compile:types
65-
6663
- name: Update supported Bee action
6764
uses: ethersphere/update-supported-bee-action@v1
6865
if: github.ref == 'refs/heads/master'

.github/workflows/publish_npmjs.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
node-version: 18
1616
registry-url: 'https://registry.npmjs.org'
1717
- run: npm ci
18-
- run: npm run compile:types
1918
- run: npm publish --access public
2019
env:
2120
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
"start": "react-scripts start",
130130
"desktop": "node ./desktop.mjs",
131131
"build": "react-scripts build",
132-
"build:component": "rimraf ./lib && webpack --mode=production",
132+
"build:component": "rimraf ./lib && webpack --mode=production && npm run compile:types",
133133
"compile:types": "tsc --project tsconfig.lib.json --emitDeclarationOnly --declaration",
134134
"test": "react-scripts test",
135135
"test:ui": "node ui-test/index.js",

0 commit comments

Comments
 (0)