Skip to content

Commit

Permalink
fix: export types from protos in esm (#1543)
Browse files Browse the repository at this point in the history
  • Loading branch information
sofisl authored Feb 23, 2024
1 parent cb8f7e5 commit 28f06d6
Show file tree
Hide file tree
Showing 19 changed files with 190 additions and 0 deletions.
10 changes: 10 additions & 0 deletions baselines/asset-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
"types": "./build/cjs/src/index.d.ts",
"default": "./build/cjs/src/index.cjs"
}
},
"./build/protos/protos": {
"import": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.js"
},
"require": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.cjs"
}
}
},
"files": [
Expand Down
10 changes: 10 additions & 0 deletions baselines/bigquery-storage-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
"types": "./build/cjs/src/index.d.ts",
"default": "./build/cjs/src/index.cjs"
}
},
"./build/protos/protos": {
"import": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.js"
},
"require": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.cjs"
}
}
},
"files": [
Expand Down
10 changes: 10 additions & 0 deletions baselines/compute-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
"types": "./build/cjs/src/index.d.ts",
"default": "./build/cjs/src/index.cjs"
}
},
"./build/protos/protos": {
"import": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.js"
},
"require": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.cjs"
}
}
},
"files": [
Expand Down
10 changes: 10 additions & 0 deletions baselines/deprecatedtest-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
"types": "./build/cjs/src/index.d.ts",
"default": "./build/cjs/src/index.cjs"
}
},
"./build/protos/protos": {
"import": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.js"
},
"require": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.cjs"
}
}
},
"files": [
Expand Down
10 changes: 10 additions & 0 deletions baselines/disable-packing-test-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
"types": "./build/cjs/src/index.d.ts",
"default": "./build/cjs/src/index.cjs"
}
},
"./build/protos/protos": {
"import": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.js"
},
"require": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.cjs"
}
}
},
"files": [
Expand Down
10 changes: 10 additions & 0 deletions baselines/dlp-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
"types": "./build/cjs/src/index.d.ts",
"default": "./build/cjs/src/index.cjs"
}
},
"./build/protos/protos": {
"import": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.js"
},
"require": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.cjs"
}
}
},
"files": [
Expand Down
10 changes: 10 additions & 0 deletions baselines/kms-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
"types": "./build/cjs/src/index.d.ts",
"default": "./build/cjs/src/index.cjs"
}
},
"./build/protos/protos": {
"import": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.js"
},
"require": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.cjs"
}
}
},
"files": [
Expand Down
10 changes: 10 additions & 0 deletions baselines/logging-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
"types": "./build/cjs/src/index.d.ts",
"default": "./build/cjs/src/index.cjs"
}
},
"./build/protos/protos": {
"import": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.js"
},
"require": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.cjs"
}
}
},
"files": [
Expand Down
10 changes: 10 additions & 0 deletions baselines/monitoring-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
"types": "./build/cjs/src/index.d.ts",
"default": "./build/cjs/src/index.cjs"
}
},
"./build/protos/protos": {
"import": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.js"
},
"require": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.cjs"
}
}
},
"files": [
Expand Down
10 changes: 10 additions & 0 deletions baselines/naming-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
"types": "./build/cjs/src/index.d.ts",
"default": "./build/cjs/src/index.cjs"
}
},
"./build/protos/protos": {
"import": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.js"
},
"require": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.cjs"
}
}
},
"files": [
Expand Down
10 changes: 10 additions & 0 deletions baselines/redis-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
"types": "./build/cjs/src/index.d.ts",
"default": "./build/cjs/src/index.cjs"
}
},
"./build/protos/protos": {
"import": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.js"
},
"require": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.cjs"
}
}
},
"files": [
Expand Down
10 changes: 10 additions & 0 deletions baselines/routingtest-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
"types": "./build/cjs/src/index.d.ts",
"default": "./build/cjs/src/index.cjs"
}
},
"./build/protos/protos": {
"import": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.js"
},
"require": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.cjs"
}
}
},
"files": [
Expand Down
10 changes: 10 additions & 0 deletions baselines/showcase-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
"types": "./build/cjs/src/index.d.ts",
"default": "./build/cjs/src/index.cjs"
}
},
"./build/protos/protos": {
"import": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.js"
},
"require": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.cjs"
}
}
},
"files": [
Expand Down
10 changes: 10 additions & 0 deletions baselines/showcase-legacy-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
"types": "./build/cjs/src/index.d.ts",
"default": "./build/cjs/src/index.cjs"
}
},
"./build/protos/protos": {
"import": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.js"
},
"require": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.cjs"
}
}
},
"files": [
Expand Down
10 changes: 10 additions & 0 deletions baselines/tasks-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
"types": "./build/cjs/src/index.d.ts",
"default": "./build/cjs/src/index.cjs"
}
},
"./build/protos/protos": {
"import": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.js"
},
"require": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.cjs"
}
}
},
"files": [
Expand Down
10 changes: 10 additions & 0 deletions baselines/texttospeech-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
"types": "./build/cjs/src/index.d.ts",
"default": "./build/cjs/src/index.cjs"
}
},
"./build/protos/protos": {
"import": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.js"
},
"require": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.cjs"
}
}
},
"files": [
Expand Down
10 changes: 10 additions & 0 deletions baselines/translate-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
"types": "./build/cjs/src/index.d.ts",
"default": "./build/cjs/src/index.cjs"
}
},
"./build/protos/protos": {
"import": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.js"
},
"require": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.cjs"
}
}
},
"files": [
Expand Down
10 changes: 10 additions & 0 deletions baselines/videointelligence-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
"types": "./build/cjs/src/index.d.ts",
"default": "./build/cjs/src/index.cjs"
}
},
"./build/protos/protos": {
"import": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.js"
},
"require": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.cjs"
}
}
},
"files": [
Expand Down
10 changes: 10 additions & 0 deletions templates/esm/typescript_gapic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@
"types": "./build/cjs/src/index.d.ts",
"default": "./build/cjs/src/index.cjs"
}
},
"./build/protos/protos": {
"import": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.js"
},
"require": {
"types": "./build/protos/protos/protos.d.ts",
"default": "./build/protos/protos/protos.cjs"
}
}
},
"files": [
Expand Down

0 comments on commit 28f06d6

Please sign in to comment.