diff --git a/.github/workflows/autorelease-excalidraw.yml b/.github/workflows/autorelease-excalidraw.yml index 618dbe6c38..e90d9b6a88 100644 --- a/.github/workflows/autorelease-excalidraw.yml +++ b/.github/workflows/autorelease-excalidraw.yml @@ -17,7 +17,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: - node-version: 20.x + node-version: 22.x cache: pnpm - name: Set up publish access run: | diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 14eacb770d..7fda2784ce 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,7 +14,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: - node-version: 20.x + node-version: 22.x cache: pnpm - name: Install and lint diff --git a/.github/workflows/locales-coverage.yml b/.github/workflows/locales-coverage.yml index 93f37af443..0dc3df49a9 100644 --- a/.github/workflows/locales-coverage.yml +++ b/.github/workflows/locales-coverage.yml @@ -19,7 +19,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: - node-version: 20.x + node-version: 22.x - name: Create report file run: | diff --git a/.github/workflows/sentry-production.yml b/.github/workflows/sentry-production.yml index e8d2c62132..e49226abb6 100644 --- a/.github/workflows/sentry-production.yml +++ b/.github/workflows/sentry-production.yml @@ -15,7 +15,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: - node-version: 20.x + node-version: 22.x cache: pnpm - name: Install and build run: | diff --git a/.github/workflows/size-limit.yml b/.github/workflows/size-limit.yml index e1c378223a..21247bac43 100644 --- a/.github/workflows/size-limit.yml +++ b/.github/workflows/size-limit.yml @@ -16,7 +16,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: - node-version: 20.x + node-version: 22.x cache: pnpm - name: Install in packages/excalidraw run: pnpm install --frozen-lockfile diff --git a/.github/workflows/stats.yml b/.github/workflows/stats.yml index 69d4cbc260..d2c8737340 100644 --- a/.github/workflows/stats.yml +++ b/.github/workflows/stats.yml @@ -27,7 +27,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: - node-version: 20.x + node-version: 22.x cache: pnpm - name: Install run: pnpm install --frozen-lockfile @@ -63,7 +63,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: - node-version: 20.x + node-version: 22.x cache: pnpm - name: Install run: | diff --git a/.github/workflows/test-coverage-pr.yml b/.github/workflows/test-coverage-pr.yml index 4fc936b82c..4c9530b3d7 100644 --- a/.github/workflows/test-coverage-pr.yml +++ b/.github/workflows/test-coverage-pr.yml @@ -16,7 +16,7 @@ jobs: - name: "Install Node" uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: - node-version: "20.x" + node-version: "22.x" cache: pnpm - name: "Install Deps" run: pnpm install --frozen-lockfile diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6f2000ebbc..769ddf8b7d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: - node-version: 20.x + node-version: 22.x cache: pnpm - name: Install and test run: | diff --git a/.npmrc b/.npmrc deleted file mode 100644 index cffe8cdef1..0000000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -save-exact=true diff --git a/excalidraw-app/package.json b/excalidraw-app/package.json index 8870e0afeb..dfafec982f 100644 --- a/excalidraw-app/package.json +++ b/excalidraw-app/package.json @@ -23,7 +23,8 @@ ] }, "engines": { - "node": ">=18.0.0" + "node": ">=22.13.0", + "pnpm": ">=11.0.0" }, "dependencies": { "@excalidraw/common": "workspace:*", diff --git a/package.json b/package.json index 10696b27f5..5ef1e9be65 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "excalidraw-monorepo", - "packageManager": "pnpm@10.34.9", + "packageManager": "pnpm@11.28.12", "devDependencies": { "@babel/preset-env": "7.26.9", "@excalidraw/common": "workspace:*", @@ -54,7 +54,8 @@ "which": "4.0.0" }, "engines": { - "node": ">=18.0.0" + "node": ">=22.13.0", + "pnpm": ">=11.0.0" }, "homepage": ".", "prettier": "@excalidraw/prettier-config", @@ -98,8 +99,6 @@ "release:test": "node scripts/release.js --tag=test", "release:next": "node scripts/release.js --tag=next", "release:latest": "node scripts/release.js --tag=latest", - "rm:build": "rimraf --glob excalidraw-app/build excalidraw-app/dist excalidraw-app/dev-dist packages/*/dist packages/*/build examples/*/build examples/*/dist", - "rm:node_modules": "rimraf --glob node_modules excalidraw-app/node_modules packages/*/node_modules", - "clean-install": "pnpm rm:node_modules && pnpm install" + "rm:build": "rimraf --glob excalidraw-app/build excalidraw-app/dist excalidraw-app/dev-dist packages/*/dist packages/*/build examples/*/build examples/*/dist" } } diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index a8785fa0aa..441c9a0e75 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -6,9 +6,11 @@ packages: overrides: strip-ansi: 6.0.1 -# dependencies allowed to run install scripts (pnpm 10 blocks them by default) -onlyBuiltDependencies: - - "@parcel/watcher" - - core-js - - esbuild - - protobufjs +saveExact: true + +# dependencies allowed to run install scripts (pnpm blocks them by default) +allowBuilds: + "@parcel/watcher": true + core-js: true + esbuild: true + protobufjs: true