create-zalo-mini-app
Advanced tools
Comparing version 1.0.0 to 1.0.1
#! /usr/bin/env node | ||
const exec = require('exec-sh'); | ||
const compareVersion = require('compare-versions'); | ||
var commandExistsSync = require('command-exists').sync; | ||
const chalk = require('chalk'); | ||
const { lookpath } = require('lookpath'); | ||
@@ -44,3 +44,5 @@ const { MINIMUM_NODE_VERSION } = require('../constants'); | ||
if (commandExistsSync('zmp')) { | ||
const zmp = await lookpath('zmp-cli'); | ||
if (zmp) { | ||
try { | ||
@@ -67,5 +69,5 @@ logger.statusStart(`Updating CLI: ${waitText}`); | ||
if (createProjectFolder) { | ||
await exec.promise(`cd ${projectFolder} && zmp init`); | ||
await exec.promise(`cd ${projectFolder} && zmp-cli init`); | ||
} else { | ||
await exec.promise(`zmp init`); | ||
await exec.promise(`zmp-cli init`); | ||
} | ||
@@ -72,0 +74,0 @@ } catch (err) { |
{ | ||
"name": "create-zalo-mini-app", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Create zalo mini app project", | ||
@@ -25,2 +25,3 @@ "main": "bin/index.js", | ||
"exec-sh": "^0.4.0", | ||
"lookpath": "^1.2.2", | ||
"ora": "^3.4.0" | ||
@@ -27,0 +28,0 @@ }, |
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
9328
293
6
+ Addedlookpath@^1.2.2
+ Addedlookpath@1.2.2(transitive)