|
6 | 6 | "types": "build/src/index.d.ts", |
7 | 7 | "files": [ |
8 | 8 | "build/src", |
9 | | - "build/tools/compileProtos.js", |
10 | | - "build/tools/minify.js", |
11 | | - "build/protos/" |
| 9 | + "build/protos/", |
| 10 | + "!build/src/**/*.map" |
12 | 11 | ], |
13 | | - "bin": { |
14 | | - "compileProtos": "build/tools/compileProtos.js", |
15 | | - "minifyProtoJson": "build/tools/minify.js" |
16 | | - }, |
17 | 12 | "dependencies": { |
18 | 13 | "@grpc/grpc-js": "~1.8.0", |
19 | 14 | "@grpc/proto-loader": "^0.7.0", |
20 | 15 | "@types/long": "^4.0.0", |
21 | | - "@types/rimraf": "^3.0.2", |
22 | 16 | "abort-controller": "^3.0.0", |
23 | 17 | "duplexify": "^4.0.0", |
24 | 18 | "fast-text-encoding": "^1.0.3", |
|
28 | 22 | "object-hash": "^3.0.0", |
29 | 23 | "proto3-json-serializer": "^1.0.0", |
30 | 24 | "protobufjs": "7.2.3", |
31 | | - "protobufjs-cli": "1.1.1", |
32 | 25 | "retry-request": "^5.0.0" |
33 | 26 | }, |
34 | 27 | "devDependencies": { |
|
40 | 33 | "@types/object-hash": "^3.0.0", |
41 | 34 | "@types/proxyquire": "^1.3.28", |
42 | 35 | "@types/pumpify": "^1.4.1", |
| 36 | + "@types/rimraf": "^3.0.2", |
43 | 37 | "@types/sinon": "^10.0.0", |
44 | 38 | "@types/uglify-js": "^3.17.0", |
45 | 39 | "c8": "^7.0.0", |
46 | 40 | "codecov": "^3.1.0", |
47 | 41 | "execa": "^5.0.0", |
| 42 | + "gapic-tools": "^0.1.7", |
48 | 43 | "google-proto-files": "^3.0.0", |
49 | 44 | "gts": "^3.1.0", |
50 | 45 | "linkinator": "^4.0.0", |
|
53 | 48 | "mocha": "^9.0.0", |
54 | 49 | "ncp": "^2.0.0", |
55 | 50 | "null-loader": "^4.0.0", |
| 51 | + "protobufjs-cli": "1.1.1", |
56 | 52 | "proxyquire": "^2.0.1", |
57 | 53 | "pumpify": "^2.0.0", |
58 | 54 | "rimraf": "^3.0.2", |
|
69 | 65 | "docs": "compodoc src/", |
70 | 66 | "pretest": "npm run prepare", |
71 | 67 | "test": "c8 mocha build/test/unit", |
72 | | - "lint": "gts check", |
| 68 | + "lint": "gts check src samples test", |
73 | 69 | "clean": "gts clean", |
74 | 70 | "compile": "tsc -p . && cp src/*.json build/src && cp -r test/fixtures build/test && cp -r protos build/", |
75 | 71 | "compile-operation-protos": "pbjs -t json google/longrunning/operations.proto -p ./protos > protos/operations.json && pbjs -t static-module -r operations_protos google/longrunning/operations.proto -p ./protos > protos/operations.js && pbts protos/operations.js -o protos/operations.d.ts", |
|
80 | 76 | "compile-http-protos": "pbjs -t static-module -r http_proto --keep-case google/api/http.proto -p ./protos > protos/http.js && pbts protos/http.js -o protos/http.d.ts", |
81 | 77 | "compile-showcase-proto": "pbjs -t json google/showcase/v1beta1/echo.proto google/showcase/v1beta1/identity.proto google/showcase/v1beta1/messaging.proto google/showcase/v1beta1/testing.proto -p ./protos > test/fixtures/google-gax-packaging-test-app/protos/protos.json && pbjs -t static-module -r showcase_protos google/showcase/v1beta1/echo.proto google/showcase/v1beta1/identity.proto google/showcase/v1beta1/messaging.proto google/showcase/v1beta1/testing.proto -p ./protos > test/fixtures/google-gax-packaging-test-app/protos/protos.js && pbts test/fixtures/google-gax-packaging-test-app/protos/protos.js -o test/fixtures/google-gax-packaging-test-app/protos/protos.d.ts", |
82 | 78 | "fix": "gts fix", |
83 | | - "prepare": "npm run compile && node ./build/tools/prepublish.js && mkdirp build/protos && cp -r protos/* build/protos/ && npm run minify-proto-json", |
| 79 | + "prepare": "npm run compile && prepublishProtos . && mkdirp build/protos && cp -r protos/* build/protos/ && npm run minify-proto-json", |
84 | 80 | "system-test": "c8 mocha build/test/system-test --timeout 600000 && npm run test-application", |
85 | 81 | "samples-test": "cd samples/ && npm link ../ && npm test && cd ../", |
86 | 82 | "docs-test": "linkinator docs", |
|
89 | 85 | "test-application": "cd test/test-application && npm run prefetch && npm install && npm start", |
90 | 86 | "prelint": "cd samples; npm link ../; npm install", |
91 | 87 | "precompile": "gts clean", |
92 | | - "update-protos": "node ./build/tools/listProtos.js", |
93 | | - "minify-proto-json": "node ./build/tools/minify.js" |
| 88 | + "update-protos": "listProtos .", |
| 89 | + "minify-proto-json": "minifyProtoJson" |
94 | 90 | }, |
95 | 91 | "repository": "googleapis/gax-nodejs", |
96 | 92 | "keywords": [ |
|
103 | 99 | }, |
104 | 100 | "homepage": "https://github.com/googleapis/gax-nodejs#readme", |
105 | 101 | "engines": { |
106 | | - "node": ">=12" |
| 102 | + "node": ">=14" |
107 | 103 | }, |
108 | 104 | "browser": "build/src/fallback.js" |
109 | 105 | } |
0 commit comments