Socket
Socket
Sign inDemoInstall

@pie-framework/build-helper

Package Overview
Dependencies
1
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.5 to 1.3.6

4

lib/commands.d.ts

@@ -0,1 +1,2 @@

/// <reference types="node" />
export declare class Commands {

@@ -9,3 +10,4 @@ private projectRoot;

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

@@ -12,0 +14,0 @@ build(): void;

@@ -34,3 +34,3 @@ "use strict";

runCmds(cmds, opts = {}) {
cmds.forEach(c => {
const out = cmds.map(c => {
log('[cmd]: ', c, ` - in [${opts.cwd ? opts.cwd : process.cwd()}]`);

@@ -40,5 +40,18 @@ if (this.dryRun) {

}
execSync(c, Object.assign({ stdio: 'inherit' }, opts));
return execSync(c, Object.assign({ stdio: 'inherit' }, opts));
});
if (!this.dryRun) {
return out;
}
}
isGitTreeClean() {
if (this.dryRun) {
return true;
}
const d = this.runCmds(['git diff']);
if (Array.isArray(d)) {
const b = d[0];
return b.toString() === '';
}
}
release() {

@@ -55,6 +68,10 @@ cmdLog('----> release');

`git checkout ${TRAVIS_BRANCH}`,
'git rev-parse --short HEAD',
`git commit . -m "[travis skip] commit post install tree"`,
`git status`
'git rev-parse --short HEAD'
]);
if (!this.isGitTreeClean()) {
this.runCmds([
`git commit . -m "[travis skip] commit post install tree"`
]);
}
this.runCmds([`git status`]);
}

@@ -61,0 +78,0 @@ this.build();

{
"name": "@pie-framework/build-helper",
"version": "1.3.5",
"version": "1.3.6",
"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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc