Comparing version 2.1.12 to 2.1.13
{ | ||
"name": "@vmm/cli", | ||
"version": "2.1.12", | ||
"version": "2.1.13", | ||
"description": "vmm cli interface", | ||
@@ -13,5 +13,3 @@ "author": { | ||
"scripts": { | ||
"pub": "npm_config_registry=\"https://registry.npmjs.org/\" yarn publish --access public", | ||
"start": "DEBUG=@* ts-node -r tsconfig-paths/register ./src/index.ts ", | ||
"build": "webpack --mode production --config ./webpack/webpack.config.js" | ||
"pub": "npm_config_registry=\"https://registry.npmjs.org/\" yarn publish --access public" | ||
}, | ||
@@ -18,0 +16,0 @@ "private": false, |
const fse = require('fs-extra') | ||
const path = require('path') | ||
const execSync = require('child_process').execSync | ||
const updateHtml = require('./updateHtml') | ||
@@ -9,7 +10,7 @@ function isCurDirEmpty() { | ||
function createService(name) { | ||
async function createService(name) { | ||
} | ||
function createHtml(name) { | ||
async function createHtml(name) { | ||
console.log('create html project:', name) | ||
@@ -27,2 +28,4 @@ // 检查当前目录非空 | ||
fse.writeFileSync('./package.json', JSON.stringify(pkg, null, 2)) | ||
// 更新版本 | ||
await updateHtml({}) | ||
@@ -36,9 +39,9 @@ // 获取npm包 | ||
module.exports = function (arg) { | ||
module.exports = async function (arg) { | ||
try { | ||
if (arg.html) { | ||
createHtml(arg.html) | ||
await createHtml(arg.html) | ||
} else if (arg.service) { | ||
createService(arg.service) | ||
await createService(arg.service) | ||
} else { | ||
@@ -45,0 +48,0 @@ throw Error('must have type option, using -h to help') |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
692
17
31383