Skip to content
Permalink
Browse files

fix(packager): correct main file reference in thrown error from packa…

…geJson.name to .main
  • Loading branch information
anulman authored and MarshallOfSound committed Feb 7, 2017
1 parent d69e762 commit a68284b1436fba4e7d797d7ad88fe6dcda441a7e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/api/package.js
@@ -54,7 +54,7 @@ export default async (providedOptions = {}) => {

if (path.dirname(require.resolve(path.resolve(dir, packageJSON.main))) === dir) {
console.error(`Entry point: ${packageJSON.main}`.red);
throw 'The entry point to your application ("packageJSON.name") must be in a subfolder not in the top level directory';
throw 'The entry point to your application ("packageJSON.main") must be in a subfolder not in the top level directory';
}

const forgeConfig = await getForgeConfig(dir);

0 comments on commit a68284b

Please sign in to comment.
You can’t perform that action at this time.