File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 73
73
- run : echo "${{ env.IMPORT_TEXT }} '${{ env.NPM_MODULE_NAME }}'" > index.js
74
74
- run : npm install ./artifact
75
75
- 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
76
85
Node :
77
86
runs-on : ubuntu-latest
78
87
needs : Pack
Original file line number Diff line number Diff line change 30
30
"demo:build" : " vite build demo --config demo/vite.config.js" ,
31
31
"demo:test" : " svelte-check" ,
32
32
"demo:watch" : " vite serve demo --config demo/vite.config.js" ,
33
- "prepack" : " vite build" ,
33
+ "prepack" : " npm run build" ,
34
34
"test" : " run-p build ava xo" ,
35
35
"watch" : " run-p watch:typescript demo:watch # vite watch doesn’t generate the lib, so just use the demo" ,
36
36
"watch:typescript" : " tsc --watch --noEmit" ,
You can’t perform that action at this time.
0 commit comments