Skip to content

Commit

Permalink
Damn npm skipping .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
jsumners committed Apr 25, 2017
1 parent 8131d93 commit 79d085b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ const fs = require('fs')
const path = require('path')
const pwd = process.env['PWD']
const files = [
path.join(__dirname, 'files', '.editorconfig'),
path.join(__dirname, 'files', '.gitignore')
path.join(__dirname, 'files', 'editorconfig'),
path.join(__dirname, 'files', 'gitignore')
]

files.forEach((f) => {
const fname = path.basename(f)
const outs = fs.createWriteStream(path.join(pwd, fname))
const outs = fs.createWriteStream(path.join(pwd, '.' + fname))
const ins = fs.createReadStream(f)
ins.pipe(outs)
})
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
},
"homepage": "https://github.com/jsumners/node-skel#readme",
"files": [
"files/.editorconfig",
"files/.gitignore"
"files/editorconfig",
"files/gitignore"
],
"devDependencies": {
"pre-commit": "^1.2.2",
Expand Down

0 comments on commit 79d085b

Please sign in to comment.