@dcloudio/uni-cli-shared 3.0.0-alpha-4000020231218001 → 3.0.0-alpha-4000020231227002

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/utils.d.ts CHANGED
@@ -12,7 +12,7 @@ export declare function normalizePagePath(pagePath: string, platform: UniApp.PLA
12
12
  export declare function removeExt(str: string): string;
13
13
  export declare function normalizeNodeModules(str: string): string;
14
14
  export declare function normalizeMiniProgramFilename(filename: string, inputDir?: string): string;
15
- export declare function normalizeParsePlugins(importer: string, babelParserPlugins?: ParserPlugin[]): (import("@babel/parser").ParserPluginWithOptions | ("asyncDoExpressions" | "asyncGenerators" | "bigInt" | "classPrivateMethods" | "classPrivateProperties" | "classProperties" | "classStaticBlock" | "decimal" | "decorators-legacy" | "deferredImportEvaluation" | "decoratorAutoAccessors" | "destructuringPrivate" | "doExpressions" | "dynamicImport" | "explicitResourceManagement" | "exportDefaultFrom" | "exportNamespaceFrom" | "flow" | "flowComments" | "functionBind" | "functionSent" | "importMeta" | "jsx" | "logicalAssignment" | "importAssertions" | "importAttributes" | "importReflection" | "moduleBlocks" | "moduleStringNames" | "nullishCoalescingOperator" | "numericSeparator" | "objectRestSpread" | "optionalCatchBinding" | "optionalChaining" | "partialApplication" | "placeholders" | "privateIn" | "regexpUnicodeSets" | "sourcePhaseImports" | "throwExpressions" | "topLevelAwait" | "v8intrinsic" | "decorators" | "estree" | "moduleAttributes" | "optionalChainingAssign" | "pipelineOperator" | "recordAndTuple" | "typescript"))[];
15
+ export declare function normalizeParsePlugins(importer: string, babelParserPlugins?: ParserPlugin[]): (import("@babel/parser").ParserPluginWithOptions | ("jsx" | "asyncDoExpressions" | "asyncGenerators" | "bigInt" | "classPrivateMethods" | "classPrivateProperties" | "classProperties" | "classStaticBlock" | "decimal" | "decorators-legacy" | "deferredImportEvaluation" | "decoratorAutoAccessors" | "destructuringPrivate" | "doExpressions" | "dynamicImport" | "explicitResourceManagement" | "exportDefaultFrom" | "exportNamespaceFrom" | "flow" | "flowComments" | "functionBind" | "functionSent" | "importMeta" | "logicalAssignment" | "importAssertions" | "importAttributes" | "importReflection" | "moduleBlocks" | "moduleStringNames" | "nullishCoalescingOperator" | "numericSeparator" | "objectRestSpread" | "optionalCatchBinding" | "optionalChaining" | "partialApplication" | "placeholders" | "privateIn" | "regexpUnicodeSets" | "sourcePhaseImports" | "throwExpressions" | "topLevelAwait" | "v8intrinsic" | "decorators" | "estree" | "moduleAttributes" | "optionalChainingAssign" | "pipelineOperator" | "recordAndTuple" | "typescript"))[];
16
16
  export declare function pathToGlob(pathString: string, glob: string, options?: {
17
17
  windows?: boolean;
18
18
  escape?: boolean;
package/dist/utils.js CHANGED
@@ -13,6 +13,7 @@ var hash_sum_1 = require("hash-sum");
13
13
  Object.defineProperty(exports, "hash", { enumerable: true, get: function () { return __importDefault(hash_sum_1).default; } });
14
14
  const constants_1 = require("./constants");
15
15
  const platform_1 = require("./platform");
16
+ const hbx_1 = require("./hbx");
16
17
  exports.version = require('../package.json').version;
17
18
  // 专为 uts.ts 服务
18
19
  var shared_2 = require("@vue/shared");
@@ -61,6 +62,12 @@ function normalizeNodeModules(str) {
61
62
  str = normalizePath(str).replace(NODE_MODULES_REGEX, 'node-modules');
62
63
  // HBuilderX 内置模块路径转换
63
64
  str = str.replace(/.*\/plugins\/uniapp-cli-vite\/node[-_]modules/, 'node-modules');
65
+ if (!(0, hbx_1.isInHBuilderX)()) {
66
+ // 内部测试
67
+ if (str.includes('uni-app-next/packages/')) {
68
+ str = str.replace(/.*\/uni-app-next\/packages\//, 'node-modules/@dcloudio/');
69
+ }
70
+ }
64
71
  if (process.env.UNI_PLATFORM === 'mp-alipay') {
65
72
  str = str.replace('node-modules/@', 'node-modules/npm-scope-');
66
73
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-cli-shared",
3
- "version": "3.0.0-alpha-4000020231218001",
3
+ "version": "3.0.0-alpha-4000020231227002",
4
4
  "description": "@dcloudio/uni-cli-shared",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -26,8 +26,8 @@
26
26
  "@babel/core": "^7.21.3",
27
27
  "@babel/parser": "^7.23.5",
28
28
  "@babel/types": "^7.20.7",
29
- "@dcloudio/uni-i18n": "3.0.0-alpha-4000020231218001",
30
- "@dcloudio/uni-shared": "3.0.0-alpha-4000020231218001",
29
+ "@dcloudio/uni-i18n": "3.0.0-alpha-4000020231227002",
30
+ "@dcloudio/uni-shared": "3.0.0-alpha-4000020231227002",
31
31
  "@intlify/core-base": "9.1.9",
32
32
  "@intlify/shared": "9.1.9",
33
33
  "@intlify/vue-devtools": "9.1.9",
@@ -66,7 +66,7 @@
66
66
  },
67
67
  "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
68
68
  "devDependencies": {
69
- "@dcloudio/uni-uts-v1": "3.0.0-alpha-4000020231218001",
69
+ "@dcloudio/uni-uts-v1": "3.0.0-alpha-4000020231227002",
70
70
  "@types/babel__code-frame": "^7.0.6",
71
71
  "@types/babel__core": "^7.1.19",
72
72
  "@types/debug": "^4.1.7",