mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Ignore DevDependencies when generating template. (#20542)
Summary: Regarding [Add devDependenices support for templates](https://github.com/facebook/react-native/commit/c4ab03a18e75e6ed55444b5d86f3ceee435b9a78). 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: https://github.com/facebook/react-native/pull/20542 Differential Revision: D9182795 Pulled By: hramos fbshipit-source-id: 543c8ca67612a981c22fc83c8d54a25ddc0ca5fc
This commit is contained in:
committed by
Lorenzo Sciandra
parent
be136a000f
commit
e5ec57d807
@@ -171,7 +171,7 @@ function createFromRemoteTemplate(
|
||||
// only for publishing the template to npm.
|
||||
// We want to ignore this dummy file, otherwise it would overwrite
|
||||
// our project's package.json file.
|
||||
ignorePaths: ['package.json', 'dependencies.json'],
|
||||
ignorePaths: ['package.json', 'dependencies.json','devDependencies.json'],
|
||||
});
|
||||
installTemplateDependencies(templatePath, yarnVersion);
|
||||
installTemplateDevDependencies(templatePath, yarnVersion);
|
||||
|
||||
Reference in New Issue
Block a user