Skip to content

Commit fc36b32

Browse files
authored
Fix type publishing (#145)
1 parent b9bbcf0 commit fc36b32

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/esm-lint.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,15 @@ jobs:
7373
- run: echo "${{ env.IMPORT_TEXT }} '${{ env.NPM_MODULE_NAME }}'" > index.js
7474
- run: npm install ./artifact
7575
- run: npx esbuild --bundle index.js
76+
TypeScript:
77+
runs-on: ubuntu-latest
78+
needs: Pack
79+
steps:
80+
- uses: actions/download-artifact@v3
81+
- run: npm install ./artifact
82+
- run: echo "${{ env.IMPORT_TEXT }} '${{ env.NPM_MODULE_NAME }}'" > index.ts
83+
- run: tsc index.ts
84+
- run: cat index.js
7685
Node:
7786
runs-on: ubuntu-latest
7887
needs: Pack

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"demo:build": "vite build demo --config demo/vite.config.js",
3131
"demo:test": "svelte-check",
3232
"demo:watch": "vite serve demo --config demo/vite.config.js",
33-
"prepack": "vite build",
33+
"prepack": "npm run build",
3434
"test": "run-p build ava xo",
3535
"watch": "run-p watch:typescript demo:watch # vite watch doesn’t generate the lib, so just use the demo",
3636
"watch:typescript": "tsc --watch --noEmit",

0 commit comments

Comments
 (0)