Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@superdesk/build-tools

Package Overview
Dependencies
Maintainers
4
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@superdesk/build-tools - npm Package Compare versions

Comparing version 1.0.16 to 1.0.17

src/generate-instance-configuration-schema.js

2

package.json
{
"name": "@superdesk/build-tools",
"version": "1.0.16",
"version": "1.0.17",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

@@ -12,2 +12,3 @@ #!/usr/bin/env node

const {namespaceCSS, watchCSS} = require('./extensions/css');
const {generateInstanceConfigurationSchema} = require('./generate-instance-configuration-schema');

@@ -30,2 +31,10 @@ const {Command} = require('commander');

program.command('generate-instance-configuration-schema <main-client-dir>')
.description('reads typescript interfaces and generates JSON schema that will be used to generate the UI')
.action((mainClientDir) => {
const clientDirAbs = path.join(currentDir, mainClientDir);
generateInstanceConfigurationSchema(clientDirAbs);
});
program.command('po-to-json <source-dir-po> <output-dir-json>')

@@ -44,5 +53,5 @@ .description('convert .po files in the directory to .json format that is used by Superdesk')

const clientDirAbs = path.join(currentDir, mainClientDir);
const poDir = path.join(clientDirAbs, 'node_modules/superdesk-core/po');
const translationsDir = path.join(currentDir, mainClientDir, 'dist/languages');
generateInstanceConfigurationSchema(clientDirAbs);
// build will fail if extensions are not installed

@@ -57,2 +66,5 @@ installExtensions(clientDirAbs);

const poDir = path.join(clientDirAbs, 'node_modules/superdesk-core/po');
const translationsDir = path.join(currentDir, mainClientDir, 'dist/languages');
// translationsDir is only created after the build and would get removed if created before build

@@ -59,0 +71,0 @@ poToJson(poDir, translationsDir);

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