From 271a0d46550540b9190924666617ac507d42deef Mon Sep 17 00:00:00 2001 From: Brooks Lybrand Date: Thu, 19 Dec 2024 09:04:01 -0600 Subject: [PATCH] Fix broken start command --- package-lock.json | 61 ++++++++++++++++++++++++----------------------- package.json | 8 +++---- 2 files changed, 35 insertions(+), 34 deletions(-) diff --git a/package-lock.json b/package-lock.json index 88d80d8..4a83dd7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "@docsearch/css": "^3.8.0", "@docsearch/react": "^3.8.0", "@react-router/express": "^7.0.2", - "@react-router/node": "^7.0.1", + "@react-router/node": "^7.0.2", "@types/express": "^5.0.0", "cheerio": "^1.0.0-rc.12", "classnames": "^2.3.2", @@ -30,7 +30,7 @@ "parse-numeric-range": "^1.3.0", "react": "^19.0.0", "react-dom": "^19.0.0", - "react-router": "7.0.1", + "react-router": "^7.0.2", "rehype-autolink-headings": "^7.1.0", "rehype-slug": "^6.0.0", "rehype-stringify": "^10.0.0", @@ -1866,6 +1866,31 @@ } } }, + "node_modules/@react-router/dev/node_modules/@react-router/node": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@react-router/node/-/node-7.0.1.tgz", + "integrity": "sha512-09AkG1jobbMApTx4Wx8lf1u+nZeYG2ZOBAhxTLz7dgnr7sQpUVD3ewe9gizedXpJrCfP4Sx272aGywX1gEqoSQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@mjackson/node-fetch-server": "^0.2.0", + "source-map-support": "^0.5.21", + "stream-slice": "^0.1.2", + "undici": "^6.19.2" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "react-router": "7.0.1", + "typescript": "^5.1.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, "node_modules/@react-router/dev/node_modules/chokidar": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.1.tgz", @@ -1918,7 +1943,7 @@ } } }, - "node_modules/@react-router/express/node_modules/@react-router/node": { + "node_modules/@react-router/node": { "version": "7.0.2", "resolved": "https://registry.npmjs.org/@react-router/node/-/node-7.0.2.tgz", "integrity": "sha512-6Of5M2wP9QgYlR+boR0ptPjh3UyfaNvPMKQihowTGjAjUZIoNqz4iBn8ClNsLFbT3KQewcnNTHi2p+Ou7S4ZyQ==", @@ -1942,30 +1967,6 @@ } } }, - "node_modules/@react-router/node": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/@react-router/node/-/node-7.0.1.tgz", - "integrity": "sha512-09AkG1jobbMApTx4Wx8lf1u+nZeYG2ZOBAhxTLz7dgnr7sQpUVD3ewe9gizedXpJrCfP4Sx272aGywX1gEqoSQ==", - "license": "MIT", - "dependencies": { - "@mjackson/node-fetch-server": "^0.2.0", - "source-map-support": "^0.5.21", - "stream-slice": "^0.1.2", - "undici": "^6.19.2" - }, - "engines": { - "node": ">=20.0.0" - }, - "peerDependencies": { - "react-router": "7.0.1", - "typescript": "^5.1.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, "node_modules/@rollup/rollup-android-arm-eabi": { "version": "4.22.4", "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.22.4.tgz", @@ -14449,9 +14450,9 @@ } }, "node_modules/react-router": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.0.1.tgz", - "integrity": "sha512-WVAhv9oWCNsja5AkK6KLpXJDSJCQizOIyOd4vvB/+eHGbYx5vkhcmcmwWjQ9yqkRClogi+xjEg9fNEOd5EX/tw==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.0.2.tgz", + "integrity": "sha512-m5AcPfTRUcjwmhBzOJGEl6Y7+Crqyju0+TgTQxoS4SO+BkWbhOrcfZNq6wSWdl2BBbJbsAoBUb8ZacOFT+/JlA==", "license": "MIT", "dependencies": { "@types/cookie": "^0.6.0", diff --git a/package.json b/package.json index e3d05a8..8e64a3d 100644 --- a/package.json +++ b/package.json @@ -4,11 +4,11 @@ "type": "module", "scripts": { "dev": "cross-env NODE_ENV=development node server.js", - "build": "cross-env NODE_ENV=development react-router build", + "build": "react-router build", "format": "prettier --write . && npm run lint:fix", "lint": "eslint --cache --cache-location ./node_modules/.cache/eslint .", "lint:fix": "npm run lint -- --fix", - "start": "cross-env NODE_ENV=production node server.js", + "start": "node server.js", "preview": "cross-env NODE_ENV=production dotenv node server.js", "test": "vitest", "typecheck": "react-router typegen && tsc", @@ -24,7 +24,7 @@ "@docsearch/css": "^3.8.0", "@docsearch/react": "^3.8.0", "@react-router/express": "^7.0.2", - "@react-router/node": "^7.0.1", + "@react-router/node": "^7.0.2", "@types/express": "^5.0.0", "cheerio": "^1.0.0-rc.12", "classnames": "^2.3.2", @@ -45,7 +45,7 @@ "parse-numeric-range": "^1.3.0", "react": "^19.0.0", "react-dom": "^19.0.0", - "react-router": "7.0.1", + "react-router": "^7.0.2", "rehype-autolink-headings": "^7.1.0", "rehype-slug": "^6.0.0", "rehype-stringify": "^10.0.0",