tt-ide-cli
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -23,6 +23,6 @@ const archiver = require('archiver'); | ||
function zipFile(sourcePath, targetPath) { | ||
async function zipFile(sourcePath, targetPath) { | ||
const appJsonPath = path.join(sourcePath, 'app.json'); | ||
const idApp = await fs.pathExists(appJsonPath); | ||
const packageSize = idApp ? 4 : 8; | ||
const isMiniProgram = await fs.pathExists(appJsonPath); | ||
const packageSize = isMiniProgram ? 4 : 8; | ||
const zipPath = path.join(targetPath, `${path.basename(sourcePath)}.zip`); | ||
@@ -29,0 +29,0 @@ return new Promise(function (resolve, reject) { |
{ | ||
"name": "tt-ide-cli", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Command line interface for micro app development", | ||
@@ -5,0 +5,0 @@ "bin": { |
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
36676