Skip to content

Commit da5f739

Browse files
Merge pull request #172 from universal-ember/support-non-monorepos
Support non-monorepos by allowing '.' for an entry in the 'packages' list of the build plugin
2 parents 62ecea6 + cf5d33e commit da5f739

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/build/plugins/helpers.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,15 @@ export const INTERNAL_PREFIX = `\0`;
2727
* @param {string} packageName
2828
*/
2929
export async function packageTypes(packageName) {
30-
let entryPath = require.resolve(packageName, {
31-
paths: [process.cwd()],
32-
});
30+
let entryPath = '<not set>';
31+
32+
if (packageName === '.') {
33+
entryPath = '.';
34+
} else {
35+
entryPath = require.resolve(packageName, {
36+
paths: [process.cwd()],
37+
});
38+
}
3339

3440
let manifestPath = await packageUp({ cwd: entryPath });
3541

0 commit comments

Comments
 (0)