Skip to content

Commit 3cdb695

Browse files
committed
fix: fix published files be ignored
1 parent c961924 commit 3cdb695

File tree

4 files changed

+3
-1
lines changed

4 files changed

+3
-1
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

bin/init.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ function init() {
3232
.pipe(template(dest, cwd))
3333
.pipe(vfs.dest(dest))
3434
.on('end', function () {
35-
fs.renameSync(path.join(dest, 'gitignore'), path.join(dest, '.gitignore'));
35+
fs.renameSync(path.join(dest, '_gitignore'), path.join(dest, '.gitignore'));
36+
fs.renameSync(path.join(dest, '_package.json'), path.join(dest, 'package.json'));
3637
require('../lib/install');
3738
})
3839
.resume();
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)