Skip to content

Commit e384a1b

Browse files
committed
chore: release v3.0.0-beta.1
1 parent 81abb27 commit e384a1b

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "electron-incremental-update",
3-
"version": "2.4.3",
3+
"version": "3.0.0-beta.1",
44
"description": "Electron incremental update tools with Vite plugin, support bytecode protection",
55
"keywords": [
66
"bytecode",
@@ -61,7 +61,7 @@
6161
"dev": "tsdown --watch",
6262
"build": "tsdown",
6363
"play": "cd ./playground && vite",
64-
"release": "pnpm test && pnpm run build && bumpp --all && npm publish",
64+
"release": "bun run format && bun run lint && bun run test && bun run build && bumpp --all",
6565
"test": "bun test",
6666
"test:dev": "bun test --watch",
6767
"format": "oxfmt",

src/vite/electron/plugin.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ export function notBundle(options: NotBundleOptions = {}): Plugin {
2929
id: bareImportRE,
3030
},
3131
async handler(source, importer) {
32-
if (!importer || importer.includes('node_modules/')) {return}
32+
if (!importer || importer.includes('node_modules/')) {
33+
return
34+
}
3335
if (externalIds.has(source)) {
3436
return { id: source, external: true }
3537
}
@@ -39,7 +41,9 @@ export function notBundle(options: NotBundleOptions = {}): Plugin {
3941
})
4042

4143
const id = resolved?.id
42-
if (!id || !nodeModulesRE.test(id) || options.filter?.(id) === false) {return}
44+
if (!id || !nodeModulesRE.test(id) || options.filter?.(id) === false) {
45+
return
46+
}
4347

4448
try {
4549
// Because we build Main process into `cjs`, so a npm-pkg can be loaded by `require()`.

src/vite/electron/simple.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
import type { Plugin, UserConfig } from 'vite'
2+
13
import { loadPackageJSON } from 'local-pkg'
2-
import { mergeConfig } from 'vite';
3-
import type { Plugin, UserConfig } from 'vite';
4+
import { mergeConfig } from 'vite'
5+
6+
import type { ElectronOptions } from './core'
7+
import type { RolldownOptions } from './utils'
48

5-
import electron from './core';
6-
import type { ElectronOptions } from './core';
7-
import type { RolldownOptions } from './utils';
9+
import electron from './core'
810

911
export interface ElectronSimpleOptions {
1012
main: ElectronOptions

0 commit comments

Comments
 (0)