@dcloudio/uni-cli-shared 3.0.0-5020320260806002 → 3.0.0-5020420260811002
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/resolve.d.ts +8 -0
- package/dist/resolve.js +78 -2
- package/lib/dom2/@intlify/core-base/LICENSE +20 -0
- package/lib/dom2/@intlify/core-base/dist/core-base.mjs +1903 -0
- package/lib/dom2/@intlify/core-base/package.json +11 -0
- package/lib/dom2/@intlify/message-compiler/LICENSE +20 -0
- package/lib/dom2/@intlify/message-compiler/dist/message-compiler.mjs +1550 -0
- package/lib/dom2/@intlify/message-compiler/package.json +11 -0
- package/lib/dom2/@intlify/shared/LICENSE +20 -0
- package/lib/dom2/@intlify/shared/dist/shared.mjs +333 -0
- package/lib/dom2/@intlify/shared/package.json +11 -0
- package/lib/dom2/@vue/devtools-api/LICENSE +21 -0
- package/lib/dom2/@vue/devtools-api/dist/index.js +26 -0
- package/lib/dom2/@vue/devtools-api/package.json +12 -0
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.js +71 -68
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.prod.js +71 -68
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.d.ts +2 -20
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.esm-bundler.js +53 -29
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.js +23 -12
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +22 -12
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-browser.js +80 -30
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-browser.prod.js +5 -5
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js +20 -3
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.global.js +369 -317
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.global.prod.js +5 -5
- package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +2032 -5522
- package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.d.ts +11114 -33
- package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +2825 -4668
- package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.cjs.js +905 -2413
- package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.d.ts +378 -544
- package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.esm-browser.js +998 -2549
- package/lib/dom2/app/@vue/compiler-vapor-dom2/dist/compiler-vapor-dom2.cjs.js +1 -1
- package/lib/dom2/app/@vue/shared/dist/shared.cjs.js +26 -92
- package/lib/dom2/app/@vue/shared/dist/shared.cjs.prod.js +26 -92
- package/lib/dom2/app/@vue/shared/dist/shared.d.ts +2 -94
- package/lib/dom2/app/@vue/shared/dist/shared.esm-bundler.js +24 -83
- package/lib/dom2/pinia/LICENSE +21 -0
- package/lib/dom2/pinia/dist/pinia.mjs +1941 -0
- package/lib/dom2/pinia/package.json +11 -0
- package/lib/dom2/vue-i18n/LICENSE +20 -0
- package/lib/dom2/vue-i18n/dist/vue-i18n.esm-bundler.js +1 -0
- package/lib/dom2/vue-i18n/dist/vue-i18n.mjs +2501 -0
- package/lib/dom2/vue-i18n/dist/vue-i18n.runtime.esm-bundler.js +1 -0
- package/lib/dom2/vue-i18n/dist/vue-i18n.runtime.mjs +2501 -0
- package/lib/dom2/vue-i18n/package.json +12 -0
- package/package.json +5 -5
package/dist/resolve.d.ts
CHANGED
|
@@ -5,5 +5,13 @@ export declare const resolveMainPathOnce: (inputDir: string) => string;
|
|
|
5
5
|
export declare function getBuiltInPaths(): string[];
|
|
6
6
|
export declare function resolveBuiltIn(module: string): string;
|
|
7
7
|
export declare function resolveVueI18nRuntime(): string;
|
|
8
|
+
export declare function resolveVueI18n(): string;
|
|
9
|
+
export declare function resolveProjectVueI18n(): string | undefined;
|
|
10
|
+
export declare function resolveVueI18nDependencies(): Record<string, string>;
|
|
11
|
+
export declare function resolvePinia(): string;
|
|
12
|
+
export declare function resolveProjectPinia(): string | undefined;
|
|
13
|
+
export declare function resolvePiniaDependencies(): Record<string, string>;
|
|
14
|
+
export declare function resolvePiniaAlias(): Record<string, string>;
|
|
15
|
+
export declare function resolveVueI18nRuntimeAlias(): Record<string, string>;
|
|
8
16
|
export declare function resolveComponentsLibPath(): string;
|
|
9
17
|
export declare function resolveComponentsLibDirs(): string[];
|
package/dist/resolve.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.resolveComponentsLibDirs = exports.resolveComponentsLibPath = exports.resolveVueI18nRuntime = exports.resolveBuiltIn = exports.getBuiltInPaths = exports.resolveMainPathOnce = exports.relativeFile = exports.resolveMainUtsName = exports.requireResolve = void 0;
|
|
6
|
+
exports.resolveComponentsLibDirs = exports.resolveComponentsLibPath = exports.resolveVueI18nRuntimeAlias = exports.resolvePiniaAlias = exports.resolvePiniaDependencies = exports.resolveProjectPinia = exports.resolvePinia = exports.resolveVueI18nDependencies = exports.resolveProjectVueI18n = exports.resolveVueI18n = exports.resolveVueI18nRuntime = exports.resolveBuiltIn = exports.getBuiltInPaths = exports.resolveMainPathOnce = exports.relativeFile = exports.resolveMainUtsName = exports.requireResolve = void 0;
|
|
7
7
|
const fs_1 = __importDefault(require("fs"));
|
|
8
8
|
const path_1 = __importDefault(require("path"));
|
|
9
9
|
const debug_1 = __importDefault(require("debug"));
|
|
@@ -110,9 +110,85 @@ function resolveBuiltIn(module) {
|
|
|
110
110
|
}
|
|
111
111
|
exports.resolveBuiltIn = resolveBuiltIn;
|
|
112
112
|
function resolveVueI18nRuntime() {
|
|
113
|
-
return path_1.default.resolve(__dirname,
|
|
113
|
+
return path_1.default.resolve(__dirname, process.env.UNI_APP_X === 'true'
|
|
114
|
+
? '../lib/dom2/vue-i18n/dist/vue-i18n.runtime.esm-bundler.js'
|
|
115
|
+
: '../lib/vue-i18n/dist/vue-i18n.runtime.esm-bundler.js');
|
|
114
116
|
}
|
|
115
117
|
exports.resolveVueI18nRuntime = resolveVueI18nRuntime;
|
|
118
|
+
function resolveVueI18n() {
|
|
119
|
+
return path_1.default.resolve(__dirname, '../lib/dom2/vue-i18n/dist/vue-i18n.esm-bundler.js');
|
|
120
|
+
}
|
|
121
|
+
exports.resolveVueI18n = resolveVueI18n;
|
|
122
|
+
function resolveProjectModule(module) {
|
|
123
|
+
const inputDir = process.env.UNI_INPUT_DIR;
|
|
124
|
+
if (!inputDir) {
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
try {
|
|
128
|
+
return resolveWithSymlinks(`${module}/package.json`, inputDir);
|
|
129
|
+
}
|
|
130
|
+
catch (e) { }
|
|
131
|
+
}
|
|
132
|
+
function resolveProjectVueI18n() {
|
|
133
|
+
return resolveProjectModule('vue-i18n');
|
|
134
|
+
}
|
|
135
|
+
exports.resolveProjectVueI18n = resolveProjectVueI18n;
|
|
136
|
+
function resolveDevtoolsApi(libDir) {
|
|
137
|
+
// uni-app x 暂不支持 @vue/devtools-api,统一指向兼容性空实现
|
|
138
|
+
return path_1.default.resolve(libDir, '@vue/devtools-api/dist/index.js');
|
|
139
|
+
}
|
|
140
|
+
function resolveVueI18nDependencies() {
|
|
141
|
+
if (process.env.UNI_APP_X !== 'true' ||
|
|
142
|
+
resolveProjectVueI18n() !== undefined) {
|
|
143
|
+
return {};
|
|
144
|
+
}
|
|
145
|
+
const libDir = path_1.default.resolve(__dirname, '../lib/dom2');
|
|
146
|
+
return {
|
|
147
|
+
'@intlify/core-base': path_1.default.resolve(libDir, '@intlify/core-base/dist/core-base.mjs'),
|
|
148
|
+
'@intlify/message-compiler': path_1.default.resolve(libDir, '@intlify/message-compiler/dist/message-compiler.mjs'),
|
|
149
|
+
'@intlify/shared': path_1.default.resolve(libDir, '@intlify/shared/dist/shared.mjs'),
|
|
150
|
+
'@vue/devtools-api': resolveDevtoolsApi(libDir),
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
exports.resolveVueI18nDependencies = resolveVueI18nDependencies;
|
|
154
|
+
function resolvePinia() {
|
|
155
|
+
return path_1.default.resolve(__dirname, '../lib/dom2/pinia/dist/pinia.mjs');
|
|
156
|
+
}
|
|
157
|
+
exports.resolvePinia = resolvePinia;
|
|
158
|
+
function resolveProjectPinia() {
|
|
159
|
+
return resolveProjectModule('pinia');
|
|
160
|
+
}
|
|
161
|
+
exports.resolveProjectPinia = resolveProjectPinia;
|
|
162
|
+
function resolvePiniaDependencies() {
|
|
163
|
+
if (process.env.UNI_APP_X !== 'true' || resolveProjectPinia() !== undefined) {
|
|
164
|
+
return {};
|
|
165
|
+
}
|
|
166
|
+
return {
|
|
167
|
+
'@vue/devtools-api': resolveDevtoolsApi(path_1.default.resolve(__dirname, '../lib/dom2')),
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
exports.resolvePiniaDependencies = resolvePiniaDependencies;
|
|
171
|
+
function resolvePiniaAlias() {
|
|
172
|
+
if (process.env.UNI_APP_X !== 'true' || resolveProjectPinia() !== undefined) {
|
|
173
|
+
return {};
|
|
174
|
+
}
|
|
175
|
+
return {
|
|
176
|
+
...resolvePiniaDependencies(),
|
|
177
|
+
pinia: resolvePinia(),
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
exports.resolvePiniaAlias = resolvePiniaAlias;
|
|
181
|
+
function resolveVueI18nRuntimeAlias() {
|
|
182
|
+
if (process.env.UNI_APP_X === 'true' &&
|
|
183
|
+
resolveProjectVueI18n() !== undefined) {
|
|
184
|
+
return {};
|
|
185
|
+
}
|
|
186
|
+
return {
|
|
187
|
+
...resolveVueI18nDependencies(),
|
|
188
|
+
'vue-i18n': resolveVueI18nRuntime(),
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
exports.resolveVueI18nRuntimeAlias = resolveVueI18nRuntimeAlias;
|
|
116
192
|
let componentsLibPath = '';
|
|
117
193
|
function resolveComponentsLibPath() {
|
|
118
194
|
if (!componentsLibPath) {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 kazuya kawaguchi
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
+
subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|