From 93e756603529fb4b124af4a53da921e0f16cadca Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Mon, 24 Jul 2023 16:31:05 +0800 Subject: [PATCH] feat(nc-gui): revise nc-gui cmds --- packages/nc-gui/package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/nc-gui/package.json b/packages/nc-gui/package.json index b89615602b..8235f61e12 100644 --- a/packages/nc-gui/package.json +++ b/packages/nc-gui/package.json @@ -17,10 +17,9 @@ "license": "AGPL-3.0-or-later", "web-types": "web-types.json", "scripts": { - "build": "nuxi build", - "dev": "nuxi dev", - "generate": "nuxi generate", - "prepare": "nuxi prepare", + "build": "nuxt build", + "dev": "nuxt dev", + "generate": "nuxt generate", "start": "node .output/server/index.mjs", "lint": "eslint --ext \".js,.jsx,.ts,.tsx,.vue\" --fix --ignore-path .gitignore .", "test": "vitest -c test/vite.config.ts", @@ -29,7 +28,8 @@ "build:copy": "pnpm run generate; rm -rf ../nc-lib-gui/lib/dist/; rsync -rvzh ./dist/ ../nc-lib-gui/lib/dist/", "build:copy:publish": "pnpm run generate; rm -rf ../nc-lib-gui/lib/dist/; rsync -rvzh ./dist/ ../nc-lib-gui/lib/dist/; pnpm publish ../nc-lib-gui", "ci:run": "export NODE_OPTIONS=\"--max_old_space_size=16384\"; pnpm install; pnpm run build; NUXT_PAGE_TRANSITION_DISABLE=true NUXT_PUBLIC_NC_BACKEND_URL=http://localhost:8080 pnpm run start &", - "preinstall": "npx only-allow pnpm" + "preinstall": "npx only-allow pnpm", + "postinstall": "nuxt prepare" }, "dependencies": { "@ckpack/vue-color": "^1.2.0",