Skip to content

Commit f7c6700

Browse files
author
Dana Greenberg
committed
fix: update bower.json and package.json to include files for current npm
1 parent 592be63 commit f7c6700

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/grunt/plugins.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -302,14 +302,12 @@ module.exports = function(grunt) {
302302
return !/\.min\./.test(f)
303303
&& !/^bower\.json$/.test(f)
304304
&& !/^package\.json$/.test(f);
305-
})
306-
// Preprend "./" to each file path
307-
.map(function (f) { return './' + f; });
305+
});
308306

309307
// Copy a README file
310308
var readme = path.resolve(projectPath, 'misc/publish/README.md');
311309
shell.cp('-f', readme, taggedReleaseDir);
312-
310+
313311
var bowerJsonFile = path.join(taggedReleaseDir, 'bower.json');
314312
var pkgJsonFile = path.join(taggedReleaseDir, 'package.json');
315313

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

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

333-
// Add version for package.json
331+
// For package.json
334332
json.version = currentTag;
333+
json.main = "ui-grid.js";
334+
json.files = releaseFiles;
335335

336336
fs.writeFileSync(pkgJsonFile, JSON.stringify(json, null, 2));
337337
});

0 commit comments

Comments
 (0)