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

lerna-script-tasks-modules

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lerna-script-tasks-modules - npm Package Compare versions

Comparing version 0.8.2 to 0.8.3

2

index.js

@@ -21,3 +21,3 @@ const {loadPackages, iter, fs} = require('lerna-script'),

}, logMerged))
.then(packageJson => fs.writeFile(lernaPackage)('package.json', packageJson));
.then(packageJson => fs.writeFile(lernaPackage)('package.json', JSON.stringify(packageJson, null, 2)));
});

@@ -24,0 +24,0 @@ }

{
"name": "lerna-script-tasks-modules",
"version": "0.8.2",
"version": "0.8.3",
"description": "module version sync task for lerna-script",

@@ -24,3 +24,3 @@ "author": "vilius@wix.com",

"peerDependencies": {
"lerna-script": "^0.8.2"
"lerna-script": "^0.8.3"
},

@@ -30,4 +30,4 @@ "devDependencies": {

"lerna": "2.9.0",
"lerna-script": "^0.8.2",
"lerna-script-test-utils": "^0.8.2",
"lerna-script": "^0.8.3",
"lerna-script-test-utils": "^0.8.3",
"mocha": "3.5.3",

@@ -34,0 +34,0 @@ "sinon": "3.2.1",

@@ -59,2 +59,17 @@ const {aLernaProject, fs, loggerMock} = require('lerna-script-test-utils'),

});
it('should beauify json on update', () => {
const log = loggerMock();
const project = aLernaProject()
.module('packages/a', module => module.packageJson({version: '2.0.0'}))
.module('packages/b', module => module.packageJson({dependencies: {'a': '~1.0.0'}}));
return project.within(() => {
return sync()(log).then(() => {
expect(fs.readFile('packages/b/package.json').split('\n').length).to.be.gt(2);
});
});
});
});
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