Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
d('installing devDependencies');
await installDepList(dir, importDevDeps, DepType.DEV);
d('installing exactDevDependencies');
await installDepList(dir, importExactDevDeps, DepType.DEV, DepVersionRestriction.EXACT);
});
packageJSON = await readRawPackageJson(dir);
if (!packageJSON.version) {
warn(interactive, 'Please set the "version" in your application\'s package.json'.yellow);
}
packageJSON.config = packageJSON.config || {};
const templatePackageJSON = await readRawPackageJson(baseTemplate.templateDir);
if (packageJSON.config.forge) {
if (typeof packageJSON.config.forge !== 'string') {
packageJSON.config.forge = _merge(templatePackageJSON.config.forge, packageJSON.config.forge);
}
} else {
packageJSON.config.forge = templatePackageJSON.config.forge;
}
if (typeof packageJSON.config.forge !== 'string') {
setInitialForgeConfig(packageJSON);
}
await writeChanges();
await asyncOra('Fixing .gitignore', async () => {
if (await fs.pathExists(path.resolve(dir, '.gitignore'))) {