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
chore: Release v3.2.4

chore: Release v3.2.5

fix: update bower.json and package.json to include files for current npm
  • Loading branch information
Dana Greenberg committed Jul 1, 2016
1 parent 592be63 commit 6e2331b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 11 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,17 @@
<a name="v3.2.5"></a>
### v3.2.5 (2016-07-01)

* update for package.json creation for npm

<a name="v3.2.4"></a>
### v3.2.4 (2016-06-30)


#### Bug Fixes

* update bower.json and package.json to include files for current npm ([f7c6700d](http://github.com/angular-ui/ng-grid/commit/f7c6700dedacfa213eaa65838d127aab0bf24867))
* **col-movable:** prevent hidden columns triggering unnecessary re-order event ([644b324b](http://github.com/angular-ui/ng-grid/commit/644b324b42e83cf8014ffcd05acc948084698aaa))

<a name="v3.2.3"></a>
### v3.2.3 (2016-06-29)

Expand Down
2 changes: 1 addition & 1 deletion bower.json
@@ -1,6 +1,6 @@
{
"name": "angular-ui-grid",
"version": "3.2.3",
"version": "3.2.5",
"homepage": "http://ui-grid.info",
"repository": {
"type": "git",
Expand Down
17 changes: 8 additions & 9 deletions lib/grunt/plugins.js
Expand Up @@ -297,14 +297,11 @@ module.exports = function(grunt) {

// Get the list of files from the release directory
var releaseFiles = fs.readdirSync(taggedReleaseDir)
// Filter out minified files and the bower.json file, if it's there already
.filter(function (f) {
return !/\.min\./.test(f)
&& !/^bower\.json$/.test(f)
&& !/^package\.json$/.test(f);
})
// Preprend "./" to each file path
.map(function (f) { return './' + f; });
// Filter out the bower.json and package.json file, if it's there already
.filter(function (f) {
return !/^bower\.json$/.test(f)
&& !/^package\.json$/.test(f);
});

// Copy a README file
var readme = path.resolve(projectPath, 'misc/publish/README.md');
Expand All @@ -330,8 +327,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
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "ui-grid",
"version": "3.2.3",
"version": "3.2.5",
"description": "A data grid for Angular",
"directories": {
"test": "test"
Expand Down

0 comments on commit 6e2331b

Please sign in to comment.