From 2a2cf56209e580e89db040302f0a7d14cb85e718 Mon Sep 17 00:00:00 2001 From: Ernest Landrito Date: Tue, 23 May 2017 15:59:23 -0700 Subject: [PATCH] NodeJS: Small additions to the package.json (#1289) --- .../com/google/api/codegen/nodejs/package.json.snip | 12 ++++++++---- .../testdata/nodejs_doc_package_library.baseline | 13 +++++++++---- .../testdata/nodejs_package_library.baseline | 13 +++++++++---- .../nodejs_package_no_path_templates.baseline | 13 +++++++++---- 4 files changed, 35 insertions(+), 16 deletions(-) diff --git a/src/main/resources/com/google/api/codegen/nodejs/package.json.snip b/src/main/resources/com/google/api/codegen/nodejs/package.json.snip index e703f861b3..b47ef0eb58 100644 --- a/src/main/resources/com/google/api/codegen/nodejs/package.json.snip +++ b/src/main/resources/com/google/api/codegen/nodejs/package.json.snip @@ -8,7 +8,10 @@ "url": "{@metadata.homepage}", "main": "src/index.js", "files": [ - "src" + "src", + "AUTHORS", + "CONTRIBUTING", + "COPYING" ], "keywords": [ "google apis client", @@ -34,11 +37,12 @@ "extend": "^3.0.0" }, "devDependencies": { - "mocha": "3.2.0", - "through2": "2.0.3" + "mocha": "^3.2.0", + "through2": "^2.0.3" }, "scripts": { - "test": "mocha" + "test": "mocha", + "publish-module": "node ../../scripts/publish.js {@metadata.shortName}" }, "license": "{@metadata.licenseName}", "engines": { diff --git a/src/test/java/com/google/api/codegen/testdata/nodejs_doc_package_library.baseline b/src/test/java/com/google/api/codegen/testdata/nodejs_doc_package_library.baseline index e5fabcfa35..126726d1fa 100644 --- a/src/test/java/com/google/api/codegen/testdata/nodejs_doc_package_library.baseline +++ b/src/test/java/com/google/api/codegen/testdata/nodejs_doc_package_library.baseline @@ -8,7 +8,10 @@ "url": "https://github.com/googleapis/googleapis", "main": "src/index.js", "files": [ - "src" + "src", + "AUTHORS", + "CONTRIBUTING", + "COPYING" ], "keywords": [ "google apis client", @@ -30,14 +33,16 @@ "extend": "^3.0.0" }, "devDependencies": { - "mocha": "3.2.0", - "through2": "2.0.3" + "mocha": "^3.2.0", + "through2": "^2.0.3" }, "scripts": { - "test": "mocha" + "test": "mocha", + "publish-module": "node ../../scripts/publish.js library" }, "license": "Apache-2.0", "engines": { "node": ">=4.0.0" } } + diff --git a/src/test/java/com/google/api/codegen/testdata/nodejs_package_library.baseline b/src/test/java/com/google/api/codegen/testdata/nodejs_package_library.baseline index e5fabcfa35..126726d1fa 100644 --- a/src/test/java/com/google/api/codegen/testdata/nodejs_package_library.baseline +++ b/src/test/java/com/google/api/codegen/testdata/nodejs_package_library.baseline @@ -8,7 +8,10 @@ "url": "https://github.com/googleapis/googleapis", "main": "src/index.js", "files": [ - "src" + "src", + "AUTHORS", + "CONTRIBUTING", + "COPYING" ], "keywords": [ "google apis client", @@ -30,14 +33,16 @@ "extend": "^3.0.0" }, "devDependencies": { - "mocha": "3.2.0", - "through2": "2.0.3" + "mocha": "^3.2.0", + "through2": "^2.0.3" }, "scripts": { - "test": "mocha" + "test": "mocha", + "publish-module": "node ../../scripts/publish.js library" }, "license": "Apache-2.0", "engines": { "node": ">=4.0.0" } } + diff --git a/src/test/java/com/google/api/codegen/testdata/nodejs_package_no_path_templates.baseline b/src/test/java/com/google/api/codegen/testdata/nodejs_package_no_path_templates.baseline index 991bd3546b..0665ec5f21 100644 --- a/src/test/java/com/google/api/codegen/testdata/nodejs_package_no_path_templates.baseline +++ b/src/test/java/com/google/api/codegen/testdata/nodejs_package_no_path_templates.baseline @@ -8,7 +8,10 @@ "url": "https://github.com/googleapis/googleapis", "main": "src/index.js", "files": [ - "src" + "src", + "AUTHORS", + "CONTRIBUTING", + "COPYING" ], "keywords": [ "google apis client", @@ -30,14 +33,16 @@ "extend": "^3.0.0" }, "devDependencies": { - "mocha": "3.2.0", - "through2": "2.0.3" + "mocha": "^3.2.0", + "through2": "^2.0.3" }, "scripts": { - "test": "mocha" + "test": "mocha", + "publish-module": "node ../../scripts/publish.js library" }, "license": "Apache-2.0", "engines": { "node": ">=4.0.0" } } +