fix(core): update
This commit is contained in:
parent
815694dd8b
commit
a5c019419b
5128
package-lock.json
generated
5128
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
17
package.json
17
package.json
@ -12,21 +12,20 @@
|
|||||||
"build": "(tsbuild)"
|
"build": "(tsbuild)"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.17",
|
"@gitzone/tsbuild": "^2.1.24",
|
||||||
"@gitzone/tsrun": "^1.2.8",
|
"@gitzone/tsrun": "^1.2.12",
|
||||||
"@gitzone/tstest": "^1.0.24",
|
"@gitzone/tstest": "^1.0.33",
|
||||||
"@pushrocks/tapbundle": "^3.0.13",
|
"@pushrocks/tapbundle": "^3.2.1",
|
||||||
"@types/node": "^12.7.5",
|
"@types/node": "^14.0.14",
|
||||||
"tslint": "^5.20.0",
|
"tslint": "^6.1.2",
|
||||||
"tslint-config-prettier": "^1.18.0"
|
"tslint-config-prettier": "^1.18.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/consolecolor": "^2.0.1",
|
"@pushrocks/consolecolor": "^2.0.1",
|
||||||
"@pushrocks/npmextra": "^3.0.7",
|
"@pushrocks/npmextra": "^3.0.7",
|
||||||
"@pushrocks/smartlog": "^2.0.19",
|
"@pushrocks/smartnpm": "^1.0.17",
|
||||||
"@pushrocks/smartnpm": "^1.0.13",
|
|
||||||
"@pushrocks/smartopen": "^1.0.22",
|
"@pushrocks/smartopen": "^1.0.22",
|
||||||
"@pushrocks/smarttime": "^3.0.12",
|
"@pushrocks/smarttime": "^3.0.18",
|
||||||
"@pushrocks/smartversion": "^2.0.4"
|
"@pushrocks/smartversion": "^2.0.4"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
@ -76,8 +76,8 @@ export class SmartUpdate {
|
|||||||
) {
|
) {
|
||||||
const npmPackage = await this.getNpmPackageFromRegistry(npmPackageName);
|
const npmPackage = await this.getNpmPackageFromRegistry(npmPackageName);
|
||||||
if (!npmPackage) {
|
if (!npmPackage) {
|
||||||
plugins.smartlog.defaultLogger.log('warn', 'failed to retrieve package information...');
|
console.log('warn: failed to retrieve package information...');
|
||||||
plugins.smartlog.defaultLogger.log('info', 'is the registry down?');
|
console.log('info: is the registry down?');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -93,13 +93,11 @@ export class SmartUpdate {
|
|||||||
);
|
);
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
plugins.smartlog.defaultLogger.log(
|
console.log(
|
||||||
'warn',
|
`warn: There is a newer version of ${npmPackage.name} available on npm.`
|
||||||
`There is a newer version of ${npmPackage.name} available on npm.`
|
|
||||||
);
|
);
|
||||||
plugins.smartlog.defaultLogger.log(
|
console.log(
|
||||||
'warn',
|
`warn: Your version: ${versionLocal.versionString} | version on npm: ${versionNpm.versionString}`
|
||||||
`Your version: ${versionLocal.versionString} | version on npm: ${versionNpm.versionString}`
|
|
||||||
);
|
);
|
||||||
if (!process.env.CI && changelogUrlArg) {
|
if (!process.env.CI && changelogUrlArg) {
|
||||||
console.log('trying to open changelog...');
|
console.log('trying to open changelog...');
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
import * as smartlog from '@pushrocks/smartlog';
|
|
||||||
smartlog.defaultLogger.enableConsole();
|
|
||||||
import * as consolecolor from '@pushrocks/consolecolor';
|
import * as consolecolor from '@pushrocks/consolecolor';
|
||||||
import * as npmextra from '@pushrocks/npmextra';
|
import * as npmextra from '@pushrocks/npmextra';
|
||||||
import * as smartnpm from '@pushrocks/smartnpm';
|
import * as smartnpm from '@pushrocks/smartnpm';
|
||||||
@ -7,4 +5,4 @@ import * as smartopen from '@pushrocks/smartopen';
|
|||||||
import * as smarttime from '@pushrocks/smarttime';
|
import * as smarttime from '@pushrocks/smarttime';
|
||||||
import * as smartversion from '@pushrocks/smartversion';
|
import * as smartversion from '@pushrocks/smartversion';
|
||||||
|
|
||||||
export { smartlog, consolecolor, npmextra, smartnpm, smartopen, smarttime, smartversion };
|
export { consolecolor, npmextra, smartnpm, smartopen, smarttime, smartversion };
|
||||||
|
Loading…
Reference in New Issue
Block a user