Comparing version 1.1.0 to 2.0.0
@@ -6,2 +6,7 @@ #!/usr/bin/env node | ||
ifCI(true) | ||
const argv = process.argv.slice(2) | ||
const command = argv[0] | ||
const args = argv.slice(1) | ||
ifCI(true, command, args) | ||
.then(result => process.exit(result.code)) |
@@ -6,2 +6,7 @@ #!/usr/bin/env node | ||
ifCI(false) | ||
const argv = process.argv.slice(2) | ||
const command = argv[0] | ||
const args = argv.slice(1) | ||
ifCI(false, command, args) | ||
.then(result => process.exit(result.code)) |
{ | ||
"name": "if-ci", | ||
"version": "1.1.0", | ||
"version": "2.0.0", | ||
"description": "Easily run npm scripts only when in (or not in) a CI environment.", | ||
@@ -5,0 +5,0 @@ "author": { |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
4514
16
0