diff --git a/.gitignore b/.gitignore index 10728c0..c383b36 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ node_modules/* -test/* -publish.js \ No newline at end of file +test/* \ No newline at end of file diff --git a/bower.json b/bower.json index 6896117..cb84891 100644 --- a/bower.json +++ b/bower.json @@ -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", @@ -22,5 +21,9 @@ "type": "git", "url": "http://github.com/jackmoore/autosize.git" }, - "main": "dest/autosize.js" + "main": "dest/autosize.js", + "moduleType": [ + "amd", + "node" + ] } \ No newline at end of file diff --git a/build.js b/build.js index d7eb3cb..a7e75a5 100644 --- a/build.js +++ b/build.js @@ -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], @@ -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; diff --git a/package.json b/package.json index 155ff27..4a58be1 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,8 @@ "config": { "bower": { "name": "autosize", - "ignore": [] + "ignore": [], + "moduleType": ["amd", "node"] }, "title": "Autosize", "filename": "autosize"