fix(core): update

This commit is contained in:
2020-06-25 20:08:47 +00:00
parent 815694dd8b
commit a5c019419b
4 changed files with 4726 additions and 439 deletions

View File

@ -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...');

View File

@ -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 };