update
This commit is contained in:
19
ts/index.ts
19
ts/index.ts
@ -1,14 +1,13 @@
|
||||
import plugins = require("./smartci.plugins");
|
||||
import SmartCiGet = require("./smartci.get");
|
||||
import plugins = require('./smartci.plugins');
|
||||
|
||||
export let isCi = function():boolean {
|
||||
if(process.env.CI == "true"){
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
export let isCi = function(): boolean {
|
||||
if (process.env.CI == 'true') {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
export let isTaggedCommit = () => {
|
||||
return typeof process.env.CI_BUILD_TAG != "undefined";
|
||||
}
|
||||
return typeof process.env.CI_BUILD_TAG != 'undefined';
|
||||
};
|
||||
|
@ -1,2 +1,3 @@
|
||||
import "typings-global";
|
||||
export let path = require("path");
|
||||
import * as path from 'path';
|
||||
|
||||
export { path };
|
||||
|
Reference in New Issue
Block a user