@multiplatform.one/cli
Advanced tools
Comparing version 1.0.31 to 1.0.32
{ | ||
"name": "@multiplatform.one/cli", | ||
"version": "1.0.31", | ||
"version": "1.0.32", | ||
"author": "BitSpur <support@bitspur.com> (https://bitspur.com)", | ||
@@ -55,3 +55,3 @@ "contributors": [ | ||
"typescript": "~5.3.3", | ||
"@multiplatform.one/utils": "^0.0.16" | ||
"@multiplatform.one/utils": "^0.0.17" | ||
}, | ||
@@ -58,0 +58,0 @@ "dependencies": { |
@@ -46,3 +46,3 @@ /* | ||
.action(async (remote) => { | ||
if ((await execa('git', ['rev-parse', '--is-inside-work-tree'])).stdout.trim() === 'true') { | ||
if ((await execa('git', ['rev-parse', '--is-inside-work-tree'], { reject: false })).exitCode === 0) { | ||
throw new Error('multiplatform.one cannot be initialized inside a git repository'); | ||
@@ -85,6 +85,12 @@ } | ||
.action(async (remote) => { | ||
if ((await execa('git', ['rev-parse', '--is-inside-work-tree'])).stdout.trim() !== 'true') { | ||
if ((await execa('git', ['rev-parse', '--is-inside-work-tree'], { reject: false })).exitCode !== 0) { | ||
throw new Error('multiplatform.one cannot be updated outside of a git repository'); | ||
} | ||
if ((await execa('git', ['diff', '--cached', '--quiet'])).stdout.trim() !== 'true') { | ||
if ( | ||
( | ||
await execa('git', ['diff', '--cached', '--quiet'], { | ||
reject: false, | ||
}) | ||
).exitCode !== 0 | ||
) { | ||
throw new Error('multiplatform.one cannot be updated with uncommitted changes'); | ||
@@ -117,4 +123,4 @@ } | ||
{ | ||
cwd: projectRoot, | ||
stdio: 'inherit', | ||
cwd: projectRoot, | ||
}, | ||
@@ -121,0 +127,0 @@ ); |
Sorry, the diff of this file is not supported yet
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
24739
275