Skip to content

Commit 4a23af9

Browse files
sbrunoimbalind
authored andcommitted
chore(build): change contents saved to package.json
The same contents saved to bower.json were being saved to package.json, generating an invalid package.json since the main attribute was an array instead of a string. Now this has been changed, and the package.json generated for distribution contains the same contents of the package.json file in the source code. Fixes #4743
1 parent fbdaf8d commit 4a23af9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/grunt/plugins.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,9 @@ module.exports = function(grunt) {
331331
fs.writeFileSync(bowerJsonFile, JSON.stringify(json, null, 2));
332332

333333
// Add version for package.json
334-
json.version = currentTag;
334+
pkg.version = currentTag;
335335

336-
fs.writeFileSync(pkgJsonFile, JSON.stringify(json, null, 2));
336+
fs.writeFileSync(pkgJsonFile, JSON.stringify(pkg, null, 2));
337337
});
338338

339339
// Publish release to NPM

0 commit comments

Comments
 (0)