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) {