Skip to content

Commit

Permalink
adjust to types
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Jan 15, 2024
1 parent dbd6955 commit 146ac0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/environment-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,7 @@ export default class EnvironmentBase extends EventEmitter implements BaseEnviron
namespace = customizeNamespace(asNamespace(resolved, { lookups }));
}

namespace = namespace!;
if (registerToScope && !namespace.startsWith('@')) {
namespace = `@${registerToScope}/${namespace}`;
}
Expand All @@ -652,7 +653,7 @@ export default class EnvironmentBase extends EventEmitter implements BaseEnviron

generators.push({
resolved: filePath,
namespace,
namespace: namespace!,
packagePath,
registered: false,
});
Expand Down

0 comments on commit 146ac0e

Please sign in to comment.