diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d2947030..4e544ca6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,6 +53,12 @@ jobs: run: pnpm coverage - name: 🧪 Test grammar package run: pnpm test:grammar + - name: ↕️ Setup cors free proxy for cloning + run: | + git clone https://github.com/wmhilton/cors-buster + cd cors-buster + npm install + PORT=8000 npm start & - name: 📨 Setup playwright run: | npx playwright install diff --git a/pkg/browser/package.json b/pkg/browser/package.json index 0bf1a6c3..3faee0a4 100644 --- a/pkg/browser/package.json +++ b/pkg/browser/package.json @@ -3,11 +3,13 @@ "dependencies": { "@slangroom/core": "workspace:*", "@slangroom/deps": "workspace:*", + "@slangroom/git": "workspace:*", "@slangroom/helpers": "workspace:*", "@slangroom/http": "workspace:*", "@slangroom/json-schema": "workspace:*", "@slangroom/pocketbase": "workspace:*", - "@slangroom/qrcode": "workspace:*" + "@slangroom/qrcode": "workspace:*", + "buffer": "^6.0.3" }, "version": "1.40.0", "repository": "https://github.com/dyne/slangroom", @@ -40,10 +42,13 @@ "devDependencies": { "@playwright/test": "^1.40.1", "@types/node": "^20.10.4", - "esbuild": "^0.21.4" + "@types/path-browserify": "^1.0.3", + "@zenfs/core": "^0.16.4", + "esbuild": "^0.21.4", + "path-browserify": "^1.0.1" }, "scripts": { - "build": "pnpm exec esbuild --bundle src/index.ts --outfile=build/slangroom.js --target=es2016 --external:fs --external:path --external:crypto && cp build/slangroom.js public" + "build": "pnpm exec esbuild --bundle src/index.ts --outfile=build/slangroom.js --target=ESNext --external:crypto --alias:fs=@zenfs/core --alias:path=path-browserify && cp build/slangroom.js public" }, "engines": { "node": "^18.20.0 || ^20.10.0 || ^22" diff --git a/pkg/browser/public/index.html b/pkg/browser/public/index.html index 60f545f4..e71490ac 100644 --- a/pkg/browser/public/index.html +++ b/pkg/browser/public/index.html @@ -14,6 +14,7 @@