Skip to content

Commit

Permalink
Fix sgrud runtimify module scoping
Browse files Browse the repository at this point in the history
  • Loading branch information
schlusslicht committed May 2, 2023
1 parent 85bcb69 commit f9d89e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bin/src/runtimify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export async function runtimify({
const { exports, main, module, type } = require(resolve('package.json'));
let name = id.split(/\W/).filter(Boolean).join('.');

if (!scope.startsWith('!')) {
if (scope && !scope.startsWith('!')) {
name += '.' + scope.split(/\W/).filter(Boolean).join('.');
}

Expand Down

0 comments on commit f9d89e2

Please sign in to comment.