build: move from pnpm to npm

Replace pnpm-lock.yaml with package-lock.json.

pnpm-workspace.yaml pinned npm only where cubejs depends on it
("cubejs>npm: ^11.14.1"). npm expresses that path scoping with a nested
override, so the pin stays scoped to cubejs instead of applying to every copy of
npm in the tree. Verified: cubejs is still the only overridden path.
This commit is contained in:
2026-08-17 13:52:16 +07:00
parent 8b873cdc2f
commit b8e8d3c845
6 changed files with 3284 additions and 1051 deletions
+3 -4
View File
@@ -22,13 +22,12 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: '24'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm build
cache: 'npm'
- run: npm ci
- run: npm run build
- uses: actions/configure-pages@v6
- uses: actions/upload-pages-artifact@v5
with:
+4 -4
View File
@@ -14,10 +14,10 @@ Live: <https://tiennm99.github.io/rubik/>
## Dev
```bash
pnpm install
pnpm dev # http://localhost:8080
pnpm dev:codeserver # behind code-server proxy (set CODESERVER_HOST in .env.local)
pnpm build # → ../dist
npm install
npm run dev # http://localhost:8080
npm run dev:codeserver # behind code-server proxy (set CODESERVER_HOST in .env.local)
npm run build # → ../dist
```
## Controls
+3272
View File
File diff suppressed because it is too large Load Diff
+5 -1
View File
@@ -3,7 +3,6 @@
"description": "Interactive 3D Rubik's 3x3 cube simulator in the browser (Three.js + Svelte)",
"version": "0.1.0",
"type": "module",
"packageManager": "pnpm@11.1.1",
"repository": {
"type": "git",
"url": "git+https://github.com/tiennm99/rubik.git"
@@ -33,5 +32,10 @@
"svelte": "^5.56.4",
"vite": "^8.1.4",
"vitest": "^4.1.10"
},
"overrides": {
"cubejs": {
"npm": "^11.14.1"
}
}
}
-1038
View File
File diff suppressed because it is too large Load Diff
-4
View File
@@ -1,4 +0,0 @@
allowBuilds:
esbuild: true
overrides:
cubejs>npm: ^11.14.1