Skip to content

Commit ed7e6e0

Browse files
authored
fix: export types from protos in esm (#1543)
Fixes https://togithub.com/googleapis/google-cloud-node/issues/5058
1 parent 15d5383 commit ed7e6e0

19 files changed

Lines changed: 190 additions & 0 deletions

File tree

core/generator/gapic-generator-typescript/baselines/asset-esm/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@
1818
"types": "./build/cjs/src/index.d.ts",
1919
"default": "./build/cjs/src/index.cjs"
2020
}
21+
},
22+
"./build/protos/protos": {
23+
"import": {
24+
"types": "./build/protos/protos/protos.d.ts",
25+
"default": "./build/protos/protos/protos.js"
26+
},
27+
"require": {
28+
"types": "./build/protos/protos/protos.d.ts",
29+
"default": "./build/protos/protos/protos.cjs"
30+
}
2131
}
2232
},
2333
"files": [

core/generator/gapic-generator-typescript/baselines/bigquery-storage-esm/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@
1818
"types": "./build/cjs/src/index.d.ts",
1919
"default": "./build/cjs/src/index.cjs"
2020
}
21+
},
22+
"./build/protos/protos": {
23+
"import": {
24+
"types": "./build/protos/protos/protos.d.ts",
25+
"default": "./build/protos/protos/protos.js"
26+
},
27+
"require": {
28+
"types": "./build/protos/protos/protos.d.ts",
29+
"default": "./build/protos/protos/protos.cjs"
30+
}
2131
}
2232
},
2333
"files": [

core/generator/gapic-generator-typescript/baselines/compute-esm/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@
1818
"types": "./build/cjs/src/index.d.ts",
1919
"default": "./build/cjs/src/index.cjs"
2020
}
21+
},
22+
"./build/protos/protos": {
23+
"import": {
24+
"types": "./build/protos/protos/protos.d.ts",
25+
"default": "./build/protos/protos/protos.js"
26+
},
27+
"require": {
28+
"types": "./build/protos/protos/protos.d.ts",
29+
"default": "./build/protos/protos/protos.cjs"
30+
}
2131
}
2232
},
2333
"files": [

core/generator/gapic-generator-typescript/baselines/deprecatedtest-esm/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@
1818
"types": "./build/cjs/src/index.d.ts",
1919
"default": "./build/cjs/src/index.cjs"
2020
}
21+
},
22+
"./build/protos/protos": {
23+
"import": {
24+
"types": "./build/protos/protos/protos.d.ts",
25+
"default": "./build/protos/protos/protos.js"
26+
},
27+
"require": {
28+
"types": "./build/protos/protos/protos.d.ts",
29+
"default": "./build/protos/protos/protos.cjs"
30+
}
2131
}
2232
},
2333
"files": [

core/generator/gapic-generator-typescript/baselines/disable-packing-test-esm/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@
1818
"types": "./build/cjs/src/index.d.ts",
1919
"default": "./build/cjs/src/index.cjs"
2020
}
21+
},
22+
"./build/protos/protos": {
23+
"import": {
24+
"types": "./build/protos/protos/protos.d.ts",
25+
"default": "./build/protos/protos/protos.js"
26+
},
27+
"require": {
28+
"types": "./build/protos/protos/protos.d.ts",
29+
"default": "./build/protos/protos/protos.cjs"
30+
}
2131
}
2232
},
2333
"files": [

core/generator/gapic-generator-typescript/baselines/dlp-esm/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@
1818
"types": "./build/cjs/src/index.d.ts",
1919
"default": "./build/cjs/src/index.cjs"
2020
}
21+
},
22+
"./build/protos/protos": {
23+
"import": {
24+
"types": "./build/protos/protos/protos.d.ts",
25+
"default": "./build/protos/protos/protos.js"
26+
},
27+
"require": {
28+
"types": "./build/protos/protos/protos.d.ts",
29+
"default": "./build/protos/protos/protos.cjs"
30+
}
2131
}
2232
},
2333
"files": [

core/generator/gapic-generator-typescript/baselines/kms-esm/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@
1818
"types": "./build/cjs/src/index.d.ts",
1919
"default": "./build/cjs/src/index.cjs"
2020
}
21+
},
22+
"./build/protos/protos": {
23+
"import": {
24+
"types": "./build/protos/protos/protos.d.ts",
25+
"default": "./build/protos/protos/protos.js"
26+
},
27+
"require": {
28+
"types": "./build/protos/protos/protos.d.ts",
29+
"default": "./build/protos/protos/protos.cjs"
30+
}
2131
}
2232
},
2333
"files": [

core/generator/gapic-generator-typescript/baselines/logging-esm/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@
1818
"types": "./build/cjs/src/index.d.ts",
1919
"default": "./build/cjs/src/index.cjs"
2020
}
21+
},
22+
"./build/protos/protos": {
23+
"import": {
24+
"types": "./build/protos/protos/protos.d.ts",
25+
"default": "./build/protos/protos/protos.js"
26+
},
27+
"require": {
28+
"types": "./build/protos/protos/protos.d.ts",
29+
"default": "./build/protos/protos/protos.cjs"
30+
}
2131
}
2232
},
2333
"files": [

core/generator/gapic-generator-typescript/baselines/monitoring-esm/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@
1818
"types": "./build/cjs/src/index.d.ts",
1919
"default": "./build/cjs/src/index.cjs"
2020
}
21+
},
22+
"./build/protos/protos": {
23+
"import": {
24+
"types": "./build/protos/protos/protos.d.ts",
25+
"default": "./build/protos/protos/protos.js"
26+
},
27+
"require": {
28+
"types": "./build/protos/protos/protos.d.ts",
29+
"default": "./build/protos/protos/protos.cjs"
30+
}
2131
}
2232
},
2333
"files": [

core/generator/gapic-generator-typescript/baselines/naming-esm/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@
1818
"types": "./build/cjs/src/index.d.ts",
1919
"default": "./build/cjs/src/index.cjs"
2020
}
21+
},
22+
"./build/protos/protos": {
23+
"import": {
24+
"types": "./build/protos/protos/protos.d.ts",
25+
"default": "./build/protos/protos/protos.js"
26+
},
27+
"require": {
28+
"types": "./build/protos/protos/protos.d.ts",
29+
"default": "./build/protos/protos/protos.cjs"
30+
}
2131
}
2232
},
2333
"files": [

0 commit comments

Comments
 (0)