File tree 3 files changed +5
-6
lines changed
3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 43
43
- name : Deploy to GitHub Pages
44
44
id : deployment
45
45
uses : actions/deploy-pages@v4
46
- - run : npm publish --provenance --access public ./package.tgz
46
+ # Publish all dist at top level so that esm.sh can find web worker...
47
+ - run : mv dist/* .
48
+ - run : npm publish --provenance --access public
47
49
if : startsWith(github.ref, 'refs/tags/')
48
50
env :
49
51
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 42
42
"typescript-eslint" : " ^8.0.1" ,
43
43
"vite" : " ^5.4.1"
44
44
},
45
- "files" : [
46
- " dist/"
47
- ],
48
- "main" : " dist/dom.js" ,
45
+ "main" : " dom.js" ,
49
46
"packageManager" :
" [email protected] +sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
50
47
}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import react from "@vitejs/plugin-react";
5
5
// https://vitejs.dev/config/
6
6
export default defineConfig ( {
7
7
plugins : [ react ( ) ] ,
8
- base : "./dist/ " ,
8
+ base : "./" ,
9
9
build : {
10
10
assetsInlineLimit : ( path ) => ! path . includes ( "elk-worker" ) ,
11
11
lib : {
You can’t perform that action at this time.
0 commit comments