Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
chore(npm): do not allow lockfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
mastilver authored and Thomas Sileghem committed Jun 23, 2017
1 parent b674ed6 commit 973587a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ module.exports = class extends Generator {
mv('gitattributes', '.gitattributes');
mv('gitignore', '.gitignore');
mv('travis.yml', '.travis.yml');
mv('npmrc', '.npmrc');
mv('_package.json', 'package.json');
});
}
Expand Down
1 change: 1 addition & 0 deletions app/templates/gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules<% if (nyc) { %>
.nyc_output
coverage<% } %>
yarn.lock
1 change: 1 addition & 0 deletions app/templates/npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
3 changes: 2 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ test.serial('generates expected files', async () => {
'license',
'package.json',
'readme.md',
'test.js'
'test.js',
'.npmrc'
]);

assert.noFile('cli.js');
Expand Down

0 comments on commit 973587a

Please sign in to comment.