@appsemble/cli
Advanced tools
Comparing version 0.1.2 to 0.2.0
@@ -20,3 +20,3 @@ const path = require('path'); | ||
const stat = await fs.stat(resourcesDir); | ||
if (!stat.isDirectory) { | ||
if (!stat.isDirectory()) { | ||
return result; | ||
@@ -26,3 +26,8 @@ } | ||
await Promise.all(files.map(async (filename) => { | ||
const { config, filepath } = await explorer.load(null, path.join(resourcesDir, filename)); | ||
const fullPath = path.join(resourcesDir, filename); | ||
const resourceStat = await fs.stat(fullPath); | ||
if (!resourceStat.isFile()) { | ||
return; | ||
} | ||
const { config, filepath } = await explorer.load(null, fullPath); | ||
log.info('Read resource from', filepath); | ||
@@ -29,0 +34,0 @@ result[path.parse(filename).name] = config; |
{ | ||
"name": "@appsemble/cli", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"description": "A CLI for the Appsemble extension platform", | ||
@@ -5,0 +5,0 @@ "homepage": "https://www.appsemble.com", |
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
12138
340