@easyv/cli
Advanced tools
Comparing version 1.0.25 to 1.0.26
{ | ||
"name": "@easyv/cli", | ||
"version": "1.0.25", | ||
"version": "1.0.26", | ||
"description": "Easy[V] component tools", | ||
@@ -5,0 +5,0 @@ "engines": { |
@@ -6,3 +6,2 @@ const validateProjectName = require('validate-npm-package-name'); | ||
const cmd = require('cross-spawn'); | ||
const { spawn } = require('child_process'); | ||
const os = require('os'); | ||
@@ -57,3 +56,3 @@ const generate = require('./generate'); | ||
module.exports = async function (folderName, options) { | ||
module.exports = async function (folderName, option) { | ||
@@ -107,3 +106,5 @@ const builers = { | ||
// await init(); | ||
await generate(); | ||
if (!option.e && !option.empty) { | ||
await generate(); | ||
} | ||
@@ -110,0 +111,0 @@ cmd('mv', [dir, realDir]) |
@@ -24,2 +24,3 @@ 'use strict'; | ||
.description('create a Easy[V] project that with a simple component.') | ||
.option('-e, --empty', 'no components folder') | ||
.action(create) | ||
@@ -26,0 +27,0 @@ |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
34897
536
1