Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
3105f8f401 | |||
70b83fcafc | |||
7e8e4b1891 | |||
aa8279c281 |
16
dist/npmts.cli.js
vendored
16
dist/npmts.cli.js
vendored
@ -1,4 +1,12 @@
|
||||
"use strict";
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const q = require("smartq");
|
||||
const plugins = require("./npmts.plugins");
|
||||
@ -20,11 +28,11 @@ const NpmtsShip = require("./npmts.ship");
|
||||
*/
|
||||
let npmtsAnalytics = new plugins.smartanalytics.AnalyticsAccount('npmts', 'UA-64087619-5');
|
||||
npmtsAnalytics.sendEvent('npm', 'exec', 'git.zone');
|
||||
exports.run = () => {
|
||||
exports.run = () => __awaiter(this, void 0, void 0, function* () {
|
||||
let done = q.defer();
|
||||
let npmtsProjectInfo = new plugins.projectinfo.ProjectinfoNpm(paths.npmtsPackageRoot);
|
||||
// check for updates
|
||||
plugins.smartupdate.standardHandler.check('npmts', npmtsProjectInfo.version);
|
||||
yield plugins.smartupdate.standardHandler.check('npmts', npmtsProjectInfo.version);
|
||||
let npmtsCli = new plugins.smartcli.Smartcli();
|
||||
npmtsCli.standardTask()
|
||||
.then((argvArg) => {
|
||||
@ -70,5 +78,5 @@ exports.run = () => {
|
||||
} });
|
||||
npmtsCli.addVersion(npmtsProjectInfo.version);
|
||||
npmtsCli.startParse();
|
||||
return done.promise;
|
||||
};
|
||||
return yield done.promise;
|
||||
});
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "npmts",
|
||||
"version": "8.0.6",
|
||||
"version": "8.0.8",
|
||||
"description": "best practice npm TypeScript modules",
|
||||
"main": "dist/index.js",
|
||||
"bin": {
|
||||
@ -58,7 +58,7 @@
|
||||
"smartstream": "^1.0.10",
|
||||
"smartstring": "^2.0.24",
|
||||
"smartsystem": "^2.0.2",
|
||||
"smartupdate": "^1.0.3",
|
||||
"smartupdate": "^1.0.4",
|
||||
"tapbuffer": "^1.0.29",
|
||||
"through2": "^2.0.3",
|
||||
"tsn": "^2.0.15",
|
||||
|
@ -21,11 +21,11 @@ import * as NpmtsShip from './npmts.ship'
|
||||
let npmtsAnalytics = new plugins.smartanalytics.AnalyticsAccount('npmts','UA-64087619-5')
|
||||
npmtsAnalytics.sendEvent('npm','exec','git.zone')
|
||||
|
||||
export let run = () => {
|
||||
export let run = async () => {
|
||||
let done = q.defer()
|
||||
let npmtsProjectInfo = new plugins.projectinfo.ProjectinfoNpm(paths.npmtsPackageRoot)
|
||||
// check for updates
|
||||
plugins.smartupdate.standardHandler.check('npmts', npmtsProjectInfo.version)
|
||||
await plugins.smartupdate.standardHandler.check('npmts', npmtsProjectInfo.version)
|
||||
let npmtsCli = new plugins.smartcli.Smartcli()
|
||||
npmtsCli.standardTask()
|
||||
.then((argvArg) => {
|
||||
@ -70,5 +70,5 @@ export let run = () => {
|
||||
.catch((err) => { if (err instanceof Error) { console.log(err) } })
|
||||
npmtsCli.addVersion(npmtsProjectInfo.version)
|
||||
npmtsCli.startParse()
|
||||
return done.promise
|
||||
return await done.promise
|
||||
}
|
||||
|
@ -339,7 +339,7 @@ bcrypt-pbkdf@^1.0.0:
|
||||
dependencies:
|
||||
tweetnacl "^0.14.3"
|
||||
|
||||
beautycolor@^1.0.7, beautycolor@^1.0.9:
|
||||
beautycolor@^1.0.10, beautycolor@^1.0.7, beautycolor@^1.0.9:
|
||||
version "1.0.10"
|
||||
resolved "https://registry.yarnpkg.com/beautycolor/-/beautycolor-1.0.10.tgz#4b50758e59115839b3bb2bfe8aaaec9e29c747dd"
|
||||
dependencies:
|
||||
@ -2906,10 +2906,11 @@ smarttime@^1.0.6:
|
||||
dependencies:
|
||||
typings-global "^1.0.16"
|
||||
|
||||
smartupdate@^1.0.3:
|
||||
version "1.0.3"
|
||||
resolved "https://registry.yarnpkg.com/smartupdate/-/smartupdate-1.0.3.tgz#9b8ddac4b6f8c44ebd0e1ccca8d3f613c4970ac1"
|
||||
smartupdate@^1.0.4:
|
||||
version "1.0.4"
|
||||
resolved "https://registry.yarnpkg.com/smartupdate/-/smartupdate-1.0.4.tgz#73a587569c3788c8b04a3dd6422a6837373416c0"
|
||||
dependencies:
|
||||
beautycolor "^1.0.10"
|
||||
beautylog "^6.1.10"
|
||||
npmextra "^2.0.9"
|
||||
smartnpm "^1.0.4"
|
||||
|
Reference in New Issue
Block a user