diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 1f702fa..df692a3 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -35,6 +35,7 @@ jobs: env: # Kept getting npm ECOMPROMISED errors on windows. This fixed it. npm_config_cache: ${{ runner.temp }}/npm-cache + npm_config_package_lock: false SKIP_PLAYWRIGHT: true SKIP_PLAYGROUND: true run: | @@ -86,7 +87,7 @@ jobs: node-version: 26 - name: 📦 Install dependencies - run: npm ci + run: npm install --package-lock=false - name: 🎭 Install Playwright browser if: ${{ hashFiles('epicshop/test.js') != '' }} diff --git a/epicshop/package.json b/epicshop/package.json index caf0e89..829189b 100644 --- a/epicshop/package.json +++ b/epicshop/package.json @@ -13,5 +13,11 @@ }, "devDependencies": { "@types/fs-extra": "11.0.4" + }, + "overrides": { + "@sentry/core": "10.68.0", + "@sentry/node": "10.68.0", + "@sentry/profiling-node": "10.68.0", + "@sentry/react-router": "10.68.0" } } diff --git a/epicshop/post-set-playground.js b/epicshop/post-set-playground.js index 6e43b7c..70635fb 100644 --- a/epicshop/post-set-playground.js +++ b/epicshop/post-set-playground.js @@ -1,8 +1,10 @@ // Runs AFTER epicshop copies an exercise over the playground. Restores the .env // and prisma/data.db that pre-set-playground.js stashed, so the student's API key // and database survive every move between exercises. +import console from 'node:console' import fs from 'node:fs' import path from 'node:path' +import process from 'node:process' const playgroundDir = process.env.EPICSHOP_PLAYGROUND_DEST_DIR if (playgroundDir) { diff --git a/epicshop/pre-set-playground.js b/epicshop/pre-set-playground.js index 595e592..9d4f02f 100644 --- a/epicshop/pre-set-playground.js +++ b/epicshop/pre-set-playground.js @@ -5,6 +5,7 @@ // persist across the whole workshop. import fs from 'node:fs' import path from 'node:path' +import process from 'node:process' const playgroundDir = process.env.EPICSHOP_PLAYGROUND_DEST_DIR if (playgroundDir) { diff --git a/package.json b/package.json index d90269d..62cadcd 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,13 @@ "exercises/*/*", "extra/*" ], + "overrides": { + "@sentry/core": "10.68.0", + "@sentry/node": "10.68.0", + "@sentry/profiling-node": "10.68.0", + "@sentry/react-router": "10.68.0", + "better-sqlite3": "13.0.2" + }, "engines": { "node": ">=24.0.0", "npm": ">=8.16.0",