From 376feecb280c28504788c9677c6cb3cc455f00b6 Mon Sep 17 00:00:00 2001 From: Pawel Zelawski Date: Sat, 23 May 2026 10:33:53 +0200 Subject: chore: upgrade digiid-ts to v3 and stabilize dev/build scripts --- package.json | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index ec37a87..ae6708e 100644 --- a/package.json +++ b/package.json @@ -5,13 +5,14 @@ "description": "", "type": "module", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", + "test": "vitest run --passWithNoTests", "dev:frontend": "vite", + "build:backend": "tsc -p tsconfig.json", "build:backend:watch": "tsc -p tsconfig.json --watch", "dev:backend": "nodemon dist/server/server/main.js", - "dev": "npm-run-all --parallel dev:frontend build:backend:watch dev:backend", - "build": "tsc && vite build", - "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", + "dev": "npm-run-all build:backend --parallel dev:frontend build:backend:watch dev:backend", + "build": "vite build && npm run build:backend", + "lint": "ESLINT_USE_FLAT_CONFIG=false eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview" }, "repository": { @@ -25,6 +26,9 @@ "url": "https://github.com/pawelzelawski/digiid-ts-demo/issues" }, "homepage": "https://github.com/pawelzelawski/digiid-ts-demo#readme", + "engines": { + "node": ">=20.19.0" + }, "devDependencies": { "@types/dotenv": "^6.1.1", "@types/express": "^5.0.1", @@ -40,15 +44,17 @@ "eslint-plugin-prettier": "^5.2.6", "eslint-plugin-react": "^7.37.5", "eslint-plugin-react-hooks": "^5.2.0", + "eslint-plugin-react-refresh": "^0.5.2", "nodemon": "^3.1.9", "npm-run-all": "^4.1.5", "prettier": "^3.5.3", "ts-node": "^10.9.2", "typescript": "^5.8.3", - "vite": "^6.2.6" + "vite": "^6.2.6", + "vitest": "^4.1.7" }, "dependencies": { - "digiid-ts": "^2.0.4", + "digiid-ts": "^3.0.0", "dotenv": "^16.4.5", "express": "^4.19.2", "qrcode": "^1.5.3", -- cgit v1.2.3