mirror of
https://github.com/tiennm99/rubik.git
synced 2026-09-02 14:21:08 +00:00
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:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Generated
+3272
File diff suppressed because it is too large
Load Diff
+5
-1
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Generated
-1038
File diff suppressed because it is too large
Load Diff
@@ -1,4 +0,0 @@
|
||||
allowBuilds:
|
||||
esbuild: true
|
||||
overrides:
|
||||
cubejs>npm: ^11.14.1
|
||||
Reference in New Issue
Block a user