Skip to content
Permalink
Browse files

fix(importer): warn if the package.json being imported does not have …

…a version
  • Loading branch information
malept committed Oct 22, 2017
1 parent 69b2995 commit e55ea98db6fddf66b945575dcc2bac885e3d222c
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/api/import.js
@@ -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;

0 comments on commit e55ea98

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