summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeau Gunderson <beau@beaugunderson.com>2015-05-18 19:34:25 -0700
committerBeau Gunderson <beau@beaugunderson.com>2015-05-18 19:34:25 -0700
commita034c1af6667fc2987325cf5be8ba2577986d27a (patch)
treea7bfd193b48118b09186e477fb0367a4630f91fd
parent88507339f6ac7094cb06653a015503221da510f9 (diff)
downloadasync-a034c1af6667fc2987325cf5be8ba2577986d27a.tar.gz
Update package manager sync script
-rw-r--r--bower.json2
-rw-r--r--package.json2
-rwxr-xr-xsupport/sync-package-managers.js9
3 files changed, 5 insertions, 8 deletions
diff --git a/bower.json b/bower.json
index e6f1b42..1817688 100644
--- a/bower.json
+++ b/bower.json
@@ -9,6 +9,7 @@
"utility",
"module"
],
+ "license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/caolan/async.git"
@@ -24,7 +25,6 @@
"globals",
"node"
],
- "license": "MIT",
"ignore": [
"**/.*",
"node_modules",
diff --git a/package.json b/package.json
index fb329d9..1424c76 100644
--- a/package.json
+++ b/package.json
@@ -51,4 +51,4 @@
"tests"
]
}
-}
+} \ No newline at end of file
diff --git a/support/sync-package-managers.js b/support/sync-package-managers.js
index 310bbe6..30cb7c2 100755
--- a/support/sync-package-managers.js
+++ b/support/sync-package-managers.js
@@ -13,8 +13,6 @@ var IGNORES = ['**/.*', 'node_modules', 'bower_components', 'test', 'tests'];
var INCLUDES = ['lib/async.js', 'README.md', 'LICENSE'];
var REPOSITORY_NAME = 'caolan/async';
-var LICENSE_NAME = packageJson.license.type;
-
packageJson.jam = {
main: packageJson.main,
include: INCLUDES,
@@ -32,21 +30,20 @@ packageJson.volo = {
var bowerSpecific = {
moduleType: ['amd', 'globals', 'node'],
- license: LICENSE_NAME,
ignore: IGNORES,
authors: [packageJson.author]
};
var bowerInclude = ['name', 'description', 'version', 'main', 'keywords',
- 'homepage', 'repository', 'devDependencies'];
+ 'license', 'homepage', 'repository', 'devDependencies'];
var componentSpecific = {
- license: LICENSE_NAME,
repository: REPOSITORY_NAME,
scripts: [packageJson.main]
};
-var componentInclude = ['name', 'description', 'version', 'keywords'];
+var componentInclude = ['name', 'description', 'version', 'keywords',
+ 'license'];
var bowerJson = _.merge({}, _.pick(packageJson, bowerInclude), bowerSpecific);
var componentJson = _.merge({}, _.pick(packageJson, componentInclude), componentSpecific);