create-piso-app
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -45,3 +45,5 @@ "use strict"; | ||
var package_json_1 = __importDefault(require("../package.json")); | ||
var update_notifier_cjs_1 = __importDefault(require("update-notifier-cjs")); | ||
var log_1 = __importDefault(require("./log")); | ||
var chalk_1 = __importDefault(require("chalk")); | ||
var program = new commander_1.Command(); | ||
@@ -53,8 +55,14 @@ program | ||
.action(function (dest) { return __awaiter(void 0, void 0, void 0, function () { | ||
var notifier; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, (0, download_repo_1.default)(dest)]; | ||
case 0: | ||
notifier = (0, update_notifier_cjs_1.default)({ pkg: package_json_1.default }).notify(); | ||
return [4 /*yield*/, (0, download_repo_1.default)(dest)]; | ||
case 1: | ||
_a.sent(); | ||
(0, log_1.default)(dest); | ||
if (notifier.update) { | ||
console.log("\n", chalk_1.default.yellowBright("".concat(notifier.update.latest, " \u7248\u672C\u5DF2\u53D1\u5E03\uFF0C\u8BF7\u5347\u7EA7"))); | ||
} | ||
return [2 /*return*/]; | ||
@@ -61,0 +69,0 @@ } |
{ | ||
"name": "create-piso-app", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"main": "lib/index.js", | ||
@@ -27,3 +27,4 @@ "bin": { | ||
"inquirer": "^9.2.18", | ||
"progress": "^2.0.3" | ||
"progress": "^2.0.3", | ||
"update-notifier-cjs": "^5.1.6" | ||
}, | ||
@@ -30,0 +31,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6995
114
6
+ Addedupdate-notifier-cjs@^5.1.6
+ Added@pnpm/config.env-replace@1.1.0(transitive)
+ Added@pnpm/network.ca-file@1.0.2(transitive)
+ Added@pnpm/npm-conf@2.3.1(transitive)
+ Addedansi-align@3.0.1(transitive)
+ Addedboxen@5.1.2(transitive)
+ Addedcamelcase@6.3.0(transitive)
+ Addedci-info@2.0.0(transitive)
+ Addedcli-boxes@2.2.1(transitive)
+ Addedconfigstore@5.0.1(transitive)
+ Addedcrypto-random-string@2.0.0(transitive)
+ Addeddeep-extend@0.6.0(transitive)
+ Addeddot-prop@5.3.0(transitive)
+ Addedescape-goat@2.1.1(transitive)
+ Addedglobal-dirs@3.0.1(transitive)
+ Addedgraceful-fs@4.2.10(transitive)
+ Addedhas-yarn@2.1.0(transitive)
+ Addedimport-lazy@2.1.0(transitive)
+ Addedimurmurhash@0.1.4(transitive)
+ Addedini@2.0.0(transitive)
+ Addedis-ci@2.0.0(transitive)
+ Addedis-installed-globally@0.4.0(transitive)
+ Addedis-npm@5.0.0(transitive)
+ Addedis-obj@2.0.0(transitive)
+ Addedis-path-inside@3.0.3(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedis-yarn-global@0.3.0(transitive)
+ Addedisomorphic-fetch@3.0.0(transitive)
+ Addedmake-dir@3.1.0(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addedpupa@2.1.1(transitive)
+ Addedrc@1.2.8(transitive)
+ Addedregistry-auth-token@5.0.2(transitive)
+ Addedregistry-url@5.1.0(transitive)
+ Addedsemver@6.3.17.6.3(transitive)
+ Addedsemver-diff@3.1.1(transitive)
+ Addedstrip-json-comments@2.0.1(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedtype-fest@0.20.2(transitive)
+ Addedtypedarray-to-buffer@3.1.5(transitive)
+ Addedunique-string@2.0.0(transitive)
+ Addedupdate-notifier-cjs@5.1.6(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-fetch@3.6.20(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
+ Addedwidest-line@3.1.0(transitive)
+ Addedwrap-ansi@7.0.0(transitive)
+ Addedwrite-file-atomic@3.0.3(transitive)
+ Addedxdg-basedir@4.0.0(transitive)