We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c60b1e commit 842a191Copy full SHA for 842a191
packages/cli/generators/project/templates/.gitignore renamed to packages/cli/generators/project/templates/_.gitignore
packages/cli/lib/project-generator.js
@@ -168,6 +168,14 @@ module.exports = class extends Generator {
168
{globOptions: {dot: true}}
169
);
170
171
+ // Rename `_.gitignore` back to `.gitignore`.
172
+ // Please note `.gitignore` will be renamed to `.npmignore` during publish
173
+ // if it's there in the templates.
174
+ this.fs.move(
175
+ this.destinationPath('_.gitignore'),
176
+ this.destinationPath('.gitignore')
177
+ );
178
+
179
// Copy project type specific files from ./templates
180
this.fs.copyTpl(
181
this.templatePath('**/*'),
0 commit comments