Skip to content

Commit 5c19425

Browse files
feat: include gapic and grafeas, add routing.proto, update protos (#372)
1 parent 2f9d693 commit 5c19425

File tree

3 files changed

+5
-66
lines changed

3 files changed

+5
-66
lines changed

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
"main": "./build/src/index.js",
1212
"types": "./build/src/index.d.ts",
1313
"files": [
14+
"gapic/",
1415
"google/",
16+
"grafeas/",
1517
"build/src"
1618
],
1719
"keywords": [

test/prepublish.test.ts

-65
This file was deleted.

tools/prepublish.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import * as fs from 'fs';
1616
import * as got from 'got';
1717
import * as path from 'path';
1818

19+
const protoFolders = ['google', 'grafeas', 'gapic'];
20+
1921
// eslint-disable-next-line @typescript-eslint/no-var-requires
2022
const DecompressZip = require('decompress-zip');
2123

@@ -49,7 +51,7 @@ const extractAsync = promisify(extract);
4951
const execAsync = promisify(require('child_process').exec);
5052

5153
async function main() {
52-
await execAsync('rm -rf google');
54+
await execAsync(`rm -rf ${protoFolders.join(' ')}`);
5355

5456
await extractAsync(
5557
'https://github.com/googleapis/googleapis/archive/master.zip',

0 commit comments

Comments
 (0)