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
with:
node-version: 22
cache: npm
cache: pnpm
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 11.0.8
- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile
- name: Lint
run: npm run lint
run: pnpm run lint
- name: Build
run: npm run build
run: pnpm run build
+4 -4
View File
@@ -1,7 +1,7 @@
# Logs
logs
*.log
npm-debug.log*
pnpm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
@@ -48,8 +48,8 @@ web_modules/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional pnpm cache directory
.pnpm-store
# Optional eslint cache
.eslintcache
@@ -66,7 +66,7 @@ web_modules/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
# Output of 'pnpm pack'
*.tgz
# Yarn Integrity file
+6 -6
View File
@@ -14,12 +14,12 @@ NodeCG bundle for producing fighting game overlays.
## Scripts
- `npm run autofix`: automatically fixes lint errors.
- `npm run build`: builds dashboard/graphics and extension.
- `npm run lint`: validates project linting.
- `npm run schema-types`: generates types from schemas.
- `npm run start`: starts NodeCG.
- `npm run watch`: development mode with watch.
- `pnpm run autofix`: automatically fixes lint errors.
- `pnpm run build`: builds dashboard/graphics and extension.
- `pnpm run lint`: validates project linting.
- `pnpm run schema-types`: generates types from schemas.
- `pnpm run start`: starts NodeCG.
- `pnpm run watch`: development mode with watch.
## Version
-12277
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -12,6 +12,7 @@
},
"license": "MIT",
"author": "Pandipipas",
"packageManager": "pnpm@11.0.8",
"type": "module",
"scripts": {
"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). */
"extends": "@vue/tsconfig/tsconfig.dom.json",
"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. */
"extends": "@tsconfig/node22/tsconfig.json",
"compilerOptions": {