Migrate package management from npm to pnpm.

Standardize local and CI workflows on pnpm 11.0.8, replace npm commands in docs/config, and swap lockfiles for reproducible installs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-08 18:46:55 +02:00
parent 183e10b75b
commit 7a5c1ec637
8 changed files with 8213 additions and 12293 deletions
+9 -4
View File
@@ -27,13 +27,18 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 22 node-version: 22
cache: npm cache: pnpm
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 11.0.8
- name: Install dependencies - name: Install dependencies
run: npm ci run: pnpm install --frozen-lockfile
- name: Lint - name: Lint
run: npm run lint run: pnpm run lint
- name: Build - name: Build
run: npm run build run: pnpm run build
+4 -4
View File
@@ -1,7 +1,7 @@
# Logs # Logs
logs logs
*.log *.log
npm-debug.log* pnpm-debug.log*
yarn-debug.log* yarn-debug.log*
yarn-error.log* yarn-error.log*
lerna-debug.log* lerna-debug.log*
@@ -48,8 +48,8 @@ web_modules/
# TypeScript cache # TypeScript cache
*.tsbuildinfo *.tsbuildinfo
# Optional npm cache directory # Optional pnpm cache directory
.npm .pnpm-store
# Optional eslint cache # Optional eslint cache
.eslintcache .eslintcache
@@ -66,7 +66,7 @@ web_modules/
# Optional REPL history # Optional REPL history
.node_repl_history .node_repl_history
# Output of 'npm pack' # Output of 'pnpm pack'
*.tgz *.tgz
# Yarn Integrity file # Yarn Integrity file
+6 -6
View File
@@ -14,12 +14,12 @@ NodeCG bundle for producing fighting game overlays.
## Scripts ## Scripts
- `npm run autofix`: automatically fixes lint errors. - `pnpm run autofix`: automatically fixes lint errors.
- `npm run build`: builds dashboard/graphics and extension. - `pnpm run build`: builds dashboard/graphics and extension.
- `npm run lint`: validates project linting. - `pnpm run lint`: validates project linting.
- `npm run schema-types`: generates types from schemas. - `pnpm run schema-types`: generates types from schemas.
- `npm run start`: starts NodeCG. - `pnpm run start`: starts NodeCG.
- `npm run watch`: development mode with watch. - `pnpm run watch`: development mode with watch.
## Version ## Version
-12277
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -12,6 +12,7 @@
}, },
"license": "MIT", "license": "MIT",
"author": "Pandipipas", "author": "Pandipipas",
"packageManager": "pnpm@11.0.8",
"type": "module", "type": "module",
"scripts": { "scripts": {
"autofix": "eslint --fix", "autofix": "eslint --fix",
+8191
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,5 +1,5 @@
{ {
/* Settings here partially mimick those included in a generated Vue project (npm create vue). */ /* Settings here partially mimick those included in a generated Vue project (pnpm create vue). */
/* Settings used for anything browser related (dashboard and graphics). */ /* Settings used for anything browser related (dashboard and graphics). */
"extends": "@vue/tsconfig/tsconfig.dom.json", "extends": "@vue/tsconfig/tsconfig.dom.json",
"compilerOptions": { "compilerOptions": {
+1 -1
View File
@@ -1,5 +1,5 @@
{ {
/* Settings here mimick those included in a generated Vue project (npm create vue). */ /* Settings here mimick those included in a generated Vue project (pnpm create vue). */
/* They are only used for the vite.config.ts file. */ /* They are only used for the vite.config.ts file. */
"extends": "@tsconfig/node22/tsconfig.json", "extends": "@tsconfig/node22/tsconfig.json",
"compilerOptions": { "compilerOptions": {