Skip to content

Commit 26a5425

Browse files
Another try
1 parent 95e7e54 commit 26a5425

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/workflows/publish.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ jobs:
4343
- name: Deploy to GitHub Pages
4444
id: deployment
4545
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
4749
if: startsWith(github.ref, 'refs/tags/')
4850
env:
4951
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@
4242
"typescript-eslint": "^8.0.1",
4343
"vite": "^5.4.1"
4444
},
45-
"files": [
46-
"dist/"
47-
],
48-
"main": "dist/dom.js",
45+
"main": "dom.js",
4946
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
5047
}

vite.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import react from "@vitejs/plugin-react";
55
// https://vitejs.dev/config/
66
export default defineConfig({
77
plugins: [react()],
8-
base: "./dist/",
8+
base: "./",
99
build: {
1010
assetsInlineLimit: (path) => !path.includes("elk-worker"),
1111
lib: {

0 commit comments

Comments
 (0)