Skip to content

Commit 8acbfda

Browse files
committed
d.js issue and commonjs module in tsconfig for esm dual support
1 parent 4e48747 commit 8acbfda

File tree

31 files changed

+70
-35
lines changed

31 files changed

+70
-35
lines changed

modules/openapi-generator/src/main/resources/typescript/package.mustache

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,11 @@
2424
{{/supportsES6}}
2525
"exports": {
2626
".": {
27-
{{#supportsES6}}
2827
"import": "./dist/index.js",
29-
{{/supportsES6}}
3028
{{^supportsES6}}
3129
"require": "./dist/index.js",
3230
{{/supportsES6}}
33-
"types": "./dist/index.d.js"
31+
"types": "./dist/index.d.ts"
3432
}
3533
},
3634
"files": [

modules/openapi-generator/src/main/resources/typescript/tsconfig.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
{{/supportsES6}}
99
{{^supportsES6}}
1010
"target": "es5",
11+
"module": "commonjs",
1112
{{/supportsES6}}
1213
"moduleResolution": "node",
1314
"declaration": true,

samples/client/echo_api/typescript/build/package.json

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/client/echo_api/typescript/build/tsconfig.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/client/others/typescript/builds/array-of-lists/package.json

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/client/others/typescript/builds/array-of-lists/tsconfig.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/client/others/typescript/builds/enum-single-value/package.json

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/client/others/typescript/builds/enum-single-value/tsconfig.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/client/others/typescript/builds/null-types-simple/package.json

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/client/others/typescript/builds/null-types-simple/tsconfig.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)