Skip to content

Commit d31108c

Browse files
committed
add option to skip type module
1 parent dcae9a3 commit d31108c

File tree

8 files changed

+2
-14
lines changed

8 files changed

+2
-14
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
],
1616
"license": "Unlicense",
1717
"main": "./dist/index.js",
18+
{{#supportTypeModule}}
1819
"type": "module",
1920
"module": "./dist/index.js",
21+
{{/supportTypeModule}}
2022
"exports": {
2123
".": {
2224
"import": "./dist/index.js",

samples/client/others/typescript/builds/with-unique-items/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
],
1616
"license": "Unlicense",
1717
"main": "./dist/index.js",
18-
"type": "module",
19-
"module": "./dist/index.js",
2018
"exports": {
2119
".": {
2220
"import": "./dist/index.js",

samples/openapi3/client/petstore/typescript/builds/browser/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
],
1616
"license": "Unlicense",
1717
"main": "./dist/index.js",
18-
"type": "module",
19-
"module": "./dist/index.js",
2018
"exports": {
2119
".": {
2220
"import": "./dist/index.js",

samples/openapi3/client/petstore/typescript/builds/composed-schemas/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
],
1616
"license": "Unlicense",
1717
"main": "./dist/index.js",
18-
"type": "module",
19-
"module": "./dist/index.js",
2018
"exports": {
2119
".": {
2220
"import": "./dist/index.js",

samples/openapi3/client/petstore/typescript/builds/default/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
],
1616
"license": "Unlicense",
1717
"main": "./dist/index.js",
18-
"type": "module",
19-
"module": "./dist/index.js",
2018
"exports": {
2119
".": {
2220
"import": "./dist/index.js",

samples/openapi3/client/petstore/typescript/builds/inversify/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
],
1616
"license": "Unlicense",
1717
"main": "./dist/index.js",
18-
"type": "module",
19-
"module": "./dist/index.js",
2018
"exports": {
2119
".": {
2220
"import": "./dist/index.js",

samples/openapi3/client/petstore/typescript/builds/jquery/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
],
1616
"license": "Unlicense",
1717
"main": "./dist/index.js",
18-
"type": "module",
19-
"module": "./dist/index.js",
2018
"exports": {
2119
".": {
2220
"import": "./dist/index.js",

samples/openapi3/client/petstore/typescript/builds/object_params/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
],
1616
"license": "Unlicense",
1717
"main": "./dist/index.js",
18-
"type": "module",
19-
"module": "./dist/index.js",
2018
"exports": {
2119
".": {
2220
"import": "./dist/index.js",

0 commit comments

Comments
 (0)