|
26 | 26 | "build/templates" |
27 | 27 | ], |
28 | 28 | "scripts": { |
29 | | - "baseline": "node bazel-bin/typescript/tools/update-baselines.js", |
30 | | - "clean": "bazelisk clean && rm -rf build", |
31 | | - "codecov": "c8 --reporter=lcov mocha bazel-bin/typescript/test/unit && c8 report", |
32 | | - "compile": "bazelisk build //...", |
| 29 | + "baseline": "node build/typescript/tools/update-baselines.js", |
| 30 | + "clean": "rm -rf build", |
| 31 | + "codecov": "c8 --reporter=lcov mocha build/typescript/test/unit && c8 report", |
| 32 | + "compile": "tsc && chmod +x build/typescript/src/gapic-generator-typescript.js build/typescript/src/protoc-plugin.js && cp -rf templates protos build/", |
33 | 33 | "compile-protos-json": "pbjs -t json -o protos/protos.json -p node_modules/google-gax/build/protos -p protos google/api/annotations.proto google/api/field_behavior.proto google/api/field_info.proto google/api/resource.proto google/api/routing.proto google/longrunning/operations.proto google/protobuf/compiler/plugin.proto service_config.proto snippet_index.proto", |
34 | 34 | "compile-protos-js": "pbjs -t static-module -o protos/index.js -p node_modules/google-gax/build/protos -p protos google/api/annotations.proto google/api/field_behavior.proto google/api/field_info.proto google/api/resource.proto google/api/routing.proto google/longrunning/operations.proto google/protobuf/compiler/plugin.proto service_config.proto snippet_index.proto", |
35 | 35 | "compile-protos-dts": "pbts protos/index.js -o protos/index.d.ts", |
36 | 36 | "docker-test": "sh docker/test.sh", |
37 | 37 | "fix": "gts fix", |
38 | | - "js-test-application": "mocha bazel-bin/typescript/test/test-application/test-js --timeout 600000", |
39 | 38 | "lint": "gts check", |
40 | | - "prepack:cjs": "npm run compile && cd templates/cjs/typescript_gapic && rm -f package.json.njk && mv package.json package.json.njk && cd ../../.. && mkdir -p build && cp -rf bazel-bin/typescript templates protos build/", |
41 | | - "prepack:esm": "npm run compile && cd templates/esm/typescript_gapic && rm -f package.json.njk && mv package.json package.json.njk && cd ../../.. && mkdir -p build && cp -rf bazel-bin/typescript templates protos build/", |
| 39 | + "prepack:cjs": "npm run compile", |
| 40 | + "prepack:esm": "npm run compile", |
42 | 41 | "prepack": "npm run prepack:cjs && npm run prepack:esm", |
43 | | - "postpack:cjs": "cd templates/cjs/typescript_gapic && mv package.json.njk package.json && ln -s package.json package.json.njk", |
44 | | - "postpack:esm": "cd templates/esm/typescript_gapic && mv package.json.njk package.json && ln -s package.json package.json.njk", |
45 | | - "postpack": "npm run postpack:cjs && npm run postpack:esm", |
46 | | - "test": "bazelisk test --test_output=errors //:unit_tests", |
47 | | - "ts-test-application": "mocha bazel-bin/typescript/test/test-application/test-ts --timeout 600000", |
| 42 | + "test": "mocha build/typescript/test/unit", |
48 | 43 | "system-test": "echo 'no system test'", |
49 | 44 | "samples-test": "echo 'no samples test'", |
50 | 45 | "docs": "echo no docs needed", |
|
0 commit comments