Skip to content
Permalink
Browse files

fix(packager): clarify entry point error messages

  • Loading branch information
malept committed Jan 8, 2017
1 parent b7f7b81 commit 969ab1ea26034b1510a7c942a97009bc4ee854ad
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/api/package.js
@@ -51,9 +51,9 @@ export default async (providedOptions = {}) => {
const packageJSON = await readPackageJSON(dir);

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

const forgeConfig = await getForgeConfig(dir);

0 comments on commit 969ab1e

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