build-ignore
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "build-ignore", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "A post-checkout hook script that generates a .gitignore based on branch name for when different .gitignores are needed", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -9,5 +9,5 @@ #!/usr/bin/env node | ||
const currentBranch = process.argv[2] | ||
const currentBranch = process.argv[2]; | ||
const regEx = /ref: refs\/heads\/([^\n]+)/; | ||
module.exports = fs.readFile(`${path.join(process.cwd(), '.git/HEAD')}`, 'utf8', (err, data) => { | ||
const gitBranch = fs.readFile(`${path.join(process.cwd(), '.git/HEAD')}`, 'utf8', (err, data) => { | ||
//if error in getting | ||
@@ -37,1 +37,3 @@ if (err) throw err; | ||
}); | ||
module.exports = gitBranch; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1711
34