Skip to content

Commit a7e15b6

Browse files
fix publish script (googleapis#1480)
1 parent 5f8a72c commit a7e15b6

File tree

20 files changed

+89
-181
lines changed

20 files changed

+89
-181
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ addons:
1313
packages:
1414
- g++-4.8
1515
before_install:
16-
- npm install shelljs
17-
- node ./scripts/link.js
1816
- export CXX=g++-4.8
1917
- "$CXX --version"
2018
script: "./scripts/build.sh"

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"lodash.template": "^4.3.0",
1616
"mitm": "^1.1.0",
1717
"mkdirp": "^0.5.1",
18-
"mocha": "^3.0.1",
18+
"mocha": "^2.5.3",
1919
"propprop": "^0.3.0",
2020
"proxyquire": "^1.7.10",
2121
"request": "^2.70.0",
@@ -25,9 +25,7 @@
2525
"through2": "^2.0.0"
2626
},
2727
"scripts": {
28-
"link-modules": "node ./scripts/link.js",
29-
"install-module-dependencies": "node ./scripts/install.js",
30-
"postinstall": "npm run link-modules && npm run install-module-dependencies",
28+
"postinstall": "node ./scripts/install.js",
3129
"docs": "node ./scripts/docs/packages.js",
3230
"bundle": "node ./scripts/docs/bundle.js",
3331
"lint": "jshint scripts/ packages/ system-test/ test/ && jscs packages/ system-test/ test/",

packages/bigquery/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@google-cloud/bigquery",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"author": "Google Inc.",
55
"description": "Google BigQuery Client Library for Node.js",
66
"contributors": [
@@ -31,7 +31,7 @@
3131
],
3232
"main": "./src/index.js",
3333
"files": [
34-
"./src/*",
34+
"src",
3535
"AUTHORS",
3636
"CONTRIBUTORS",
3737
"COPYING"
@@ -68,7 +68,7 @@
6868
"proxyquire": "^1.7.10"
6969
},
7070
"scripts": {
71-
"publish": "node ../../scripts/publish.js bigquery",
71+
"publish-module": "node ../../scripts/publish.js bigquery",
7272
"test": "mocha test/*.js",
7373
"system-test": "mocha system-test/*.js --no-timeouts --bail"
7474
},

packages/bigtable/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@google-cloud/bigtable",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"author": "Google Inc.",
55
"description": "Google Cloud Bigtable Client Library for Node.js",
66
"contributors": [
@@ -31,7 +31,7 @@
3131
],
3232
"main": "./src/index.js",
3333
"files": [
34-
"./src/*",
34+
"src",
3535
"AUTHORS",
3636
"CONTRIBUTORS",
3737
"COPYING"
@@ -74,7 +74,7 @@
7474
"sinon": "^1.17.4"
7575
},
7676
"scripts": {
77-
"publish": "node ../../scripts/publish.js bigtable",
77+
"publish-module": "node ../../scripts/publish.js bigtable",
7878
"test": "mocha test/*.js",
7979
"system-test": "mocha system-test/*.js --no-timeouts --bail"
8080
},

packages/common/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@google-cloud/common",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"author": "Google Inc.",
55
"description": "Common components for Google Cloud APIs Node.js Client Libraries",
66
"contributors": [
@@ -31,7 +31,7 @@
3131
],
3232
"main": "./src/index.js",
3333
"files": [
34-
"./src/*",
34+
"src",
3535
"AUTHORS",
3636
"CONTRIBUTORS",
3737
"COPYING"
@@ -66,7 +66,7 @@
6666
"sinon": "^1.17.4"
6767
},
6868
"scripts": {
69-
"publish": "node ../../scripts/publish.js common",
69+
"publish-module": "node ../../scripts/publish.js common",
7070
"test": "mocha test/*.js"
7171
},
7272
"license": "Apache-2.0",

packages/compute/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@google-cloud/compute",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"author": "Google Inc.",
55
"description": "Google Compute Engine Client Library for Node.js",
66
"contributors": [
@@ -31,7 +31,7 @@
3131
],
3232
"main": "./src/index.js",
3333
"files": [
34-
"./src/*",
34+
"src",
3535
"AUTHORS",
3636
"CONTRIBUTORS",
3737
"COPYING"
@@ -67,7 +67,7 @@
6767
"proxyquire": "^1.7.10"
6868
},
6969
"scripts": {
70-
"publish": "node ../../scripts/publish.js compute",
70+
"publish-module": "node ../../scripts/publish.js compute",
7171
"test": "mocha test/*.js",
7272
"system-test": "mocha system-test/*.js --no-timeouts --bail"
7373
},

packages/datastore/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@google-cloud/datastore",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"author": "Google Inc.",
55
"description": "Google Cloud Datastore Client Library for Node.js",
66
"contributors": [
@@ -31,7 +31,7 @@
3131
],
3232
"main": "./src/index.js",
3333
"files": [
34-
"./src/*",
34+
"src",
3535
"AUTHORS",
3636
"CONTRIBUTORS",
3737
"COPYING"
@@ -70,7 +70,7 @@
7070
"through2": "^2.0.0"
7171
},
7272
"scripts": {
73-
"publish": "node ../../scripts/publish.js datastore",
73+
"publish-module": "node ../../scripts/publish.js datastore",
7474
"test": "mocha test/*.js",
7575
"system-test": "mocha system-test/*.js --no-timeouts --bail"
7676
},

packages/dns/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@google-cloud/dns",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"author": "Google Inc.",
55
"description": "Google Cloud DNS Client Library for Node.js",
66
"contributors": [
@@ -31,7 +31,7 @@
3131
],
3232
"main": "./src/index.js",
3333
"files": [
34-
"./src/*",
34+
"src",
3535
"AUTHORS",
3636
"CONTRIBUTORS",
3737
"COPYING"
@@ -66,7 +66,7 @@
6666
"tmp": "0.0.27"
6767
},
6868
"scripts": {
69-
"publish": "../../scripts/publish dns",
69+
"publish-module": "node ../../scripts/publish.js dns",
7070
"test": "mocha test/*.js",
7171
"system-test": "mocha system-test/*.js --no-timeouts --bail"
7272
},

packages/google-cloud/package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "google-cloud",
3-
"version": "0.37.0",
3+
"version": "0.38.3",
44
"author": "Google Inc.",
55
"description": "Google Cloud APIs Client Library for Node.js",
66
"contributors": [
@@ -35,7 +35,7 @@
3535
],
3636
"main": "./src/index.js",
3737
"files": [
38-
"./src/*",
38+
"src",
3939
"AUTHORS",
4040
"CONTRIBUTORS",
4141
"COPYING"
@@ -94,25 +94,25 @@
9494
],
9595
"dependencies": {
9696
"extend": "^3.0.0",
97-
"@google-cloud/bigquery": "0.1.0",
98-
"@google-cloud/bigtable": "0.1.0",
99-
"@google-cloud/compute": "0.1.0",
100-
"@google-cloud/datastore": "0.1.0",
101-
"@google-cloud/dns": "0.1.0",
102-
"@google-cloud/language": "0.1.0",
103-
"@google-cloud/logging": "0.1.0",
104-
"@google-cloud/prediction": "0.1.0",
105-
"@google-cloud/pubsub": "0.1.0",
106-
"@google-cloud/resource": "0.1.0",
107-
"@google-cloud/storage": "0.1.0",
108-
"@google-cloud/translate": "0.1.0",
109-
"@google-cloud/vision": "0.1.0"
97+
"@google-cloud/bigquery": "^0.1.1",
98+
"@google-cloud/bigtable": "^0.1.1",
99+
"@google-cloud/compute": "^0.1.1",
100+
"@google-cloud/datastore": "^0.1.1",
101+
"@google-cloud/dns": "^0.1.1",
102+
"@google-cloud/language": "^0.1.1",
103+
"@google-cloud/logging": "^0.1.1",
104+
"@google-cloud/prediction": "^0.1.1",
105+
"@google-cloud/pubsub": "^0.1.1",
106+
"@google-cloud/resource": "^0.1.1",
107+
"@google-cloud/storage": "^0.1.1",
108+
"@google-cloud/translate": "^0.1.1",
109+
"@google-cloud/vision": "^0.1.1"
110110
},
111111
"devDependencies": {
112112
"proxyquire": "^1.7.10"
113113
},
114114
"scripts": {
115-
"publish": "node ../../scripts/publish.js google-cloud",
115+
"publish-module": "node ../../scripts/publish.js google-cloud",
116116
"test": "mocha test/*.js",
117117
"system-test": "mocha system-test/*.js --no-timeouts --bail"
118118
},

packages/language/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@google-cloud/language",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"author": "Google Inc.",
55
"description": "Google Cloud Natural Language Client Library for Node.js",
66
"contributors": [
@@ -31,7 +31,7 @@
3131
],
3232
"main": "./src/index.js",
3333
"files": [
34-
"./src/*",
34+
"src",
3535
"AUTHORS",
3636
"CONTRIBUTORS",
3737
"COPYING"
@@ -66,7 +66,7 @@
6666
"proxyquire": "^1.7.10"
6767
},
6868
"scripts": {
69-
"publish": "../../scripts/publish.js language",
69+
"publish-module": "node ../../scripts/publish.js language",
7070
"test": "mocha test/*.js",
7171
"system-test": "mocha system-test/*.js --no-timeouts --bail"
7272
},

packages/logging/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@google-cloud/logging",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"author": "Google Inc.",
55
"description": "Google Cloud Logging Client Library for Node.js",
66
"contributors": [
@@ -31,7 +31,7 @@
3131
],
3232
"main": "./src/index.js",
3333
"files": [
34-
"./src/*",
34+
"src",
3535
"AUTHORS",
3636
"CONTRIBUTORS",
3737
"COPYING"
@@ -69,7 +69,7 @@
6969
"proxyquire": "^1.7.10"
7070
},
7171
"scripts": {
72-
"publish": "node ../../scripts/publish.js logging",
72+
"publish-module": "node ../../scripts/publish.js logging",
7373
"test": "mocha test/*.js",
7474
"system-test": "mocha system-test/*.js --no-timeouts --bail"
7575
},

packages/prediction/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@google-cloud/prediction",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"author": "Google Inc.",
55
"description": "Google Cloud Prediction Client Library for Node.js",
66
"contributors": [
@@ -31,7 +31,7 @@
3131
],
3232
"main": "./src/index.js",
3333
"files": [
34-
"./src/*",
34+
"src",
3535
"AUTHORS",
3636
"CONTRIBUTORS",
3737
"COPYING"
@@ -69,7 +69,7 @@
6969
"proxyquire": "^1.7.10"
7070
},
7171
"scripts": {
72-
"publish": "node ../../scripts/publish.js prediction",
72+
"publish-module": "node ../../scripts/publish.js prediction",
7373
"test": "mocha test/*.js",
7474
"system-test": "mocha system-test/*.js --no-timeouts --bail"
7575
},

packages/pubsub/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@google-cloud/pubsub",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"author": "Google Inc.",
55
"description": "Google Cloud Pub/Sub Client Library for Node.js",
66
"contributors": [
@@ -31,7 +31,7 @@
3131
],
3232
"main": "./src/index.js",
3333
"files": [
34-
"./src/*",
34+
"src",
3535
"AUTHORS",
3636
"CONTRIBUTORS",
3737
"COPYING"
@@ -64,7 +64,7 @@
6464
"proxyquire": "^1.7.10"
6565
},
6666
"scripts": {
67-
"publish": "node ../../scripts/publish.js pubsub",
67+
"publish-module": "node ../../scripts/publish.js pubsub",
6868
"test": "mocha test/*.js",
6969
"system-test": "mocha system-test/*.js --no-timeouts --bail"
7070
},

packages/resource/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@google-cloud/resource",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"author": "Google Inc.",
55
"description": "Google Cloud Resource Client Library for Node.js",
66
"contributors": [
@@ -31,7 +31,7 @@
3131
],
3232
"main": "./src/index.js",
3333
"files": [
34-
"./src/*",
34+
"src",
3535
"AUTHORS",
3636
"CONTRIBUTORS",
3737
"COPYING"
@@ -61,7 +61,7 @@
6161
"proxyquire": "^1.7.10"
6262
},
6363
"scripts": {
64-
"publish": "node ../../scripts/publish.js resource",
64+
"publish-module": "node ../../scripts/publish.js resource",
6565
"test": "mocha test/*.js",
6666
"system-test": "mocha system-test/*.js --no-timeouts --bail"
6767
},

packages/storage/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@google-cloud/storage",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"author": "Google Inc.",
55
"description": "Google Cloud Storage Client Library for Node.js",
66
"contributors": [
@@ -31,7 +31,7 @@
3131
],
3232
"main": "./src/index.js",
3333
"files": [
34-
"./src/*",
34+
"src",
3535
"AUTHORS",
3636
"CONTRIBUTORS",
3737
"COPYING"
@@ -78,7 +78,7 @@
7878
"tmp": "0.0.27"
7979
},
8080
"scripts": {
81-
"publish": "node ../../scripts/publish.js storage",
81+
"publish-module": "node ../../scripts/publish.js storage",
8282
"test": "mocha test/*.js",
8383
"system-test": "mocha system-test/*.js --no-timeouts --bail"
8484
},

0 commit comments

Comments
 (0)