From da565f8ef0768b1e3619687a3d2e4394bb072803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7?= Date: Thu, 1 Apr 2021 11:32:55 +0800 Subject: [PATCH] chore: rename build.ts -> build-main.ts --- package.json | 4 ++-- script/{build.ts => build-main.ts} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename script/{build.ts => build-main.ts} (97%) diff --git a/package.json b/package.json index 08830b2..1d052fa 100644 --- a/package.json +++ b/package.json @@ -8,9 +8,9 @@ "dev": "npm run dev:all", "dev:all": "concurrently -n=vue,ele -c=green,blue \"npm run dev:vue\" \"npm run dev:ele\"", "dev:vue": "vite", - "dev:ele": "node -r ts-node/register script/build --env=development --watch", + "dev:ele": "node -r ts-node/register script/build-main --env=development --watch", "build:vue": "vite build", - "build:ele": "node -r ts-node/register script/build --env=production", + "build:ele": "node -r ts-node/register script/build-main --env=production", "build": "rimraf dist && npm run build:vue && npm run build:ele && electron-builder" }, "build": { diff --git a/script/build.ts b/script/build-main.ts similarity index 97% rename from script/build.ts rename to script/build-main.ts index 2359162..74cd43c 100644 --- a/script/build.ts +++ b/script/build-main.ts @@ -17,7 +17,7 @@ dotenv.config({ path: join(__dirname, '../.env') }) const argv = minimist(process.argv.slice(2)) const opt = options(argv.env) -const TAG = '[script/build.ts]' +const TAG = '[build-main.ts]' const spinner = ora(`${TAG} Electron build...`) if (argv.watch) {