build-ignore
Advanced tools
Comparing version 1.1.2 to 1.1.3
{ | ||
"name": "build-ignore", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"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", |
@@ -8,3 +8,3 @@ #!/usr/bin/env node | ||
const regEx = /ref: refs\/heads\/([^\n]+)/; | ||
const gitBranch = function(branch = publish) { | ||
const gitBranch = function(branch = 'publish') { | ||
console.log(branch); | ||
@@ -20,3 +20,2 @@ fs.readFile(`${path.join(process.cwd(), '.git/HEAD')}`, 'utf8', (err, data) => { | ||
if (err) throw err; | ||
console.log('Something is went wrong!!'); | ||
}); | ||
@@ -34,2 +33,4 @@ console.log('New .gitignore created: ', data); | ||
} | ||
} else { | ||
console.log('Something is went wrong!!'); | ||
} | ||
@@ -36,0 +37,0 @@ }); |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
2181
5
37
1
20