diff --git a/package-lock.json b/package-lock.json index e2448b9..51c7c7f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -47,6 +47,7 @@ "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^4.7.0", "concurrently": "^8.2.0", + "cross-env": "^10.1.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "tsx": "^4.19.2", @@ -574,6 +575,13 @@ "tslib": ">=2" } }, + "node_modules/@epic-web/invariant": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@epic-web/invariant/-/invariant-1.0.0.tgz", + "integrity": "sha512-lrTPqgvfFQtR/eY/qkIzp98OGdNJu0m5ji3q/nJI8v3SXkRKEnWiOxMmbvcSoAIzv/cGiuvRy57k4suKQSAdwA==", + "dev": true, + "license": "MIT" + }, "node_modules/@esbuild/aix-ppc64": { "version": "0.27.1", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.1.tgz", @@ -7940,6 +7948,24 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "node_modules/cross-env": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-10.1.0.tgz", + "integrity": "sha512-GsYosgnACZTADcmEyJctkJIoqAhHjttw7RsFrVoJNXbsWWqaq6Ym+7kZjq6mS45O0jij6vtiReppKQEtqWy6Dw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@epic-web/invariant": "^1.0.0", + "cross-spawn": "^7.0.6" + }, + "bin": { + "cross-env": "dist/bin/cross-env.js", + "cross-env-shell": "dist/bin/cross-env-shell.js" + }, + "engines": { + "node": ">=20" + } + }, "node_modules/cross-spawn": { "version": "7.0.6", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", diff --git a/package.json b/package.json index 9b5feca..25bfc67 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "main": "dist/index.js", "scripts": { "dev": "tsx watch --inspect src/index.ts", - "dev:internal": "AUTH_MODE=internal tsx watch --inspect src/index.ts", + "dev:internal": "cross-env AUTH_MODE=internal tsx watch --inspect src/index.ts", "dev:external": "concurrently \"AUTH_MODE=auth_server PORT=3001 BASE_URI=http://localhost:3001 tsx watch src/index.ts\" \"sleep 3 && AUTH_MODE=external AUTH_SERVER_URL=http://localhost:3001 tsx watch --inspect src/index.ts\"", "build": "tsc && npm run copy-static && npm run build:apps", "build:apps": "INPUT=src/apps/hello-world/mcp-app.html vite build", @@ -61,6 +61,7 @@ "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^4.7.0", "concurrently": "^8.2.0", + "cross-env": "^10.1.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "tsx": "^4.19.2",