@umijs/core 4.0.67 → 4.0.68

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.
@@ -119,6 +119,7 @@ export declare class Service {
119
119
  }): Promise<any>;
120
120
  isPluginEnable(hook: Hook | string): boolean;
121
121
  commandGuessHelper(commands: string[], currentCmd: string): void;
122
+ get frameworkName(): string;
122
123
  }
123
124
  export interface IServicePluginAPI {
124
125
  appData: typeof Service.prototype.appData;
@@ -221,7 +221,7 @@ var Service = class {
221
221
  }
222
222
  this.pkg = pkg;
223
223
  this.pkgPath = pkgPath || (0, import_path.join)(this.cwd, "package.json");
224
- const prefix = this.opts.frameworkName || import_constants.DEFAULT_FRAMEWORK_NAME;
224
+ const prefix = this.frameworkName;
225
225
  const specifiedEnv = process.env[`${prefix}_ENV`.toUpperCase()];
226
226
  const configManager = new import_config.Config({
227
227
  cwd: this.cwd,
@@ -333,7 +333,7 @@ var Service = class {
333
333
  const paths = (0, import_path2.getPaths)({
334
334
  cwd: this.cwd,
335
335
  env: this.env,
336
- prefix: this.opts.frameworkName || import_constants.DEFAULT_FRAMEWORK_NAME
336
+ prefix: this.frameworkName
337
337
  });
338
338
  return paths;
339
339
  }
@@ -537,6 +537,9 @@ var Service = class {
537
537
  console.log();
538
538
  }
539
539
  }
540
+ get frameworkName() {
541
+ return this.opts.frameworkName || import_constants.DEFAULT_FRAMEWORK_NAME;
542
+ }
540
543
  };
541
544
  // Annotate the CommonJS export names for ESM import in node:
542
545
  0 && (module.exports = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/core",
3
- "version": "4.0.67",
3
+ "version": "4.0.68",
4
4
  "homepage": "https://github.com/umijs/umi/tree/master/packages/core#readme",
5
5
  "bugs": "https://github.com/umijs/umi/issues",
6
6
  "repository": {
@@ -15,8 +15,8 @@
15
15
  "compiled"
16
16
  ],
17
17
  "dependencies": {
18
- "@umijs/bundler-utils": "4.0.67",
19
- "@umijs/utils": "4.0.67"
18
+ "@umijs/bundler-utils": "4.0.68",
19
+ "@umijs/utils": "4.0.68"
20
20
  },
21
21
  "devDependencies": {
22
22
  "dotenv": "16.0.0",