Socket
Socket
Sign inDemoInstall

@pie-framework/build-helper

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pie-framework/build-helper - npm Package Compare versions

Comparing version 1.3.6 to 1.3.7

3

lib/commands.d.ts

@@ -10,3 +10,4 @@ /// <reference types="node" />

staticToNow(dir: string, alias?: string): void;
runCmds(cmds: string[], opts?: any): Buffer[];
runCmd(cmd: any, opts?: any): Buffer | string | undefined;
runCmds(cmds: string[], opts?: any): (Buffer | string | undefined)[];
isGitTreeClean(): boolean;

@@ -13,0 +14,0 @@ release(): void;

@@ -33,14 +33,12 @@ "use strict";

}
runCmds(cmds, opts = {}) {
const out = cmds.map(c => {
log('[cmd]: ', c, ` - in [${opts.cwd ? opts.cwd : process.cwd()}]`);
if (this.dryRun) {
return;
}
return execSync(c, Object.assign({ stdio: 'inherit' }, opts));
});
if (!this.dryRun) {
return out;
runCmd(cmd, opts = {}) {
log('[cmd]: ', cmd, ` - in [${opts.cwd ? opts.cwd : process.cwd()}]`);
if (this.dryRun) {
return undefined;
}
return execSync(cmd, Object.assign({ stdio: 'inherit' }, opts));
}
runCmds(cmds, opts = {}) {
return cmds.map(c => this.runCmd(c, opts));
}
isGitTreeClean() {

@@ -50,7 +48,7 @@ if (this.dryRun) {

}
const d = this.runCmds(['git diff']);
if (Array.isArray(d)) {
const b = d[0];
return b.toString() === '';
const d = this.runCmd('git diff');
if (!d) {
return true;
}
return d && d.toString && d.toString() === '';
}

@@ -57,0 +55,0 @@ release() {

{
"name": "@pie-framework/build-helper",
"version": "1.3.6",
"version": "1.3.7",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc