Skip to content

Commit d49b20b

Browse files
committed
update ts template to remove supportsES6 option
1 parent ce3bd1f commit d49b20b

File tree

66 files changed

+94
-88
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+94
-88
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"experimentalDecorators": true,
55
"noImplicitAny": false,
66
"suppressImplicitAnyIndexErrors": true,
7-
"target": "{{#supportsES6}}es6{{/supportsES6}}{{^supportsES6}}es5{{/supportsES6}}",
8-
"module": "{{#supportsES6}}es6{{/supportsES6}}{{^supportsES6}}commonjs{{/supportsES6}}",
7+
"target": "es6",
8+
"module": "es6",
99
"moduleResolution": "node",
1010
"removeComments": true,
1111
"sourceMap": true,

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
"browser": "./dist/Api.js",
1111
"typings": "./dist/Api.d.ts",
1212
"dependencies": {
13-
{{^supportsES6}}"core-js": "^2.4.0",
14-
{{/supportsES6}}"isomorphic-fetch": "^2.2.1",
13+
"isomorphic-fetch": "^2.2.1",
1514
"aurelia-framework": "^1.3.1",
1615
"aurelia-http-client": "^1.3.0"
1716
},

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@
1717
"license": "Unlicense",
1818
"main": "./dist/index.js",
1919
"typings": "./dist/index.d.ts",
20-
{{#supportsES6}}
2120
"module": "./dist/esm/index.js",
2221
"sideEffects": false,
23-
{{/supportsES6}}
2422
"scripts": {
25-
"build": "tsc {{#supportsES6}}&& tsc -p tsconfig.esm.json{{/supportsES6}}",
23+
"build": "tsc && tsc -p tsconfig.esm.json",
2624
"prepare": "npm run build"
2725
},
2826
"dependencies": {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"declaration": true,
4-
"target": "{{#supportsES6}}ES6{{/supportsES6}}{{^supportsES6}}ES5{{/supportsES6}}",
4+
"target": "ES6",
55
"module": "commonjs",
66
"noImplicitAny": true,
77
"outDir": "dist",

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@
1313
{{^packageAsSourceOnlyLibrary}}
1414
"main": "./dist/index.js",
1515
"typings": "./dist/index.d.ts",
16-
{{#supportsES6}}
1716
"module": "./dist/esm/index.js",
1817
"sideEffects": false,
19-
{{/supportsES6}}
2018
"scripts": {
21-
"build": "tsc{{#supportsES6}} && tsc -p tsconfig.esm.json{{/supportsES6}}"{{^sagasAndRecords}},
19+
"build": "tsc && tsc -p tsconfig.esm.json"{{^sagasAndRecords}},
2220
"prepare": "npm run build"{{/sagasAndRecords}}
2321
},
2422
{{/packageAsSourceOnlyLibrary}}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"declaration": true,
4-
"target": "{{#supportsES6}}es6{{/supportsES6}}{{^supportsES6}}es5{{/supportsES6}}",
4+
"target": "es6",
55
{{#sagasAndRecords}}
66
"strict": true,
77
{{/sagasAndRecords}}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"experimentalDecorators": true,
55
"noImplicitAny": false,
66
"suppressImplicitAnyIndexErrors": true,
7-
"target": "{{#supportsES6}}es6{{/supportsES6}}{{^supportsES6}}es5{{/supportsES6}}",
8-
"module": "{{#supportsES6}}es6{{/supportsES6}}{{^supportsES6}}commonjs{{/supportsES6}}",
7+
"target": "es6",
8+
"module": "es6",
99
"moduleResolution": "node",
1010
"removeComments": true,
1111
"sourceMap": true,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"module": "commonjs",
44
"noImplicitAny": false,
55
"suppressImplicitAnyIndexErrors": true,
6-
"target": "{{#supportsES6}}ES6{{/supportsES6}}{{^supportsES6}}ES5{{/supportsES6}}",
6+
"target": "ES6",
77
"moduleResolution": "node",
88
"removeComments": true,
99
"sourceMap": true,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"removeComments": true,
66
"emitDecoratorMetadata": true,
77
"experimentalDecorators": true,
8-
"target": "{{#supportsES6}}es6{{/supportsES6}}{{^supportsES6}}es5{{/supportsES6}}",
8+
"target": "es6",
99
"sourceMap": true,
1010
"outDir": "./dist",
1111
"baseUrl": "./",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"module": "commonjs",
44
"noImplicitAny": false,
55
"suppressImplicitAnyIndexErrors": true,
6-
"target": "{{#supportsES6}}ES6{{/supportsES6}}{{^supportsES6}}ES5{{/supportsES6}}",
6+
"target": "ES6",
77
"allowSyntheticDefaultImports": true,
88
"esModuleInterop": true,
99
"strict": true,

0 commit comments

Comments
 (0)