Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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') != '' }}
Expand Down
6 changes: 6 additions & 0 deletions epicshop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 2 additions & 0 deletions epicshop/post-set-playground.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
1 change: 1 addition & 0 deletions epicshop/pre-set-playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading