diff --git a/package.json b/package.json index 1944576c..8ad76870 100644 --- a/package.json +++ b/package.json @@ -41,14 +41,14 @@ "publish:staging": "yarn run vite:compile && todesktop build --config=./todesktop.staging.json --async", "reset-install": "node scripts/resetInstall.js", "sign": "node debug/sign.js", - "start": "yarn vite --config vite.main.config.ts", + "start": "vite", "test:e2e": "npx playwright test", "test:unit": "vitest run", "test:update-snapshots": "npx playwright test --update-snapshots", "todesktop:afterPack": "./scripts/todesktop/afterPack.cjs", "todesktop:beforeInstall": "./scripts/todesktop/beforeInstall.cjs", "typescript": "tsc -p tsconfig.build.json", - "vite:compile": "yarn run typescript && vite build --config vite.main.config.ts && vite build --config vite.preload.config.ts", + "vite:compile": "yarn run typescript && vite build && vite build --config vite.preload.config.ts", "vite:types": "yarn run typescript && vite build --config vite.types.config.ts && node scripts/prepareTypes.js", "release:types": "node scripts/releaseTypes.js", "update:frontend": "node scripts/updateFrontend.js" diff --git a/scripts/launchCI.js b/scripts/launchCI.js index 812e0553..77a3f97f 100644 --- a/scripts/launchCI.js +++ b/scripts/launchCI.js @@ -37,7 +37,7 @@ function setupMainPackageWatcher() { return build({ mode, logLevel, - configFile: 'vite.main.config.ts', + configFile: 'vite.config.ts', plugins: [runAppAfterBuild()], }); } diff --git a/vite.main.config.ts b/vite.config.ts similarity index 100% rename from vite.main.config.ts rename to vite.config.ts diff --git a/vitest.workspace.ts b/vitest.workspace.ts index 2105c50a..c2955e8c 100644 --- a/vitest.workspace.ts +++ b/vitest.workspace.ts @@ -2,7 +2,7 @@ import { defineWorkspace } from 'vitest/config'; export default defineWorkspace([ { - extends: './vite.main.config.ts', + extends: './vite.config.ts', }, { extends: './vite.preload.config.ts',