electronup 0.0.9 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -59,13 +59,20 @@ interface ConfigEnv {
59
59
  root: string
60
60
  }
61
61
 
62
- type ElectronupConfigFnObject = (env: ConfigEnv) => ElectronupConfig;
63
- type ElectronupConfigFnPromise = (env: ConfigEnv) => Promise<ElectronupConfig>;
64
- type ElectronupConfigFn = (env: ConfigEnv) => ElectronupConfig | Promise<ElectronupConfig>;
65
- type ElectronupConfigExport = ElectronupConfig | Promise<ElectronupConfig> | ElectronupConfigFnObject | ElectronupConfigFnPromise | ElectronupConfigFn;
62
+ type ElectronupConfigFnObject = (env: ConfigEnv) => ElectronupConfig
63
+ type ElectronupConfigFnPromise = (env: ConfigEnv) => Promise<ElectronupConfig>
64
+ type ElectronupConfigFn = (env: ConfigEnv) => ElectronupConfig | Promise<ElectronupConfig>
65
+
66
+ type ElectronupConfigExport =
67
+ | ElectronupConfig
68
+ | Promise<ElectronupConfig>
69
+ | ElectronupConfigFnObject
70
+ | ElectronupConfigFnPromise
71
+ | ElectronupConfigFn
72
+
66
73
  declare function defineConfig(config: ElectronupConfig): ElectronupConfig;
67
74
  declare function defineConfig(config: Promise<ElectronupConfig>): Promise<ElectronupConfig>;
68
75
  declare function defineConfig(config: ElectronupConfigFnObject): ElectronupConfigFnObject;
69
76
  declare function defineConfig(config: ElectronupConfigExport): ElectronupConfigExport;
70
77
 
71
- export { BuilderConfig, ConfigEnv, ElectronupConfig, ElectronupConfigExport, ElectronupConfigFn, ElectronupConfigFnObject, ElectronupConfigFnPromise, TsupConfig, ViteConfig, defineConfig };
78
+ export { BuilderConfig, ConfigEnv, ElectronupConfig, TsupConfig, ViteConfig, defineConfig };
@@ -59,13 +59,20 @@ interface ConfigEnv {
59
59
  root: string
60
60
  }
61
61
 
62
- type ElectronupConfigFnObject = (env: ConfigEnv) => ElectronupConfig;
63
- type ElectronupConfigFnPromise = (env: ConfigEnv) => Promise<ElectronupConfig>;
64
- type ElectronupConfigFn = (env: ConfigEnv) => ElectronupConfig | Promise<ElectronupConfig>;
65
- type ElectronupConfigExport = ElectronupConfig | Promise<ElectronupConfig> | ElectronupConfigFnObject | ElectronupConfigFnPromise | ElectronupConfigFn;
62
+ type ElectronupConfigFnObject = (env: ConfigEnv) => ElectronupConfig
63
+ type ElectronupConfigFnPromise = (env: ConfigEnv) => Promise<ElectronupConfig>
64
+ type ElectronupConfigFn = (env: ConfigEnv) => ElectronupConfig | Promise<ElectronupConfig>
65
+
66
+ type ElectronupConfigExport =
67
+ | ElectronupConfig
68
+ | Promise<ElectronupConfig>
69
+ | ElectronupConfigFnObject
70
+ | ElectronupConfigFnPromise
71
+ | ElectronupConfigFn
72
+
66
73
  declare function defineConfig(config: ElectronupConfig): ElectronupConfig;
67
74
  declare function defineConfig(config: Promise<ElectronupConfig>): Promise<ElectronupConfig>;
68
75
  declare function defineConfig(config: ElectronupConfigFnObject): ElectronupConfigFnObject;
69
76
  declare function defineConfig(config: ElectronupConfigExport): ElectronupConfigExport;
70
77
 
71
- export { BuilderConfig, ConfigEnv, ElectronupConfig, ElectronupConfigExport, ElectronupConfigFn, ElectronupConfigFnObject, ElectronupConfigFnPromise, TsupConfig, ViteConfig, defineConfig };
78
+ export { BuilderConfig, ConfigEnv, ElectronupConfig, TsupConfig, ViteConfig, defineConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electronup",
3
- "version": "0.0.9",
3
+ "version": "0.1.0",
4
4
  "description": "融合构建 electron 应用需要的构建工具,保留原有配置习惯的命令行工具 ",
5
5
  "author": "quiteer",
6
6
  "license": "MIT",
@@ -31,6 +31,11 @@
31
31
  "files": [
32
32
  "dist"
33
33
  ],
34
+ "scripts": {
35
+ "dev": "tsup --watch",
36
+ "build": "tsup",
37
+ "update-version": "bumpp package.json"
38
+ },
34
39
  "peerDependencies": {
35
40
  "@types/node": ">= 16",
36
41
  "node": ">= 16",
@@ -38,23 +43,18 @@
38
43
  },
39
44
  "dependencies": {
40
45
  "@quiteer/parser-config": "^1.0.3",
46
+ "@types/prompts": "^2.4.4",
41
47
  "cac": "^6.7.14",
42
48
  "dotenv": "^16.3.1",
43
- "electron": "^21.2.2",
44
- "electron-builder": "^24.6.3",
45
- "fs-extra": "^11.1.1",
49
+ "electron": "^22.3.6",
50
+ "electron-builder": "^24.9.1",
51
+ "fs-extra": "^11.2.0",
52
+ "kolorist": "^1.8.0",
46
53
  "portfinder": "^1.0.32",
54
+ "prompts": "^2.4.2",
47
55
  "tsup": "^7.2.0",
48
- "vite": "^4.4.9",
49
- "yaml": "^2.3.1"
56
+ "vite": "^4.5.1",
57
+ "yaml": "^2.3.4"
50
58
  },
51
- "devDependencies": {
52
- "@types/inquirer": "^9.0.3",
53
- "inquirer": "^9.2.10"
54
- },
55
- "scripts": {
56
- "dev": "tsup --watch",
57
- "build": "tsup",
58
- "update-version": "bumpp package.json"
59
- }
60
- }
59
+ "devDependencies": { }
60
+ }