Skip to content
This repository has been archived by the owner on Feb 20, 2019. It is now read-only.

Add subdir check #1

Open
MarshallOfSound opened this issue Apr 30, 2018 · 0 comments
Open

Add subdir check #1

MarshallOfSound opened this issue Apr 30, 2018 · 0 comments

Comments

@MarshallOfSound
Copy link
Member

from forge

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.main") must be in a subfolder not in the top level directory';
  }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant