lerna-script-tasks-modules
Advanced tools
Comparing version 0.8.2 to 0.8.3
@@ -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); | ||
}); | ||
}); | ||
}); | ||
}); |
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
8509
113