Skip to content

Commit

Permalink
removed the ignored "version" property from bower config, added "modu…
Browse files Browse the repository at this point in the history
…leType"
  • Loading branch information
jackmoore committed May 19, 2015
1 parent 70a0cb9 commit 7878be2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
node_modules/*
test/*
publish.js
test/*
7 changes: 5 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "autosize",
"description": "Autosize is a small, stand-alone script to automatically adjust textarea height to fit text.",
"version": "3.0.5",
"dependencies": {},
"keywords": [
"textarea",
Expand All @@ -22,5 +21,9 @@
"type": "git",
"url": "http://github.com/jackmoore/autosize.git"
},
"main": "dest/autosize.js"
"main": "dest/autosize.js",
"moduleType": [
"amd",
"node"
]
}
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ function writeBower() {
var bower = {
name: pkg.config.bower.name,
description: pkg.description,
version: pkg.version,
dependencies: pkg.dependencies,
keywords: pkg.keywords,
authors: [pkg.author],
Expand All @@ -18,6 +17,7 @@ function writeBower() {
ignore: pkg.config.bower.ignore,
repository: pkg.repository,
main: pkg.main,
moduleType: pkg.config.bower.moduleType,
};
fs.writeFile('bower.json', JSON.stringify(bower, null, '\t'));
return true;
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"config": {
"bower": {
"name": "autosize",
"ignore": []
"ignore": [],
"moduleType": ["amd", "node"]
},
"title": "Autosize",
"filename": "autosize"
Expand Down

0 comments on commit 7878be2

Please sign in to comment.