Skip to content

Commit 5219585

Browse files
TomAttertonfacebook-github-bot
authored andcommitted
Ignore DevDependencies when generating template. (facebook#20542)
Summary: Regarding [Add devDependenices support for templates](facebook@c4ab03a). Once a project is created using the custom template command with devDependencies inside, the devDependenices.json file is also copied to the new projects directory. By adding this to the ignore paths we stop the devDependenices being copied into the new projects directory. Pull Request resolved: facebook#20542 Differential Revision: D9182795 Pulled By: hramos fbshipit-source-id: 543c8ca67612a981c22fc83c8d54a25ddc0ca5fc
1 parent 151ec41 commit 5219585

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

local-cli/generator/templates.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ function createFromRemoteTemplate(
171171
// only for publishing the template to npm.
172172
// We want to ignore this dummy file, otherwise it would overwrite
173173
// our project's package.json file.
174-
ignorePaths: ['package.json', 'dependencies.json'],
174+
ignorePaths: ['package.json', 'dependencies.json','devDependencies.json'],
175175
});
176176
installTemplateDependencies(templatePath, yarnVersion);
177177
installTemplateDevDependencies(templatePath, yarnVersion);

0 commit comments

Comments
 (0)