diff --git a/buildAssets/builder/config.ts b/buildAssets/builder/config.js similarity index 98% rename from buildAssets/builder/config.ts rename to buildAssets/builder/config.js index 35bbae50..3b0bed72 100644 --- a/buildAssets/builder/config.ts +++ b/buildAssets/builder/config.js @@ -1,7 +1,7 @@ /* eslint-disable no-template-curly-in-string */ import dotenv from 'dotenv' -const baseConfig: any = { +const baseConfig = { productName: 'Vutron', appId: 'com.vutron.vutron', asar: true, diff --git a/package.json b/package.json index 18875f58..9dbd4833 100644 --- a/package.json +++ b/package.json @@ -18,13 +18,13 @@ "dev": "cross-env ELECTRON_ENABLE_LOGGING=true vite", "dev:debug": "vite -d", "dev:debug:force": "vite -d --force", - "build": "npm run build:pre && electron-builder --config=buildAssets/builder/config.ts", + "build": "npm run build:pre && electron-builder --config=buildAssets/builder/config.js", "build:pre": "npm run format:fix && vue-tsc --noEmit && vite build", - "build:all": "npm run build:pre && electron-builder --config=buildAssets/builder/config.ts -wml", - "build:dir": "npm run build:pre && electron-builder --config=buildAssets/builder/config.ts --dir", - "build:mac": "npm run build:pre && CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --config=buildAssets/builder/config.ts --mac", - "build:linux": "npm run build:pre && electron-builder --config=buildAssets/builder/config.ts --linux", - "build:win": "npm run build:pre && electron-builder --config=buildAssets/builder/config.ts --windows", + "build:all": "npm run build:pre && electron-builder --config=buildAssets/builder/config.js -wml", + "build:dir": "npm run build:pre && electron-builder --config=buildAssets/builder/config.js --dir", + "build:mac": "npm run build:pre && CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --config=buildAssets/builder/config.js --mac", + "build:linux": "npm run build:pre && electron-builder --config=buildAssets/builder/config.js --linux", + "build:win": "npm run build:pre && electron-builder --config=buildAssets/builder/config.js --windows", "lint": "eslint --ext .js,.ts,.vue -f ./node_modules/eslint-friendly-formatter src", "lint:fix": "eslint --ext .js,.ts,.vue -f ./node_modules/eslint-friendly-formatter --fix src", "format": "prettier .", diff --git a/tsconfig.json b/tsconfig.json index 2147538e..3a8970dd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -20,7 +20,6 @@ "lib": ["esnext", "dom"] }, "include": ["src/*.ts", "src/*.d.ts", "src/renderer"], - "exclude": ["./dist/**/*"], "references": [ { "path": "./tsconfig.node.json"