Skip to content

Commit 02d9477

Browse files
authored
Check if the builds work + fix the worker import (#37)
* try to build in the CI it should fail for the app * use the bundled file for ES module, with inlined worker
1 parent 1052f05 commit 02d9477

File tree

6 files changed

+21
-7
lines changed

6 files changed

+21
-7
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,12 @@ jobs:
2525
- uses: actions/checkout@v4
2626
- run: npm i
2727
- run: npm run coverage
28+
29+
buildcheck:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v4
33+
- run: npm i
34+
- run: npm run build
35+
working-directory: ./packages/components
36+
- run: npm run build

.github/workflows/ci_components.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,10 @@ jobs:
3030
- uses: actions/checkout@v4
3131
- run: npm i
3232
- run: npm run coverage
33+
34+
buildcheck:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@v4
38+
- run: npm i
39+
- run: npm run build

packages/components/package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,10 @@
2121
"types": "es/components/index.d.ts",
2222
"exports": {
2323
".": {
24-
"import": "./es/components/index.js",
24+
"import": "./dist/index.es.min.js",
2525
"require": "./dist/index.umd.min.js",
2626
"types": "./es/components/index.d.ts"
27-
},
28-
"./components/*": "./es/components/*.js",
29-
"./lib/*": "./es/lib/*.js",
30-
"./workers/*": "./es/workers/*.js"
27+
}
3128
},
3229
"files": [
3330
"dist",

packages/components/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"noUncheckedSideEffectImports": true,
2020

2121
"outDir": "./es",
22+
"emitDeclarationOnly": true,
2223
"declaration": true,
2324
},
2425
"include": ["src"]

public/build/app.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/app.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)