fix: compile types when building the library (#516)

This commit is contained in:
Vojtech Simetka
2022-08-03 15:44:10 +02:00
committed by GitHub
parent d7867ff475
commit df925b013b
3 changed files with 1 additions and 5 deletions
-3
View File
@@ -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'
-1
View File
@@ -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}}
+1 -1
View File
@@ -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",