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

@enonic/cli-test

Package Overview
Dependencies
Maintainers
5
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@enonic/cli-test - npm Package Compare versions

Comparing version 0.0.31 to 0.0.32

2

package.json
{
"name": "@enonic/cli-test",
"description": "Command-line interface for Enonic XP",
"version": "0.0.31",
"version": "0.0.32",
"scripts": {

@@ -6,0 +6,0 @@ "postinstall": "node script.js install",

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

let binName = packageJson.goBinary.name;
let binNameUnused = binName + ".exe";
const binPath = packageJson.goBinary.path;

@@ -80,2 +81,3 @@ let version = packageJson.version;

if (process.platform === "win32") {
binNameUnused = binName;
binName += ".exe";

@@ -86,5 +88,6 @@ }

return {
binName: binName,
binPath: binPath,
version: version
binName,
binNameUnused,
binPath,
version
};

@@ -109,3 +112,2 @@ }

const source = path.join('dist', `enonic_${PLATFORM_MAPPING[process.platform]}_${ARCH_MAPPING[process.arch]}`, opts.binName);
console.info(source);

@@ -119,8 +121,12 @@ if (!fs.existsSync(source)) {

mkdirp.sync(targetPath);
//const target = path.join('dist', opts.binName);
const target = path.join(targetPath, opts.binName);
console.info(target);
console.info(`Copying the relevant binary for your platform ${process.platform}`);
fs.copyFileSync(source, target, fs.constants.COPYFILE_FICLONE);
try {
fs.unlinkSync(path.join(targetPath, opts.binNameUnused));
} catch(err) {
//
}
}

@@ -127,0 +133,0 @@

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