Skip to content

Commit

Permalink
fix(importer): warn if the package.json being imported does not have …
Browse files Browse the repository at this point in the history
…a version
  • Loading branch information
malept committed Oct 23, 2017
1 parent 69b2995 commit e55ea98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ export default async (providedOptions = {}) => {

packageJSON = await readPackageJSON(dir);

if (!packageJSON.version) {
warn(interactive, "Please set the 'version' in your application's package.json".yellow);
}

packageJSON.config = packageJSON.config || {};
const templatePackageJSON = await readPackageJSON(path.resolve(__dirname, '../../tmpl'));
packageJSON.config.forge = templatePackageJSON.config.forge;
Expand Down

0 comments on commit e55ea98

Please sign in to comment.