Skip to content

Commit

Permalink
fix: update bower.json and package.json to include files for current npm
Browse files Browse the repository at this point in the history
  • Loading branch information
Dana Greenberg committed Jun 30, 2016
1 parent 592be63 commit f7c6700
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/grunt/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,14 +302,12 @@ module.exports = function(grunt) {
return !/\.min\./.test(f)
&& !/^bower\.json$/.test(f)
&& !/^package\.json$/.test(f);
})
// Preprend "./" to each file path
.map(function (f) { return './' + f; });
});

// Copy a README file
var readme = path.resolve(projectPath, 'misc/publish/README.md');
shell.cp('-f', readme, taggedReleaseDir);

var bowerJsonFile = path.join(taggedReleaseDir, 'bower.json');
var pkgJsonFile = path.join(taggedReleaseDir, 'package.json');

Expand All @@ -330,8 +328,10 @@ module.exports = function(grunt) {

fs.writeFileSync(bowerJsonFile, JSON.stringify(json, null, 2));

// Add version for package.json
// For package.json
json.version = currentTag;
json.main = "ui-grid.js";
json.files = releaseFiles;

fs.writeFileSync(pkgJsonFile, JSON.stringify(json, null, 2));
});
Expand Down

0 comments on commit f7c6700

Please sign in to comment.