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