From 2a13f6d96cd5ab4919390954a5049c39a7cc93e0 Mon Sep 17 00:00:00 2001 From: nitedani Date: Fri, 26 Jul 2024 20:43:25 +0200 Subject: [PATCH] add cross-env to example --- examples/express-react/package.json | 5 +++-- pnpm-lock.yaml | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/express-react/package.json b/examples/express-react/package.json index 16ebd0d..67e0e99 100644 --- a/examples/express-react/package.json +++ b/examples/express-react/package.json @@ -2,7 +2,7 @@ "scripts": { "dev": "vite dev", "build": "vite build", - "prod": "NODE_ENV=production node dist/server/index.mjs" + "prod": "cross-env NODE_ENV=production node dist/server/index.mjs" }, "dependencies": { "@vitejs/plugin-react": "^4.3.1", @@ -12,7 +12,8 @@ "vike": "^0.4.181", "vike-node": "^0.1.1", "vike-react": "^0.4.18", - "vite": "^5.3.5" + "vite": "^5.3.5", + "cross-env": "^7.0.3" }, "type": "module" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 506b3cf..3bd2a62 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -32,6 +32,9 @@ importers: '@vitejs/plugin-react': specifier: ^4.3.1 version: 4.3.1(vite@5.3.5(@types/node@20.14.12)) + cross-env: + specifier: ^7.0.3 + version: 7.0.3 express: specifier: ^4.19.2 version: 4.19.2