Comparing version 0.0.42 to 0.0.43
@@ -22,2 +22,3 @@ #!/usr/bin/env node | ||
}; | ||
// | ||
; | ||
@@ -32,9 +33,9 @@ (async ({ version }) => { | ||
.version(`${version}`, '-v, --version') | ||
.option('-d, --dry', 'run in dry mode'); | ||
.option('-d, --dry', 'run in dry mode', process.env.NODE_ENV !== 'production'); | ||
const git = simpleGit({ | ||
baseDir: process.cwd(), | ||
binary: 'git' | ||
}).outputHandler((bin, stdout, stderr, args) => { | ||
}).outputHandler((bin, stdout, stderr, [cmd]) => { | ||
assert.equal(bin, 'git'); | ||
if (args.length > 1 && !args.includes('status')) { | ||
if (!/^(status|remote)/.test(`${cmd}`)) { | ||
stdout.pipe(process.stdout); | ||
@@ -52,15 +53,15 @@ stderr.pipe(process.stderr); | ||
.description('git pull <origin> <branch>') | ||
.action(async () => void git.pull(remote, current)); | ||
.action(async () => void (await git.pull(remote, current))); | ||
prog | ||
.command('fetch') | ||
.description('git fetch <remote> <branch>') | ||
.action(async () => void git.fetch(remote, current)); | ||
.action(async () => void (await git.fetch(remote, current))); | ||
prog | ||
.command('push') | ||
.description('git pull <remote> <branch>') | ||
.action(async () => void git.push(remote, current)); | ||
.action(async () => void (await git.push(remote, current))); | ||
prog | ||
.command('prune') | ||
.description('git remote prune <remote>, cleaning up local branches') | ||
.action(async () => void git.remote(['prune', remote])); | ||
.action(async () => void (await git.remote(['prune', remote]))); | ||
prog | ||
@@ -67,0 +68,0 @@ .command('rm ') |
{ | ||
"name": "gal", | ||
"version": "0.0.42", | ||
"version": "0.0.43", | ||
"description": "Git add, commit, and push in one line.", | ||
@@ -28,5 +28,5 @@ "main": "./dist/index.js", | ||
"build": "tsc", | ||
"dev": "tsc -w", | ||
"prepare": "yarn build", | ||
"gal": "node dist/index.js" | ||
"dev": "NODE_ENV=development tsc -w", | ||
"prepare": "NODE_ENV=production yarn build", | ||
"gal": "NODE_ENV=development node dist/index.js" | ||
}, | ||
@@ -33,0 +33,0 @@ "devDependencies": { |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
6575
121
3