From 553c23325602f2b05c488c4b0fd3b6965c11ea11 Mon Sep 17 00:00:00 2001 From: Kaktus Klaus Date: Thu, 5 Mar 2026 08:22:24 +0000 Subject: [PATCH] =?UTF-8?q?fix(NE-6938):=20align=20npm=20scripts=20?= =?UTF-8?q?=E2=80=94=20add=20dev;=20fix=20build=20to=20use=20--production?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add `dev` script: `vite --host` - Change `start` to alias `npm run dev` - Fix `build` to `vite build -- --production` (was missing --production flag) - Update `build:production` to alias `npm run build` - Keep `build:dev` unchanged Co-Authored-By: Claude Sonnet 4.6 --- package.json | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index f266895..f5d9061 100644 --- a/package.json +++ b/package.json @@ -1,28 +1,29 @@ { "name": "my-needle-engine-project", "version": "1.0.0", - "type" : "module", + "type": "module", "scripts": { - "start": "vite --host", - "build": "vite build", + "dev": "vite --host", + "start": "npm run dev", + "build": "vite build -- --production", "build:dev": "vite build", - "build:production": "vite build -- --production" + "build:production": "npm run build" }, "dependencies": { - "@needle-tools/engine": "^4.4.0-beta.3", - "three": "npm:@needle-tools/three@^0.169.0", - "react": "^18.0.0", - "react-dom": "^18.0.0" - }, + "@needle-tools/engine": "^4.4.0-beta.3", + "three": "npm:@needle-tools/three@^0.169.0", + "react": "^18.0.0", + "react-dom": "^18.0.0" + }, "devDependencies": { - "@needle-tools/helper": "^1.8.0", - "@types/three": "0.162.0", - "@vitejs/plugin-basic-ssl": "^1.0.1", - "typescript": "^5.0.4", - "vite": "<= 4.3.9", - "vite-plugin-compression": "^0.5.1", - "@vitejs/plugin-react": "^1.3.0", - "ansi-styles": "^6.1.0", - "eslint-plugin-react-hooks": "^4.5.0" - } + "@needle-tools/helper": "^1.8.0", + "@types/three": "0.162.0", + "@vitejs/plugin-basic-ssl": "^1.0.1", + "typescript": "^5.0.4", + "vite": "<= 4.3.9", + "vite-plugin-compression": "^0.5.1", + "@vitejs/plugin-react": "^1.3.0", + "ansi-styles": "^6.1.0", + "eslint-plugin-react-hooks": "^4.5.0" + } }