Socket
Socket
Sign inDemoInstall

@appsemble/cli

Package Overview
Dependencies
Maintainers
2
Versions
226
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appsemble/cli - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

lib/commands/publish.js

@@ -42,3 +42,3 @@ const path = require('path');

version: config.version,
resources: await readResources(),
resources: await readResources(project),
files: await readFiles(buildDir),

@@ -45,0 +45,0 @@ permissions: config.permissions,

@@ -13,14 +13,15 @@ const path = require('path');

*/
module.exports = async function readResources() {
module.exports = async function readResources(projectDir) {
const result = {};
if (!fs.existsSync('resources')) {
const resourcesDir = path.join(projectDir, 'resources');
if (!fs.existsSync(resourcesDir)) {
return result;
}
const stat = await fs.stat('resources');
const stat = await fs.stat(resourcesDir);
if (!stat.isDirectory) {
return result;
}
const files = await fs.readdir('resources');
const files = await fs.readdir(resourcesDir);
await Promise.all(files.map(async (filename) => {
const { config, filepath } = await explorer.load(null, path.join('resources', filename));
const { config, filepath } = await explorer.load(null, path.join(resourcesDir, filename));
log.info('Read resource from', filepath);

@@ -27,0 +28,0 @@ result[path.parse(filename).name] = config;

{
"name": "@appsemble/cli",
"version": "0.1.0",
"version": "0.1.1",
"description": "A CLI for the Appsemble extension platform",

@@ -5,0 +5,0 @@ "homepage": "https://www.appsemble.com",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc