yeoman-environment 4.2.0 → 4.2.1

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.
@@ -17,7 +17,7 @@ export type EnvironmentLookupOptions = LookupOptions & {
17
17
  /** Add a scope to the namespace if there is no scope */
18
18
  registerToScope?: string;
19
19
  /** Customize the namespace to be registered */
20
- customizeNamespace?: (ns?: string) => string;
20
+ customizeNamespace?: (ns?: string) => string | undefined;
21
21
  };
22
22
  export type EnvironmentOptions = BaseEnvironmentOptions & Omit<TerminalAdapterOptions, 'promptModule'> & {
23
23
  adapter?: InputOutputAdapter;
@@ -434,6 +434,7 @@ export default class EnvironmentBase extends EventEmitter {
434
434
  if (!namespace) {
435
435
  namespace = customizeNamespace(asNamespace(resolved, { lookups }));
436
436
  }
437
+ namespace = namespace;
437
438
  if (registerToScope && !namespace.startsWith('@')) {
438
439
  namespace = `@${registerToScope}/${namespace}`;
439
440
  }
@@ -451,7 +452,7 @@ export default class EnvironmentBase extends EventEmitter {
451
452
  }
452
453
  generators.push({
453
454
  resolved: filePath,
454
- namespace,
455
+ namespace: namespace,
455
456
  packagePath,
456
457
  registered: false,
457
458
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yeoman-environment",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "Handles the lifecyle and bootstrapping of generators in a specific environment",
5
5
  "keywords": [
6
6
  "development",