jam-pack-nodegui
Advanced tools
Comparing version 0.7.0 to 0.8.0
@@ -81,2 +81,4 @@ "use strict"; | ||
} | ||
logger.info(`Using git url: '${__classPrivateFieldGet(this, _FetchStep_gitUrl, "f")}'`); | ||
logger.info(`Using git branch: '${__classPrivateFieldGet(this, _FetchStep_gitBranch, "f")}'`); | ||
__classPrivateFieldSet(this, _FetchStep_tempDirectory, prepareStep.getTempDirectory(), "f"); | ||
@@ -125,4 +127,4 @@ __classPrivateFieldSet(this, _FetchStep_gitSourcePath, path.join(__classPrivateFieldGet(this, _FetchStep_tempDirectory, "f"), __classPrivateFieldGet(this, _FetchStep_gitSourceDirectoryName, "f")), "f"); | ||
const urlCommand = "git config --get remote.origin.url"; | ||
const { result: urlResult, output: url } = await (0, utils_js_1.executeCommandAndCaptureOutput)(urlCommand); | ||
if (urlResult !== 0) { | ||
const { result: urlReturnCode, output: url } = await (0, utils_js_1.executeCommandAndCaptureOutput)(urlCommand); | ||
if (urlReturnCode !== 0) { | ||
logger.error(`An error occurred while running command '${urlCommand}': ${url}`); | ||
@@ -132,9 +134,14 @@ return null; | ||
const branchCommand = "git branch --show-current"; | ||
const { result: resultBranch, output: branch } = await (0, utils_js_1.executeCommandAndCaptureOutput)(branchCommand); | ||
if (resultBranch !== 0) { | ||
logger.error(`An error occurred while running command '${urlCommand}': ${branch}`); | ||
const { result: branchReturnCode, output: branchOutput } = await (0, utils_js_1.executeCommandAndCaptureOutput)(branchCommand); | ||
if (branchReturnCode !== 0) { | ||
logger.error(`An error occurred while running command '${urlCommand}': ${branchOutput}`); | ||
return null; | ||
} | ||
return { url: url.trim(), branch: branch.trim() }; | ||
const branch = branchOutput.trim(); | ||
if (branch === "") { | ||
logger.error(`Unable to determine the current git branch. (Response from '${branchCommand}' was: '${branchOutput}')`); | ||
return null; | ||
} | ||
return { url: url.trim(), branch }; | ||
}; | ||
//# sourceMappingURL=fetchstep.js.map |
@@ -28,7 +28,7 @@ #!/usr/bin/env node | ||
program.option("-D, --define <setting>", "Define a setting. (Overrides the config file)", collectSetting, []); | ||
program.action(() => { | ||
execute(program, Action.package); | ||
program.action(async () => { | ||
process.exit(await execute(program, Action.package) ? 0 : 1); | ||
}); | ||
program.command("check").action(async () => { | ||
await execute(program, Action.check); | ||
process.exit(await execute(program, Action.check) ? 0 : 1); | ||
}); | ||
@@ -50,7 +50,5 @@ await program.parseAsync(); | ||
case Action.check: | ||
await plan.preflightCheck(); | ||
break; | ||
return await plan.preflightCheck(); | ||
case Action.package: | ||
await plan.execute(); | ||
break; | ||
return await plan.execute(); | ||
} | ||
@@ -57,0 +55,0 @@ } |
{ | ||
"name": "jam-pack-nodegui", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"description": "Tool to package NodeGui applications", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
135751
2400
0