Skip to content

Commit

Permalink
Check if the builds work + fix the worker import (#37)
Browse files Browse the repository at this point in the history
* try to build in the CI

it should fail for the app

* use the bundled file for ES module, with inlined worker
  • Loading branch information
severo authored Nov 12, 2024
1 parent 1052f05 commit 02d9477
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 7 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,12 @@ jobs:
- uses: actions/checkout@v4
- run: npm i
- run: npm run coverage

buildcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm i
- run: npm run build
working-directory: ./packages/components
- run: npm run build
7 changes: 7 additions & 0 deletions .github/workflows/ci_components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,10 @@ jobs:
- uses: actions/checkout@v4
- run: npm i
- run: npm run coverage

buildcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm i
- run: npm run build
7 changes: 2 additions & 5 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,10 @@
"types": "es/components/index.d.ts",
"exports": {
".": {
"import": "./es/components/index.js",
"import": "./dist/index.es.min.js",
"require": "./dist/index.umd.min.js",
"types": "./es/components/index.d.ts"
},
"./components/*": "./es/components/*.js",
"./lib/*": "./es/lib/*.js",
"./workers/*": "./es/workers/*.js"
}
},
"files": [
"dist",
Expand Down
1 change: 1 addition & 0 deletions packages/components/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"noUncheckedSideEffectImports": true,

"outDir": "./es",
"emitDeclarationOnly": true,
"declaration": true,
},
"include": ["src"]
Expand Down
2 changes: 1 addition & 1 deletion public/build/app.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/build/app.min.js.map

Large diffs are not rendered by default.

0 comments on commit 02d9477

Please sign in to comment.