@uni-helper/uni-env 0.1.5 → 0.1.6
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 +55 -53
- package/dist/index.d.cts +15 -4
- package/dist/index.d.mts +15 -4
- package/dist/index.d.ts +15 -4
- package/dist/index.mjs +55 -53
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const stdEnv = require('std-env');
|
|
4
|
+
|
|
3
5
|
function toBoolean(val) {
|
|
4
6
|
return val ? val !== "false" : false;
|
|
5
7
|
}
|
|
@@ -15,9 +17,9 @@ function parseJSON(val) {
|
|
|
15
17
|
|
|
16
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"];
|
|
17
19
|
const platform = process.env.UNI_PLATFORM;
|
|
18
|
-
const appPlatform =
|
|
20
|
+
const appPlatform = stdEnv.env.UNI_APP_PLATFORM;
|
|
19
21
|
const subPlatform = process.env.UNI_SUB_PLATFORM;
|
|
20
|
-
const utsPlatform =
|
|
22
|
+
const utsPlatform = stdEnv.env.UNI_UTS_PLATFORM;
|
|
21
23
|
const isH5 = platform === "h5";
|
|
22
24
|
const isWeb = platform === "web";
|
|
23
25
|
const isApp = platform === "app";
|
|
@@ -35,66 +37,66 @@ const isMpToutiao = platform === "mp-toutiao";
|
|
|
35
37
|
const isQuickapp = /^quickapp-webview/i.test(platform);
|
|
36
38
|
const isQuickappUnion = platform === "quickapp-webview-union";
|
|
37
39
|
const isQuickappHuawei = platform === "quickapp-webview-huawei";
|
|
38
|
-
const utsJsCodeFormat =
|
|
39
|
-
const utsModuleType =
|
|
40
|
-
const utsModulePrefix =
|
|
41
|
-
const utsTargetLanguage =
|
|
42
|
-
const inputDir =
|
|
43
|
-
const outputDir =
|
|
44
|
-
const cliContext =
|
|
40
|
+
const utsJsCodeFormat = stdEnv.env.UNI_UTS_JS_CODE_FORMAT;
|
|
41
|
+
const utsModuleType = stdEnv.env.UNI_UTS_MODULE_TYPE;
|
|
42
|
+
const utsModulePrefix = stdEnv.env.UNI_UTS_MODULE_PREFIX;
|
|
43
|
+
const utsTargetLanguage = stdEnv.env.UNI_UTS_TARGET_LANGUAGE;
|
|
44
|
+
const inputDir = stdEnv.env.UNI_INPUT_DIR;
|
|
45
|
+
const outputDir = stdEnv.env.UNI_OUTPUT_DIR;
|
|
46
|
+
const cliContext = stdEnv.env.UNI_CLI_CONTEXT;
|
|
45
47
|
const subpackage = process.env.UNI_SUBPACKAGE;
|
|
46
48
|
const mpPlugin = process.env.UNI_MP_PLUGIN;
|
|
47
49
|
const isMpPlugin = toBoolean(process.env.UNI_MP_PLUGIN);
|
|
48
50
|
const compilerVersion = process.env.UNI_COMPILER_VERSION;
|
|
49
|
-
const compilerVersionType =
|
|
50
|
-
const hbuilderxPlugins =
|
|
51
|
-
const renderer =
|
|
52
|
-
const nvueCompiler =
|
|
53
|
-
const nvueStyleCompiler =
|
|
54
|
-
const appCodeSpliting =
|
|
51
|
+
const compilerVersionType = stdEnv.env.UNI_COMPILER_VERSION_TYPE;
|
|
52
|
+
const hbuilderxPlugins = stdEnv.env.UNI_HBUILDERX_PLUGINS;
|
|
53
|
+
const renderer = stdEnv.env.UNI_RENDERER;
|
|
54
|
+
const nvueCompiler = stdEnv.env.UNI_NVUE_COMPILER;
|
|
55
|
+
const nvueStyleCompiler = stdEnv.env.UNI_NVUE_STYLE_COMPILER;
|
|
56
|
+
const appCodeSpliting = stdEnv.env.UNI_APP_CODE_SPLITING;
|
|
55
57
|
const automatorWsEndpoint = process.env.UNI_AUTOMATOR_WS_ENDPOINT;
|
|
56
58
|
const automatorAppWebview = process.env.UNI_AUTOMATOR_APP_WEBVIEW;
|
|
57
59
|
const automatorAppWebviewSrc = process.env.UNI_AUTOMATOR_APP_WEBVIEW_SRC;
|
|
58
|
-
const h5Base =
|
|
59
|
-
const h5Browser =
|
|
60
|
-
const customScript =
|
|
61
|
-
const customDefine =
|
|
62
|
-
const customContext =
|
|
63
|
-
const minimize =
|
|
64
|
-
const isMinimize = toBoolean(
|
|
65
|
-
const uvue =
|
|
66
|
-
const isUVue = toBoolean(
|
|
67
|
-
const uvueTargetLanguage =
|
|
68
|
-
const compiler =
|
|
69
|
-
const rendererNative =
|
|
70
|
-
const nvueAppStyles =
|
|
71
|
-
const appChangedFiles =
|
|
72
|
-
const appChangedPages =
|
|
60
|
+
const h5Base = stdEnv.env.UNI_H5_BASE;
|
|
61
|
+
const h5Browser = stdEnv.env.UNI_H5_BROWSER;
|
|
62
|
+
const customScript = stdEnv.env.UNI_CUSTOM_SCRIPT;
|
|
63
|
+
const customDefine = stdEnv.env.UNI_CUSTOM_DEFINE;
|
|
64
|
+
const customContext = stdEnv.env.UNI_CUSTOM_CONTEXT;
|
|
65
|
+
const minimize = stdEnv.env.UNI_MINIMIZE;
|
|
66
|
+
const isMinimize = toBoolean(stdEnv.env.UNI_MINIMIZE);
|
|
67
|
+
const uvue = stdEnv.env.UNI_UVUE;
|
|
68
|
+
const isUVue = toBoolean(stdEnv.env.UNI_UVUE);
|
|
69
|
+
const uvueTargetLanguage = stdEnv.env.UNI_UVUE_TARGET_LANGUAGE;
|
|
70
|
+
const compiler = stdEnv.env.UNI_COMPILER;
|
|
71
|
+
const rendererNative = stdEnv.env.UNI_RENDERER_NATIVE;
|
|
72
|
+
const nvueAppStyles = stdEnv.env.UNI_NVUE_APP_STYLES;
|
|
73
|
+
const appChangedFiles = stdEnv.env.UNI_APP_CHANGED_FILES;
|
|
74
|
+
const appChangedPages = stdEnv.env.UNI_APP_CHANGED_PAGES;
|
|
73
75
|
const darkMode = process.env.VUE_APP_DARK_MODE;
|
|
74
76
|
const hasDarkMode = toBoolean(process.env.VUE_APP_DARK_MODE);
|
|
75
|
-
const hxUseBaseType =
|
|
76
|
-
const hxDependenciesDir =
|
|
77
|
-
const appX =
|
|
78
|
-
const isAppX = toBoolean(
|
|
79
|
-
const appXCacheDir =
|
|
80
|
-
const hxVersion =
|
|
81
|
-
const appXPageCount =
|
|
82
|
-
const appXTsc =
|
|
83
|
-
const appXSingleThread =
|
|
84
|
-
const appXSetup =
|
|
85
|
-
const appXUVueScriptEngine =
|
|
86
|
-
const compileTarget =
|
|
87
|
-
const compileCloudDir =
|
|
88
|
-
const modulesEncryptCacheDir =
|
|
89
|
-
const appPackType =
|
|
90
|
-
const appHarmonyProjectPath =
|
|
91
|
-
const statTitleJson = parseJSON(
|
|
92
|
-
const sourcemap =
|
|
93
|
-
const hasSourcemap = toBoolean(
|
|
94
|
-
const ssrClient =
|
|
95
|
-
const isSSRClient = toBoolean(
|
|
96
|
-
const ssrServer =
|
|
97
|
-
const isSSRServer = toBoolean(
|
|
77
|
+
const hxUseBaseType = stdEnv.env.HX_USE_BASE_TYPE;
|
|
78
|
+
const hxDependenciesDir = stdEnv.env.HX_DEPENDENCIES_DIR;
|
|
79
|
+
const appX = stdEnv.env.UNI_APP_X;
|
|
80
|
+
const isAppX = toBoolean(stdEnv.env.UNI_APP_X);
|
|
81
|
+
const appXCacheDir = stdEnv.env.UNI_APP_X_CACHE_DIR;
|
|
82
|
+
const hxVersion = stdEnv.env.HX_VERSION;
|
|
83
|
+
const appXPageCount = stdEnv.env.UNI_APP_X_PAGE_COUNT;
|
|
84
|
+
const appXTsc = stdEnv.env.UNI_APP_X_TSC;
|
|
85
|
+
const appXSingleThread = stdEnv.env.UNI_APP_X_SINGLE_THREAD;
|
|
86
|
+
const appXSetup = stdEnv.env.UNI_APP_X_SETUP;
|
|
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;
|
|
93
|
+
const statTitleJson = parseJSON(stdEnv.env.STAT_TITLE_JSON);
|
|
94
|
+
const sourcemap = stdEnv.env.SOURCEMAP;
|
|
95
|
+
const hasSourcemap = toBoolean(stdEnv.env.SOURCEMAP);
|
|
96
|
+
const ssrClient = stdEnv.env.UNI_SSR_CLIENT;
|
|
97
|
+
const isSSRClient = toBoolean(stdEnv.env.UNI_SSR_CLIENT);
|
|
98
|
+
const ssrServer = stdEnv.env.UNI_SSR_SERVER;
|
|
99
|
+
const isSSRServer = toBoolean(stdEnv.env.UNI_SSR_SERVER);
|
|
98
100
|
|
|
99
101
|
exports.appChangedFiles = appChangedFiles;
|
|
100
102
|
exports.appChangedPages = appChangedPages;
|
package/dist/index.d.cts
CHANGED
|
@@ -5,7 +5,8 @@ type OptionalString = string | undefined;
|
|
|
5
5
|
*
|
|
6
6
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L9}
|
|
7
7
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-uni-app.d.ts#L24}
|
|
8
|
-
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-uni-app.d.ts#
|
|
8
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-uni-app.d.ts#L193-L211}
|
|
9
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L24}
|
|
9
10
|
*/
|
|
10
11
|
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
12
|
declare const builtInPlatforms: BuiltInPlatform[];
|
|
@@ -14,7 +15,8 @@ declare const builtInPlatforms: BuiltInPlatform[];
|
|
|
14
15
|
*
|
|
15
16
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L9}
|
|
16
17
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-uni-app.d.ts#L24}
|
|
17
|
-
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-uni-app.d.ts#
|
|
18
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-uni-app.d.ts#L193-L211}
|
|
19
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L24}
|
|
18
20
|
*/
|
|
19
21
|
declare const platform: BuiltInPlatform;
|
|
20
22
|
/**
|
|
@@ -33,12 +35,14 @@ declare const appPlatform: AppPlatform;
|
|
|
33
35
|
* `process.env.UNI_SUB_PLATFORM`
|
|
34
36
|
*
|
|
35
37
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L11}
|
|
38
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L25-L27}
|
|
36
39
|
*/
|
|
37
40
|
type SubPlatform = 'quickapp-webview-huawei' | 'quickapp-webview-union' | undefined;
|
|
38
41
|
/**
|
|
39
42
|
* `process.env.UNI_SUB_PLATFORM`
|
|
40
43
|
*
|
|
41
44
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L11}
|
|
45
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L25-L27}
|
|
42
46
|
*/
|
|
43
47
|
declare const subPlatform: SubPlatform;
|
|
44
48
|
/**
|
|
@@ -151,12 +155,14 @@ declare const cliContext: OptionalString;
|
|
|
151
155
|
* `process.env.UNI_SUBPACKAGE`
|
|
152
156
|
*
|
|
153
157
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L22}
|
|
158
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L31C18-L33}
|
|
154
159
|
*/
|
|
155
160
|
declare const subpackage: OptionalString;
|
|
156
161
|
/**
|
|
157
162
|
* `process.env.UNI_MP_PLUGIN`
|
|
158
163
|
*
|
|
159
164
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L23}
|
|
165
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L28C18-L30}
|
|
160
166
|
*/
|
|
161
167
|
declare const mpPlugin: OptionalBooleanString;
|
|
162
168
|
/** Detect if `process.env.UNI_MP_PLUGIN` is set */
|
|
@@ -165,16 +171,17 @@ declare const isMpPlugin: boolean;
|
|
|
165
171
|
* `process.env.UNI_COMPILER_VERSION`
|
|
166
172
|
*
|
|
167
173
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L24}
|
|
174
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L34C18-L36}
|
|
168
175
|
*/
|
|
169
176
|
declare const compilerVersion: OptionalString;
|
|
170
177
|
/**
|
|
171
|
-
* `process.env.
|
|
178
|
+
* `process.env.UNI_COMPILER_VERSION_TYPE`
|
|
172
179
|
*
|
|
173
180
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L25}
|
|
174
181
|
*/
|
|
175
182
|
type CompilerVersionType = 'a' | 'r' | undefined;
|
|
176
183
|
/**
|
|
177
|
-
* `process.env.
|
|
184
|
+
* `process.env.UNI_COMPILER_VERSION_TYPE`
|
|
178
185
|
*
|
|
179
186
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L25}
|
|
180
187
|
*/
|
|
@@ -231,18 +238,21 @@ declare const appCodeSpliting: OptionalBooleanString;
|
|
|
231
238
|
* `process.env.UNI_AUTOMATOR_WS_ENDPOINT`
|
|
232
239
|
*
|
|
233
240
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L31}
|
|
241
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L40C18-L42}
|
|
234
242
|
*/
|
|
235
243
|
declare const automatorWsEndpoint: OptionalString;
|
|
236
244
|
/**
|
|
237
245
|
* `process.env.UNI_AUTOMATOR_APP_WEBVIEW`
|
|
238
246
|
*
|
|
239
247
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L32}
|
|
248
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L40C18-L42}
|
|
240
249
|
*/
|
|
241
250
|
declare const automatorAppWebview: OptionalString;
|
|
242
251
|
/**
|
|
243
252
|
* `process.env.UNI_AUTOMATOR_APP_WEBVIEW_SRC`
|
|
244
253
|
*
|
|
245
254
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L33}
|
|
255
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L43C18-L45}
|
|
246
256
|
*/
|
|
247
257
|
declare const automatorAppWebviewSrc: OptionalString;
|
|
248
258
|
/**
|
|
@@ -355,6 +365,7 @@ declare const appChangedPages: OptionalString;
|
|
|
355
365
|
* `process.env.VUE_APP_DARK_MODE`
|
|
356
366
|
*
|
|
357
367
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L47}
|
|
368
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L56C18-L58}
|
|
358
369
|
*/
|
|
359
370
|
declare const darkMode: OptionalBooleanString;
|
|
360
371
|
/** Detect if `process.env.VUE_APP_DARK_MODE` is set */
|
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,8 @@ type OptionalString = string | undefined;
|
|
|
5
5
|
*
|
|
6
6
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L9}
|
|
7
7
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-uni-app.d.ts#L24}
|
|
8
|
-
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-uni-app.d.ts#
|
|
8
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-uni-app.d.ts#L193-L211}
|
|
9
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L24}
|
|
9
10
|
*/
|
|
10
11
|
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
12
|
declare const builtInPlatforms: BuiltInPlatform[];
|
|
@@ -14,7 +15,8 @@ declare const builtInPlatforms: BuiltInPlatform[];
|
|
|
14
15
|
*
|
|
15
16
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L9}
|
|
16
17
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-uni-app.d.ts#L24}
|
|
17
|
-
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-uni-app.d.ts#
|
|
18
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-uni-app.d.ts#L193-L211}
|
|
19
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L24}
|
|
18
20
|
*/
|
|
19
21
|
declare const platform: BuiltInPlatform;
|
|
20
22
|
/**
|
|
@@ -33,12 +35,14 @@ declare const appPlatform: AppPlatform;
|
|
|
33
35
|
* `process.env.UNI_SUB_PLATFORM`
|
|
34
36
|
*
|
|
35
37
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L11}
|
|
38
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L25-L27}
|
|
36
39
|
*/
|
|
37
40
|
type SubPlatform = 'quickapp-webview-huawei' | 'quickapp-webview-union' | undefined;
|
|
38
41
|
/**
|
|
39
42
|
* `process.env.UNI_SUB_PLATFORM`
|
|
40
43
|
*
|
|
41
44
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L11}
|
|
45
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L25-L27}
|
|
42
46
|
*/
|
|
43
47
|
declare const subPlatform: SubPlatform;
|
|
44
48
|
/**
|
|
@@ -151,12 +155,14 @@ declare const cliContext: OptionalString;
|
|
|
151
155
|
* `process.env.UNI_SUBPACKAGE`
|
|
152
156
|
*
|
|
153
157
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L22}
|
|
158
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L31C18-L33}
|
|
154
159
|
*/
|
|
155
160
|
declare const subpackage: OptionalString;
|
|
156
161
|
/**
|
|
157
162
|
* `process.env.UNI_MP_PLUGIN`
|
|
158
163
|
*
|
|
159
164
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L23}
|
|
165
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L28C18-L30}
|
|
160
166
|
*/
|
|
161
167
|
declare const mpPlugin: OptionalBooleanString;
|
|
162
168
|
/** Detect if `process.env.UNI_MP_PLUGIN` is set */
|
|
@@ -165,16 +171,17 @@ declare const isMpPlugin: boolean;
|
|
|
165
171
|
* `process.env.UNI_COMPILER_VERSION`
|
|
166
172
|
*
|
|
167
173
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L24}
|
|
174
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L34C18-L36}
|
|
168
175
|
*/
|
|
169
176
|
declare const compilerVersion: OptionalString;
|
|
170
177
|
/**
|
|
171
|
-
* `process.env.
|
|
178
|
+
* `process.env.UNI_COMPILER_VERSION_TYPE`
|
|
172
179
|
*
|
|
173
180
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L25}
|
|
174
181
|
*/
|
|
175
182
|
type CompilerVersionType = 'a' | 'r' | undefined;
|
|
176
183
|
/**
|
|
177
|
-
* `process.env.
|
|
184
|
+
* `process.env.UNI_COMPILER_VERSION_TYPE`
|
|
178
185
|
*
|
|
179
186
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L25}
|
|
180
187
|
*/
|
|
@@ -231,18 +238,21 @@ declare const appCodeSpliting: OptionalBooleanString;
|
|
|
231
238
|
* `process.env.UNI_AUTOMATOR_WS_ENDPOINT`
|
|
232
239
|
*
|
|
233
240
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L31}
|
|
241
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L40C18-L42}
|
|
234
242
|
*/
|
|
235
243
|
declare const automatorWsEndpoint: OptionalString;
|
|
236
244
|
/**
|
|
237
245
|
* `process.env.UNI_AUTOMATOR_APP_WEBVIEW`
|
|
238
246
|
*
|
|
239
247
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L32}
|
|
248
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L40C18-L42}
|
|
240
249
|
*/
|
|
241
250
|
declare const automatorAppWebview: OptionalString;
|
|
242
251
|
/**
|
|
243
252
|
* `process.env.UNI_AUTOMATOR_APP_WEBVIEW_SRC`
|
|
244
253
|
*
|
|
245
254
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L33}
|
|
255
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L43C18-L45}
|
|
246
256
|
*/
|
|
247
257
|
declare const automatorAppWebviewSrc: OptionalString;
|
|
248
258
|
/**
|
|
@@ -355,6 +365,7 @@ declare const appChangedPages: OptionalString;
|
|
|
355
365
|
* `process.env.VUE_APP_DARK_MODE`
|
|
356
366
|
*
|
|
357
367
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L47}
|
|
368
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L56C18-L58}
|
|
358
369
|
*/
|
|
359
370
|
declare const darkMode: OptionalBooleanString;
|
|
360
371
|
/** Detect if `process.env.VUE_APP_DARK_MODE` is set */
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,8 @@ type OptionalString = string | undefined;
|
|
|
5
5
|
*
|
|
6
6
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L9}
|
|
7
7
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-uni-app.d.ts#L24}
|
|
8
|
-
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-uni-app.d.ts#
|
|
8
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-uni-app.d.ts#L193-L211}
|
|
9
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L24}
|
|
9
10
|
*/
|
|
10
11
|
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
12
|
declare const builtInPlatforms: BuiltInPlatform[];
|
|
@@ -14,7 +15,8 @@ declare const builtInPlatforms: BuiltInPlatform[];
|
|
|
14
15
|
*
|
|
15
16
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L9}
|
|
16
17
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-uni-app.d.ts#L24}
|
|
17
|
-
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-uni-app.d.ts#
|
|
18
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-uni-app.d.ts#L193-L211}
|
|
19
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L24}
|
|
18
20
|
*/
|
|
19
21
|
declare const platform: BuiltInPlatform;
|
|
20
22
|
/**
|
|
@@ -33,12 +35,14 @@ declare const appPlatform: AppPlatform;
|
|
|
33
35
|
* `process.env.UNI_SUB_PLATFORM`
|
|
34
36
|
*
|
|
35
37
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L11}
|
|
38
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L25-L27}
|
|
36
39
|
*/
|
|
37
40
|
type SubPlatform = 'quickapp-webview-huawei' | 'quickapp-webview-union' | undefined;
|
|
38
41
|
/**
|
|
39
42
|
* `process.env.UNI_SUB_PLATFORM`
|
|
40
43
|
*
|
|
41
44
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L11}
|
|
45
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L25-L27}
|
|
42
46
|
*/
|
|
43
47
|
declare const subPlatform: SubPlatform;
|
|
44
48
|
/**
|
|
@@ -151,12 +155,14 @@ declare const cliContext: OptionalString;
|
|
|
151
155
|
* `process.env.UNI_SUBPACKAGE`
|
|
152
156
|
*
|
|
153
157
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L22}
|
|
158
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L31C18-L33}
|
|
154
159
|
*/
|
|
155
160
|
declare const subpackage: OptionalString;
|
|
156
161
|
/**
|
|
157
162
|
* `process.env.UNI_MP_PLUGIN`
|
|
158
163
|
*
|
|
159
164
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L23}
|
|
165
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L28C18-L30}
|
|
160
166
|
*/
|
|
161
167
|
declare const mpPlugin: OptionalBooleanString;
|
|
162
168
|
/** Detect if `process.env.UNI_MP_PLUGIN` is set */
|
|
@@ -165,16 +171,17 @@ declare const isMpPlugin: boolean;
|
|
|
165
171
|
* `process.env.UNI_COMPILER_VERSION`
|
|
166
172
|
*
|
|
167
173
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L24}
|
|
174
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L34C18-L36}
|
|
168
175
|
*/
|
|
169
176
|
declare const compilerVersion: OptionalString;
|
|
170
177
|
/**
|
|
171
|
-
* `process.env.
|
|
178
|
+
* `process.env.UNI_COMPILER_VERSION_TYPE`
|
|
172
179
|
*
|
|
173
180
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L25}
|
|
174
181
|
*/
|
|
175
182
|
type CompilerVersionType = 'a' | 'r' | undefined;
|
|
176
183
|
/**
|
|
177
|
-
* `process.env.
|
|
184
|
+
* `process.env.UNI_COMPILER_VERSION_TYPE`
|
|
178
185
|
*
|
|
179
186
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L25}
|
|
180
187
|
*/
|
|
@@ -231,18 +238,21 @@ declare const appCodeSpliting: OptionalBooleanString;
|
|
|
231
238
|
* `process.env.UNI_AUTOMATOR_WS_ENDPOINT`
|
|
232
239
|
*
|
|
233
240
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L31}
|
|
241
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L40C18-L42}
|
|
234
242
|
*/
|
|
235
243
|
declare const automatorWsEndpoint: OptionalString;
|
|
236
244
|
/**
|
|
237
245
|
* `process.env.UNI_AUTOMATOR_APP_WEBVIEW`
|
|
238
246
|
*
|
|
239
247
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L32}
|
|
248
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L40C18-L42}
|
|
240
249
|
*/
|
|
241
250
|
declare const automatorAppWebview: OptionalString;
|
|
242
251
|
/**
|
|
243
252
|
* `process.env.UNI_AUTOMATOR_APP_WEBVIEW_SRC`
|
|
244
253
|
*
|
|
245
254
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L33}
|
|
255
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L43C18-L45}
|
|
246
256
|
*/
|
|
247
257
|
declare const automatorAppWebviewSrc: OptionalString;
|
|
248
258
|
/**
|
|
@@ -355,6 +365,7 @@ declare const appChangedPages: OptionalString;
|
|
|
355
365
|
* `process.env.VUE_APP_DARK_MODE`
|
|
356
366
|
*
|
|
357
367
|
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/shims-node.d.ts#L47}
|
|
368
|
+
* @link {https://github.com/dcloudio/uni-app/blob/v3.0.0-4020920240930001/packages/uni-cli-shared/src/env/define.ts#L56C18-L58}
|
|
358
369
|
*/
|
|
359
370
|
declare const darkMode: OptionalBooleanString;
|
|
360
371
|
/** Detect if `process.env.VUE_APP_DARK_MODE` is set */
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { env } from 'std-env';
|
|
2
|
+
|
|
1
3
|
function toBoolean(val) {
|
|
2
4
|
return val ? val !== "false" : false;
|
|
3
5
|
}
|
|
@@ -13,9 +15,9 @@ function parseJSON(val) {
|
|
|
13
15
|
|
|
14
16
|
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"];
|
|
15
17
|
const platform = process.env.UNI_PLATFORM;
|
|
16
|
-
const appPlatform =
|
|
18
|
+
const appPlatform = env.UNI_APP_PLATFORM;
|
|
17
19
|
const subPlatform = process.env.UNI_SUB_PLATFORM;
|
|
18
|
-
const utsPlatform =
|
|
20
|
+
const utsPlatform = env.UNI_UTS_PLATFORM;
|
|
19
21
|
const isH5 = platform === "h5";
|
|
20
22
|
const isWeb = platform === "web";
|
|
21
23
|
const isApp = platform === "app";
|
|
@@ -33,65 +35,65 @@ const isMpToutiao = platform === "mp-toutiao";
|
|
|
33
35
|
const isQuickapp = /^quickapp-webview/i.test(platform);
|
|
34
36
|
const isQuickappUnion = platform === "quickapp-webview-union";
|
|
35
37
|
const isQuickappHuawei = platform === "quickapp-webview-huawei";
|
|
36
|
-
const utsJsCodeFormat =
|
|
37
|
-
const utsModuleType =
|
|
38
|
-
const utsModulePrefix =
|
|
39
|
-
const utsTargetLanguage =
|
|
40
|
-
const inputDir =
|
|
41
|
-
const outputDir =
|
|
42
|
-
const cliContext =
|
|
38
|
+
const utsJsCodeFormat = env.UNI_UTS_JS_CODE_FORMAT;
|
|
39
|
+
const utsModuleType = env.UNI_UTS_MODULE_TYPE;
|
|
40
|
+
const utsModulePrefix = env.UNI_UTS_MODULE_PREFIX;
|
|
41
|
+
const utsTargetLanguage = env.UNI_UTS_TARGET_LANGUAGE;
|
|
42
|
+
const inputDir = env.UNI_INPUT_DIR;
|
|
43
|
+
const outputDir = env.UNI_OUTPUT_DIR;
|
|
44
|
+
const cliContext = env.UNI_CLI_CONTEXT;
|
|
43
45
|
const subpackage = process.env.UNI_SUBPACKAGE;
|
|
44
46
|
const mpPlugin = process.env.UNI_MP_PLUGIN;
|
|
45
47
|
const isMpPlugin = toBoolean(process.env.UNI_MP_PLUGIN);
|
|
46
48
|
const compilerVersion = process.env.UNI_COMPILER_VERSION;
|
|
47
|
-
const compilerVersionType =
|
|
48
|
-
const hbuilderxPlugins =
|
|
49
|
-
const renderer =
|
|
50
|
-
const nvueCompiler =
|
|
51
|
-
const nvueStyleCompiler =
|
|
52
|
-
const appCodeSpliting =
|
|
49
|
+
const compilerVersionType = env.UNI_COMPILER_VERSION_TYPE;
|
|
50
|
+
const hbuilderxPlugins = env.UNI_HBUILDERX_PLUGINS;
|
|
51
|
+
const renderer = env.UNI_RENDERER;
|
|
52
|
+
const nvueCompiler = env.UNI_NVUE_COMPILER;
|
|
53
|
+
const nvueStyleCompiler = env.UNI_NVUE_STYLE_COMPILER;
|
|
54
|
+
const appCodeSpliting = env.UNI_APP_CODE_SPLITING;
|
|
53
55
|
const automatorWsEndpoint = process.env.UNI_AUTOMATOR_WS_ENDPOINT;
|
|
54
56
|
const automatorAppWebview = process.env.UNI_AUTOMATOR_APP_WEBVIEW;
|
|
55
57
|
const automatorAppWebviewSrc = process.env.UNI_AUTOMATOR_APP_WEBVIEW_SRC;
|
|
56
|
-
const h5Base =
|
|
57
|
-
const h5Browser =
|
|
58
|
-
const customScript =
|
|
59
|
-
const customDefine =
|
|
60
|
-
const customContext =
|
|
61
|
-
const minimize =
|
|
62
|
-
const isMinimize = toBoolean(
|
|
63
|
-
const uvue =
|
|
64
|
-
const isUVue = toBoolean(
|
|
65
|
-
const uvueTargetLanguage =
|
|
66
|
-
const compiler =
|
|
67
|
-
const rendererNative =
|
|
68
|
-
const nvueAppStyles =
|
|
69
|
-
const appChangedFiles =
|
|
70
|
-
const appChangedPages =
|
|
58
|
+
const h5Base = env.UNI_H5_BASE;
|
|
59
|
+
const h5Browser = env.UNI_H5_BROWSER;
|
|
60
|
+
const customScript = env.UNI_CUSTOM_SCRIPT;
|
|
61
|
+
const customDefine = env.UNI_CUSTOM_DEFINE;
|
|
62
|
+
const customContext = env.UNI_CUSTOM_CONTEXT;
|
|
63
|
+
const minimize = env.UNI_MINIMIZE;
|
|
64
|
+
const isMinimize = toBoolean(env.UNI_MINIMIZE);
|
|
65
|
+
const uvue = env.UNI_UVUE;
|
|
66
|
+
const isUVue = toBoolean(env.UNI_UVUE);
|
|
67
|
+
const uvueTargetLanguage = env.UNI_UVUE_TARGET_LANGUAGE;
|
|
68
|
+
const compiler = env.UNI_COMPILER;
|
|
69
|
+
const rendererNative = env.UNI_RENDERER_NATIVE;
|
|
70
|
+
const nvueAppStyles = env.UNI_NVUE_APP_STYLES;
|
|
71
|
+
const appChangedFiles = env.UNI_APP_CHANGED_FILES;
|
|
72
|
+
const appChangedPages = env.UNI_APP_CHANGED_PAGES;
|
|
71
73
|
const darkMode = process.env.VUE_APP_DARK_MODE;
|
|
72
74
|
const hasDarkMode = toBoolean(process.env.VUE_APP_DARK_MODE);
|
|
73
|
-
const hxUseBaseType =
|
|
74
|
-
const hxDependenciesDir =
|
|
75
|
-
const appX =
|
|
76
|
-
const isAppX = toBoolean(
|
|
77
|
-
const appXCacheDir =
|
|
78
|
-
const hxVersion =
|
|
79
|
-
const appXPageCount =
|
|
80
|
-
const appXTsc =
|
|
81
|
-
const appXSingleThread =
|
|
82
|
-
const appXSetup =
|
|
83
|
-
const appXUVueScriptEngine =
|
|
84
|
-
const compileTarget =
|
|
85
|
-
const compileCloudDir =
|
|
86
|
-
const modulesEncryptCacheDir =
|
|
87
|
-
const appPackType =
|
|
88
|
-
const appHarmonyProjectPath =
|
|
89
|
-
const statTitleJson = parseJSON(
|
|
90
|
-
const sourcemap =
|
|
91
|
-
const hasSourcemap = toBoolean(
|
|
92
|
-
const ssrClient =
|
|
93
|
-
const isSSRClient = toBoolean(
|
|
94
|
-
const ssrServer =
|
|
95
|
-
const isSSRServer = toBoolean(
|
|
75
|
+
const hxUseBaseType = env.HX_USE_BASE_TYPE;
|
|
76
|
+
const hxDependenciesDir = env.HX_DEPENDENCIES_DIR;
|
|
77
|
+
const appX = env.UNI_APP_X;
|
|
78
|
+
const isAppX = toBoolean(env.UNI_APP_X);
|
|
79
|
+
const appXCacheDir = env.UNI_APP_X_CACHE_DIR;
|
|
80
|
+
const hxVersion = env.HX_VERSION;
|
|
81
|
+
const appXPageCount = env.UNI_APP_X_PAGE_COUNT;
|
|
82
|
+
const appXTsc = env.UNI_APP_X_TSC;
|
|
83
|
+
const appXSingleThread = env.UNI_APP_X_SINGLE_THREAD;
|
|
84
|
+
const appXSetup = env.UNI_APP_X_SETUP;
|
|
85
|
+
const appXUVueScriptEngine = env.UNI_APP_X_UVUE_SCRIPT_ENGINE;
|
|
86
|
+
const compileTarget = env.UNI_COMPILE_TARGET;
|
|
87
|
+
const compileCloudDir = env.UNI_COMPILE_CLOUD_DIR;
|
|
88
|
+
const modulesEncryptCacheDir = env.UNI_MODULES_ENCRYPT_CACHE_DIR;
|
|
89
|
+
const appPackType = env.UNI_APP_PACK_TYPE;
|
|
90
|
+
const appHarmonyProjectPath = env.UNI_APP_HARMONY_PROJECT_PATH;
|
|
91
|
+
const statTitleJson = parseJSON(env.STAT_TITLE_JSON);
|
|
92
|
+
const sourcemap = env.SOURCEMAP;
|
|
93
|
+
const hasSourcemap = toBoolean(env.SOURCEMAP);
|
|
94
|
+
const ssrClient = env.UNI_SSR_CLIENT;
|
|
95
|
+
const isSSRClient = toBoolean(env.UNI_SSR_CLIENT);
|
|
96
|
+
const ssrServer = env.UNI_SSR_SERVER;
|
|
97
|
+
const isSSRServer = toBoolean(env.UNI_SSR_SERVER);
|
|
96
98
|
|
|
97
99
|
export { 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 };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uni-helper/uni-env",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.6",
|
|
5
5
|
"description": "在 uni-app 中优雅地判断当前环境。",
|
|
6
6
|
"author": "KeJun",
|
|
7
7
|
"maintainers": [
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@antfu/eslint-config": "^3.8.0",
|
|
49
|
-
"@types/node": "^
|
|
50
|
-
"bumpp": "^9.
|
|
51
|
-
"eslint": "^9.
|
|
49
|
+
"@types/node": "^22.9.0",
|
|
50
|
+
"bumpp": "^9.8.1",
|
|
51
|
+
"eslint": "^9.14.0",
|
|
52
52
|
"esno": "^4.8.0",
|
|
53
53
|
"typescript": "^5.6.3",
|
|
54
54
|
"unbuild": "^2.0.0",
|
|
55
|
-
"vitest": "^2.1.
|
|
55
|
+
"vitest": "^2.1.4"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "unbuild",
|