@uni-helper/uni-env 0.1.3 → 0.1.4

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.
package/dist/index.cjs CHANGED
@@ -15,7 +15,7 @@ function parseJSON(val) {
15
15
  return obj;
16
16
  }
17
17
 
18
- const builtInPlatforms = ["h5", "web", "app", "app-plus", "mp-360", "mp-alipay", "mp-baidu", "mp-qq", "mp-toutiao", "mp-weixin", "mp-kuaishou", "mp-lark", "mp-jd", "mp-xhs", "quickapp-webview", "quickapp-webview-huawei", "quickapp-webview-union"];
18
+ const builtInPlatforms = ["h5", "web", "app", "app-plus", "app-harmony", "mp-360", "mp-alipay", "mp-baidu", "mp-qq", "mp-toutiao", "mp-weixin", "mp-kuaishou", "mp-lark", "mp-jd", "mp-xhs", "quickapp-webview", "quickapp-webview-huawei", "quickapp-webview-union"];
19
19
  const platform = stdEnv.env.UNI_PLATFORM;
20
20
  const appPlatform = stdEnv.env.UNI_APP_PLATFORM;
21
21
  const subPlatform = stdEnv.env.UNI_SUB_PLATFORM;
@@ -24,6 +24,7 @@ const isH5 = platform === "h5";
24
24
  const isWeb = platform === "web";
25
25
  const isApp = platform === "app";
26
26
  const isAppPlus = platform === "app-plus";
27
+ const isAppHarmony = platform === "app-harmony";
27
28
  const isAppAndroid = appPlatform === "android" || utsPlatform === "app-android";
28
29
  const isAppIOS = appPlatform === "ios" || utsPlatform === "app-ios";
29
30
  const isMp = /^mp-/i.test(platform);
@@ -84,6 +85,11 @@ const appXTsc = stdEnv.env.UNI_APP_X_TSC;
84
85
  const appXSingleThread = stdEnv.env.UNI_APP_X_SINGLE_THREAD;
85
86
  const appXSetup = stdEnv.env.UNI_APP_X_SETUP;
86
87
  const appXUVueScriptEngine = stdEnv.env.UNI_APP_X_UVUE_SCRIPT_ENGINE;
88
+ const compileTarget = stdEnv.env.UNI_COMPILE_TARGET;
89
+ const compileCloudDir = stdEnv.env.UNI_COMPILE_CLOUD_DIR;
90
+ const modulesEncryptCacheDir = stdEnv.env.UNI_MODULES_ENCRYPT_CACHE_DIR;
91
+ const appPackType = stdEnv.env.UNI_APP_PACK_TYPE;
92
+ const appHarmonyProjectPath = stdEnv.env.UNI_APP_HARMONY_PROJECT_PATH;
87
93
  const statTitleJson = parseJSON(stdEnv.env.STAT_TITLE_JSON);
88
94
  const sourcemap = stdEnv.env.SOURCEMAP;
89
95
  const hasSourcemap = toBoolean(stdEnv.env.SOURCEMAP);
@@ -95,6 +101,8 @@ const isSSRServer = toBoolean(stdEnv.env.UNI_SSR_SERVER);
95
101
  exports.appChangedFiles = appChangedFiles;
96
102
  exports.appChangedPages = appChangedPages;
97
103
  exports.appCodeSpliting = appCodeSpliting;
104
+ exports.appHarmonyProjectPath = appHarmonyProjectPath;
105
+ exports.appPackType = appPackType;
98
106
  exports.appPlatform = appPlatform;
99
107
  exports.appX = appX;
100
108
  exports.appXCacheDir = appXCacheDir;
@@ -108,6 +116,8 @@ exports.automatorAppWebviewSrc = automatorAppWebviewSrc;
108
116
  exports.automatorWsEndpoint = automatorWsEndpoint;
109
117
  exports.builtInPlatforms = builtInPlatforms;
110
118
  exports.cliContext = cliContext;
119
+ exports.compileCloudDir = compileCloudDir;
120
+ exports.compileTarget = compileTarget;
111
121
  exports.compiler = compiler;
112
122
  exports.compilerVersion = compilerVersion;
113
123
  exports.compilerVersionType = compilerVersionType;
@@ -126,6 +136,7 @@ exports.hxVersion = hxVersion;
126
136
  exports.inputDir = inputDir;
127
137
  exports.isApp = isApp;
128
138
  exports.isAppAndroid = isAppAndroid;
139
+ exports.isAppHarmony = isAppHarmony;
129
140
  exports.isAppIOS = isAppIOS;
130
141
  exports.isAppPlus = isAppPlus;
131
142
  exports.isAppX = isAppX;
@@ -147,6 +158,7 @@ exports.isSSRServer = isSSRServer;
147
158
  exports.isUVue = isUVue;
148
159
  exports.isWeb = isWeb;
149
160
  exports.minimize = minimize;
161
+ exports.modulesEncryptCacheDir = modulesEncryptCacheDir;
150
162
  exports.mpPlugin = mpPlugin;
151
163
  exports.nvueAppStyles = nvueAppStyles;
152
164
  exports.nvueCompiler = nvueCompiler;
package/dist/index.d.cts CHANGED
@@ -3,54 +3,54 @@ type OptionalString = string | undefined;
3
3
  /**
4
4
  * `process.env.UNI_PLATFORM`
5
5
  *
6
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L9}
7
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-uni-app.d.ts#L24}
8
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-uni-app.d.ts#L192-L209}
6
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L9}
7
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-uni-app.d.ts#L24}
8
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-uni-app.d.ts#L192-L209}
9
9
  */
10
- type BuiltInPlatform = 'h5' | 'web' | 'app' | 'app-plus' | 'mp-360' | 'mp-alipay' | 'mp-baidu' | 'mp-qq' | 'mp-toutiao' | 'mp-weixin' | 'mp-kuaishou' | 'mp-lark' | 'mp-jd' | 'mp-xhs' | 'quickapp-webview' | 'quickapp-webview-huawei' | 'quickapp-webview-union';
10
+ type BuiltInPlatform = 'h5' | 'web' | 'app' | 'app-plus' | 'app-harmony' | 'mp-360' | 'mp-alipay' | 'mp-baidu' | 'mp-qq' | 'mp-toutiao' | 'mp-weixin' | 'mp-kuaishou' | 'mp-lark' | 'mp-jd' | 'mp-xhs' | 'quickapp-webview' | 'quickapp-webview-huawei' | 'quickapp-webview-union';
11
11
  declare const builtInPlatforms: BuiltInPlatform[];
12
12
  /**
13
13
  * `process.env.UNI_PLATFORM`
14
14
  *
15
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L9}
16
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-uni-app.d.ts#L24}
17
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-uni-app.d.ts#L192-L209}
15
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L9}
16
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-uni-app.d.ts#L24}
17
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-uni-app.d.ts#L192-L209}
18
18
  */
19
19
  declare const platform: BuiltInPlatform;
20
20
  /**
21
21
  * `process.env.UNI_APP_PLATFORM`
22
22
  *
23
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L10}
23
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L10}
24
24
  */
25
- type AppPlatform = 'android' | 'ios' | undefined;
25
+ type AppPlatform = 'android' | 'ios' | 'harmony' | undefined;
26
26
  /**
27
27
  * `process.env.UNI_APP_PLATFORM`
28
28
  *
29
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L10}
29
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L10}
30
30
  */
31
31
  declare const appPlatform: AppPlatform;
32
32
  /**
33
33
  * `process.env.UNI_SUB_PLATFORM`
34
34
  *
35
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L11}
35
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L11}
36
36
  */
37
37
  type SubPlatform = 'quickapp-webview-huawei' | 'quickapp-webview-union' | undefined;
38
38
  /**
39
39
  * `process.env.UNI_SUB_PLATFORM`
40
40
  *
41
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L11}
41
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L11}
42
42
  */
43
43
  declare const subPlatform: SubPlatform;
44
44
  /**
45
45
  * `process.env.UNI_UTS_PLATFORM`
46
46
  *
47
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L12}
47
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L12}
48
48
  */
49
49
  type UtsPlatform = BuiltInPlatform | 'app-android' | 'app-ios' | 'web';
50
50
  /**
51
51
  * `process.env.UNI_UTS_PLATFORM`
52
52
  *
53
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L12}
53
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L12}
54
54
  */
55
55
  declare const utsPlatform: UtsPlatform;
56
56
  /** Detect if `process.env.UNI_PLATFORM` is `h5` */
@@ -61,6 +61,8 @@ declare const isWeb: boolean;
61
61
  declare const isApp: boolean;
62
62
  /** Detect if `process.env.UNI_PLATFORM` is `app-plus` */
63
63
  declare const isAppPlus: boolean;
64
+ /** Detect if `process.env.UNI_PLATFORM` is `app-harmony` */
65
+ declare const isAppHarmony: boolean;
64
66
  /** Detect if `process.env.UNI_APP_PLATFORM` is `android` or if `process.env.UNI_UTS_PLATFORM` is `app-android` */
65
67
  declare const isAppAndroid: boolean;
66
68
  /** Detect if `process.env.UNI_APP_PLATFORM` is `ios` or if `process.env.UNI_UTS_PLATFORM` is `app-ios` */
@@ -88,73 +90,73 @@ declare const isQuickappHuawei: boolean;
88
90
  /**
89
91
  * `process.env.UNI_UTS_JS_CODE_FORMAT`
90
92
  *
91
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L14}
93
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L14}
92
94
  */
93
95
  type UtsJsCodeFormat = 'cjs' | 'es' | undefined;
94
96
  /**
95
97
  * `process.env.UNI_UTS_JS_CODE_FORMAT`
96
98
  *
97
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L14}
99
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L14}
98
100
  */
99
101
  declare const utsJsCodeFormat: UtsJsCodeFormat;
100
102
  /**
101
103
  * `process.env.UNI_UTS_MODULE_TYPE`
102
104
  *
103
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L15}
105
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L15}
104
106
  */
105
107
  type UtsModuleType = 'built-in' | '' | undefined;
106
108
  /**
107
109
  * `process.env.UNI_UTS_MODULE_TYPE`
108
110
  *
109
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L15}
111
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L15}
110
112
  */
111
113
  declare const utsModuleType: UtsModuleType;
112
114
  /**
113
115
  * `process.env.UNI_UTS_MODULE_PREFIX`
114
116
  *
115
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L16}
117
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L16}
116
118
  */
117
119
  declare const utsModulePrefix: OptionalString;
118
120
  /**
119
121
  * `process.env.UNI_UTS_TARGET_LANGUAGE`
120
122
  *
121
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L17}
123
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L17}
122
124
  */
123
- type UtsTargetLanguage = 'javascript' | 'kotlin' | 'swift' | undefined;
125
+ type UtsTargetLanguage = 'javascript' | 'kotlin' | 'swift' | 'arkts' | undefined;
124
126
  /**
125
127
  * `process.env.UNI_UTS_TARGET_LANGUAGE`
126
128
  *
127
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L17}
129
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L17}
128
130
  */
129
131
  declare const utsTargetLanguage: UtsTargetLanguage;
130
132
  /**
131
133
  * `process.env.UNI_INPUT_DIR`
132
134
  *
133
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L19}
135
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L19}
134
136
  */
135
137
  declare const inputDir: OptionalString;
136
138
  /**
137
139
  * `process.env.UNI_OUTPUT_DIR`
138
140
  *
139
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L20}
141
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L20}
140
142
  */
141
143
  declare const outputDir: OptionalString;
142
144
  /**
143
145
  * `process.env.UNI_CLI_CONTEXT`
144
146
  *
145
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L21}
147
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L21}
146
148
  */
147
149
  declare const cliContext: OptionalString;
148
150
  /**
149
151
  * `process.env.UNI_SUBPACKAGE`
150
152
  *
151
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L22}
153
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L22}
152
154
  */
153
155
  declare const subpackage: OptionalString;
154
156
  /**
155
157
  * `process.env.UNI_MP_PLUGIN`
156
158
  *
157
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L23}
159
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L23}
158
160
  */
159
161
  declare const mpPlugin: OptionalBooleanString;
160
162
  /** Detect if `process.env.UNI_MP_PLUGIN` is set */
@@ -162,127 +164,127 @@ declare const isMpPlugin: boolean;
162
164
  /**
163
165
  * `process.env.UNI_COMPILER_VERSION`
164
166
  *
165
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L24}
167
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L24}
166
168
  */
167
169
  declare const compilerVersion: OptionalString;
168
170
  /**
169
171
  * `process.env.UNI_COMPILER_VERSION`
170
172
  *
171
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L25}
173
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L25}
172
174
  */
173
175
  type CompilerVersionType = 'a' | 'r' | undefined;
174
176
  /**
175
177
  * `process.env.UNI_COMPILER_VERSION`
176
178
  *
177
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L25}
179
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L25}
178
180
  */
179
181
  declare const compilerVersionType: CompilerVersionType;
180
182
  /**
181
183
  * `process.env.UNI_HBUILDERX_PLUGINS`
182
184
  *
183
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L26}
185
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L26}
184
186
  */
185
187
  declare const hbuilderxPlugins: OptionalString;
186
188
  /**
187
189
  * `process.env.UNI_RENDERER`
188
190
  *
189
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L27}
191
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L27}
190
192
  */
191
193
  type Renderer = 'native' | undefined;
192
194
  /**
193
195
  * `process.env.UNI_RENDERER`
194
196
  *
195
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L27}
197
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L27}
196
198
  */
197
199
  declare const renderer: Renderer;
198
200
  /**
199
201
  * `process.env.UNI_NVUE_COMPILER`
200
202
  *
201
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L28}
203
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L28}
202
204
  */
203
205
  type NVueCompiler = 'uni-app' | 'weex' | 'vue' | 'vite' | undefined;
204
206
  /**
205
207
  * `process.env.UNI_NVUE_COMPILER`
206
208
  *
207
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L28}
209
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L28}
208
210
  */
209
211
  declare const nvueCompiler: NVueCompiler;
210
212
  /**
211
213
  * `process.env.UNI_NVUE_STYLE_COMPILER`
212
214
  *
213
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L29}
215
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L29}
214
216
  */
215
217
  type NVueStyleCompiler = 'uni-app' | 'weex' | undefined;
216
218
  /**
217
219
  * `process.env.UNI_NVUE_STYLE_COMPILER`
218
220
  *
219
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L29}
221
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L29}
220
222
  */
221
223
  declare const nvueStyleCompiler: NVueStyleCompiler;
222
224
  /**
223
225
  * `process.env.UNI_APP_CODE_SPLITING`
224
226
  *
225
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L30}
227
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L30}
226
228
  */
227
229
  declare const appCodeSpliting: OptionalBooleanString;
228
230
  /**
229
231
  * `process.env.UNI_AUTOMATOR_WS_ENDPOINT`
230
232
  *
231
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L31}
233
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L31}
232
234
  */
233
235
  declare const automatorWsEndpoint: OptionalString;
234
236
  /**
235
237
  * `process.env.UNI_AUTOMATOR_APP_WEBVIEW`
236
238
  *
237
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L32}
239
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L32}
238
240
  */
239
241
  declare const automatorAppWebview: OptionalString;
240
242
  /**
241
243
  * `process.env.UNI_AUTOMATOR_APP_WEBVIEW_SRC`
242
244
  *
243
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L33}
245
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L33}
244
246
  */
245
247
  declare const automatorAppWebviewSrc: OptionalString;
246
248
  /**
247
249
  * `process.env.UNI_H5_BASE`
248
250
  *
249
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L34}
251
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L34}
250
252
  */
251
253
  declare const h5Base: OptionalString;
252
254
  /**
253
255
  * `process.env.UNI_H5_BROWSER`
254
256
  *
255
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L35}
257
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L35}
256
258
  */
257
259
  type H5Browser = 'builtin' | undefined;
258
260
  /**
259
261
  * `process.env.UNI_H5_BROWSER`
260
262
  *
261
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L35}
263
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L35}
262
264
  */
263
265
  declare const h5Browser: H5Browser;
264
266
  /**
265
267
  * `process.env.UNI_CUSTOM_SCRIPT`
266
268
  *
267
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L36}
269
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L36}
268
270
  */
269
271
  declare const customScript: OptionalString;
270
272
  /**
271
273
  * `process.env.UNI_CUSTOM_DEFINE`
272
274
  *
273
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L37}
275
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L37}
274
276
  */
275
277
  declare const customDefine: OptionalString;
276
278
  /**
277
279
  * `process.env.UNI_CUSTOM_CONTEXT`
278
280
  *
279
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L38}
281
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L38}
280
282
  */
281
283
  declare const customContext: OptionalString;
282
284
  /**
283
285
  * `process.env.UNI_MINIMIZE`
284
286
  *
285
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L39}
287
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L39}
286
288
  */
287
289
  declare const minimize: OptionalBooleanString;
288
290
  /** Detect if `process.env.UNI_MINIMIZE` is set */
@@ -290,7 +292,7 @@ declare const isMinimize: boolean;
290
292
  /**
291
293
  * `process.env.UNI_UVUE`
292
294
  *
293
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L40}
295
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L40}
294
296
  */
295
297
  declare const uvue: OptionalBooleanString;
296
298
  /** Detect if `process.env.UNI_UVUE` is set */
@@ -298,61 +300,61 @@ declare const isUVue: boolean;
298
300
  /**
299
301
  * `process.env.UNI_UVUE_TARGET_LANGUAGE`
300
302
  *
301
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L41}
303
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L41}
302
304
  */
303
305
  type UVueTargetLanguage = 'kotlin' | 'swift' | 'javascript' | undefined;
304
306
  /**
305
307
  * `process.env.UNI_UVUE_TARGET_LANGUAGE`
306
308
  *
307
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L41}
309
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L41}
308
310
  */
309
311
  declare const uvueTargetLanguage: UVueTargetLanguage;
310
312
  /**
311
313
  * `process.env.UNI_COMPILER`
312
314
  *
313
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L42}
315
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L42}
314
316
  */
315
317
  type Compiler = 'vue' | 'nvue' | undefined;
316
318
  /**
317
319
  * `process.env.UNI_COMPILER`
318
320
  *
319
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L42}
321
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L42}
320
322
  */
321
323
  declare const compiler: Compiler;
322
324
  /**
323
325
  * `process.env.UNI_RENDERER_NATIVE`
324
326
  *
325
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L43}
327
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L43}
326
328
  */
327
329
  type RendererNative = 'appService' | 'pages' | undefined;
328
330
  /**
329
331
  * `process.env.UNI_RENDERER_NATIVE`
330
332
  *
331
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L43}
333
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L43}
332
334
  */
333
335
  declare const rendererNative: RendererNative;
334
336
  /**
335
337
  * `process.env.UNI_NVUE_APP_STYLES`
336
338
  *
337
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L44}
339
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L44}
338
340
  */
339
341
  declare const nvueAppStyles: OptionalString;
340
342
  /**
341
343
  * `process.env.UNI_APP_CHANGED_FILES`
342
344
  *
343
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L45}
345
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L45}
344
346
  */
345
347
  declare const appChangedFiles: OptionalString;
346
348
  /**
347
349
  * `process.env.UNI_APP_CHANGED_PAGES`
348
350
  *
349
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L46}
351
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L46}
350
352
  */
351
353
  declare const appChangedPages: OptionalString;
352
354
  /**
353
355
  * `process.env.VUE_APP_DARK_MODE`
354
356
  *
355
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L47}
357
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L47}
356
358
  */
357
359
  declare const darkMode: OptionalBooleanString;
358
360
  /** Detect if `process.env.VUE_APP_DARK_MODE` is set */
@@ -360,25 +362,25 @@ declare const hasDarkMode: boolean;
360
362
  /**
361
363
  * `process.env.HX_USE_BASE_TYPE`
362
364
  *
363
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L48}
365
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L48}
364
366
  */
365
367
  type HxUseBaseType = 'standard' | 'custom' | undefined;
366
368
  /**
367
369
  * `process.env.HX_USE_BASE_TYPE`
368
370
  *
369
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L48}
371
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L48}
370
372
  */
371
373
  declare const hxUseBaseType: HxUseBaseType;
372
374
  /**
373
375
  * `process.env.HX_DEPENDENCIES_DIR`
374
376
  *
375
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L49}
377
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L49}
376
378
  */
377
379
  declare const hxDependenciesDir: OptionalString;
378
380
  /**
379
381
  * `process.env.UNI_APP_X`
380
382
  *
381
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L55}
383
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L55}
382
384
  */
383
385
  declare const appX: OptionalBooleanString;
384
386
  /** Detect if `process.env.UNI_APP_X` is set */
@@ -386,51 +388,93 @@ declare const isAppX: boolean;
386
388
  /**
387
389
  * `process.env.UNI_APP_X_CACHE_DIR`
388
390
  *
389
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L56}
391
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L56}
390
392
  */
391
393
  declare const appXCacheDir: OptionalString;
392
394
  /**
393
395
  * `process.env.HX_VERSION`
394
396
  *
395
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L58}
397
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L58}
396
398
  */
397
399
  declare const hxVersion: OptionalString;
398
400
  /**
399
401
  * `process.env.UNI_APP_X_PAGE_COUNT`
400
402
  *
401
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L60}
403
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L60}
402
404
  */
403
405
  declare const appXPageCount: OptionalString;
404
406
  /**
405
407
  * `process.env.UNI_APP_X_TSC`
406
408
  *
407
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L61}
409
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L61}
408
410
  */
409
411
  declare const appXTsc: OptionalString;
410
412
  /**
411
413
  * `process.env.UNI_APP_X_SINGLE_THREAD`
412
414
  *
413
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L62}
415
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L62}
414
416
  */
415
417
  declare const appXSingleThread: OptionalString;
416
418
  /**
417
419
  * `process.env.UNI_APP_X_SETUP`
418
420
  *
419
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L63}
421
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L63}
420
422
  */
421
423
  declare const appXSetup: OptionalString;
422
424
  /**
423
425
  * `process.env.UNI_APP_X_UVUE_SCRIPT_ENGINE`
424
426
  *
425
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L64}
427
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L64}
426
428
  */
427
429
  type AppXUVueScriptEngine = 'native' | 'js' | undefined;
428
430
  /**
429
431
  * `process.env.UNI_APP_X_UVUE_SCRIPT_ENGINE`
430
432
  *
431
- * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4010520240507001/packages/shims-node.d.ts#L64}
433
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L64}
432
434
  */
433
435
  declare const appXUVueScriptEngine: AppXUVueScriptEngine;
436
+ /**
437
+ * `process.env.UNI_COMPILE_TARGET`
438
+ *
439
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L66}
440
+ */
441
+ type CompileTarget = 'uni_modules' | undefined;
442
+ /**
443
+ * `process.env.UNI_COMPILE_TARGET`
444
+ *
445
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L66}
446
+ */
447
+ declare const compileTarget: CompileTarget;
448
+ /**
449
+ * `process.env.UNI_COMPILE_CLOUD_DIR`
450
+ *
451
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L67}
452
+ */
453
+ declare const compileCloudDir: OptionalString;
454
+ /**
455
+ * `process.env.UNI_MODULES_ENCRYPT_CACHE_DIR`
456
+ *
457
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L68}
458
+ */
459
+ declare const modulesEncryptCacheDir: OptionalString;
460
+ /**
461
+ * `process.env.UNI_APP_PACK_TYPE`
462
+ *
463
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L70}
464
+ */
465
+ type AppPackType = 'release' | 'debug' | undefined;
466
+ /**
467
+ * `process.env.UNI_APP_PACK_TYPE`
468
+ *
469
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L70}
470
+ */
471
+ declare const appPackType: AppPackType;
472
+ /**
473
+ * `process.env.UNI_APP_HARMONY_PROJECT_PATH`
474
+ *
475
+ * @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020420240722002/packages/shims-node.d.ts#L72}
476
+ */
477
+ declare const appHarmonyProjectPath: OptionalString;
434
478
  /** `process.env.STAT_TITLE_JSON` */
435
479
  declare const statTitleJson: Record<string, string>;
436
480
  /** `process.env.SOURCEMAP` */
@@ -446,4 +490,4 @@ declare const ssrServer: OptionalBooleanString;
446
490
  /** Detect if `process.env.UNI_SSR_SERVER` is set */
447
491
  declare const isSSRServer: boolean;
448
492
 
449
- export { type AppPlatform, type AppXUVueScriptEngine, type BuiltInPlatform, type Compiler, type CompilerVersionType, type H5Browser, type HxUseBaseType, type NVueCompiler, type NVueStyleCompiler, type OptionalBooleanString, type OptionalString, type Renderer, type RendererNative, type SubPlatform, type UVueTargetLanguage, type UtsJsCodeFormat, type UtsModuleType, type UtsPlatform, type UtsTargetLanguage, appChangedFiles, appChangedPages, appCodeSpliting, appPlatform, appX, appXCacheDir, appXPageCount, appXSetup, appXSingleThread, appXTsc, appXUVueScriptEngine, automatorAppWebview, automatorAppWebviewSrc, automatorWsEndpoint, builtInPlatforms, cliContext, compiler, compilerVersion, compilerVersionType, customContext, customDefine, customScript, darkMode, h5Base, h5Browser, hasDarkMode, hasSourcemap, hbuilderxPlugins, hxDependenciesDir, hxUseBaseType, hxVersion, inputDir, isApp, isAppAndroid, isAppIOS, isAppPlus, isAppX, isH5, isMinimize, isMp, isMpAlipay, isMpBaidu, isMpKuaishou, isMpPlugin, isMpQQ, isMpToutiao, isMpWeixin, isQuickapp, isQuickappHuawei, isQuickappUnion, isSSRClient, isSSRServer, isUVue, isWeb, minimize, mpPlugin, nvueAppStyles, nvueCompiler, nvueStyleCompiler, outputDir, platform, renderer, rendererNative, sourcemap, ssrClient, ssrServer, statTitleJson, subPlatform, subpackage, utsJsCodeFormat, utsModulePrefix, utsModuleType, utsPlatform, utsTargetLanguage, uvue, uvueTargetLanguage };
493
+ export { type AppPackType, type AppPlatform, type AppXUVueScriptEngine, type BuiltInPlatform, type CompileTarget, type Compiler, type CompilerVersionType, type H5Browser, type HxUseBaseType, type NVueCompiler, type NVueStyleCompiler, type OptionalBooleanString, type OptionalString, type Renderer, type RendererNative, type SubPlatform, type UVueTargetLanguage, type UtsJsCodeFormat, type UtsModuleType, type UtsPlatform, type UtsTargetLanguage, appChangedFiles, appChangedPages, appCodeSpliting, appHarmonyProjectPath, appPackType, appPlatform, appX, appXCacheDir, appXPageCount, appXSetup, appXSingleThread, appXTsc, appXUVueScriptEngine, automatorAppWebview, automatorAppWebviewSrc, automatorWsEndpoint, builtInPlatforms, cliContext, compileCloudDir, compileTarget, compiler, compilerVersion, compilerVersionType, customContext, customDefine, customScript, darkMode, h5Base, h5Browser, hasDarkMode, hasSourcemap, hbuilderxPlugins, hxDependenciesDir, hxUseBaseType, hxVersion, inputDir, isApp, isAppAndroid, isAppHarmony, isAppIOS, isAppPlus, isAppX, isH5, isMinimize, isMp, isMpAlipay, isMpBaidu, isMpKuaishou, isMpPlugin, isMpQQ, isMpToutiao, isMpWeixin, isQuickapp, isQuickappHuawei, isQuickappUnion, isSSRClient, isSSRServer, isUVue, isWeb, minimize, modulesEncryptCacheDir, mpPlugin, nvueAppStyles, nvueCompiler, nvueStyleCompiler, outputDir, platform, renderer, rendererNative, sourcemap, ssrClient, ssrServer, statTitleJson, subPlatform, subpackage, utsJsCodeFormat, utsModulePrefix, utsModuleType, utsPlatform, utsTargetLanguage, uvue, uvueTargetLanguage };