Skip to content

Commit

Permalink
Merge pull request #40 from electron-vite/v0.5.2
Browse files Browse the repository at this point in the history
V0.5.2
  • Loading branch information
caoxiemeihao authored Nov 19, 2022
2 parents 0d689fe + c564480 commit d4f1e88
Show file tree
Hide file tree
Showing 13 changed files with 99 additions and 352 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.5.2 (2022-11-20)

- b0a21c1 refactor(build): better scripts
- 0d689fe Merge pull request #38 from thepiper/main

## 0.5.1 (2022-11-07)

- 11223b0 v0.5.1
Expand Down
2 changes: 1 addition & 1 deletion electron-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ declare namespace NodeJS {

interface Process {
electronApp: import('child_process').ChildProcess
_resolved_config: import('./types/config').ResolvedConfig
_resolved_config: import('.').ResolvedConfig
}
}

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-electron-plugin",
"version": "0.5.1",
"version": "0.5.2",
"description": "Fast, Electron plugin for Vite",
"main": "index.mjs",
"types": "types",
Expand All @@ -21,9 +21,9 @@
"author": "草鞋没号 <[email protected]>",
"license": "MIT",
"scripts": {
"dev": "vite build --watch",
"build": "vite build",
"types": "tsc -p builld.tsconfig.json && tsc -p plugin.tsconfig.json",
"dev": "vite build --watch",
"types": "tsc -p tsconfig.build.json && tsc -p tsconfig.plugin.json",
"prepublishOnly": "npm run build"
},
"peerDependencies": {
Expand All @@ -44,8 +44,8 @@
"plugin/index.js",
"plugin/index.mjs",
"plugin/index.d.ts",
"types",
"electron-env.d.ts",
"types",
"index.mjs",
"index.js"
],
Expand Down
7 changes: 0 additions & 7 deletions plugin.tsconfig.json

This file was deleted.

2 changes: 1 addition & 1 deletion plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function alias(options: {
name: 'plugin-alias',
async transform({ code: source, filename: importer }) {
let code = source
let match = null
let match: RegExpExecArray | null = null
requireRE.lastIndex = 0
const nodes: {
start: number
Expand Down
Loading

0 comments on commit d4f1e88

Please sign in to comment.