10BC0 replace deprecated 'typings' field with standard 'types' in package.j… · OpenAPITools/openapi-generator@dc0d5c6 · GitHub
[go: up one dir, main page]

Skip to content

Commit dc0d5c6

Browse files
replace deprecated 'typings' field with standard 'types' in package.json (#21371)
* replace deprecated 'typings' field with standard 'types' in package.json * regenerate samples after replacing 'typings' with 'types' field --------- Co-authored-by: winiga <winiga@rocketmail.com>
1 parent 89edad5 commit dc0d5c6

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
{{/packageAsSourceOnlyLibrary}}
1616
{{^packageAsSourceOnlyLibrary}}
1717
"main": "./dist/index.js",
18-
"typings": "./dist/index.d.ts",
18+
"types": "./dist/index.d.ts",
1919
{{#supportsES6}}
2020
"module": "./dist/esm/index.js",
2121
"sideEffects": false,

samples/client/petstore/typescript-fetch/builds/es6-target/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
99
},
1010
"main": "./dist/index.js",
11-
"typings": "./dist/index.d.ts",
11+
"types": "./dist/index.d.ts",
1212
"module": "./dist/esm/index.js",
1313
"sideEffects": false,
1414
"scripts": {

samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
99
},
1010
"main": "./dist/index.js",
11-
"typings": "./dist/index.d.ts",
11+
"types": "./dist/index.d.ts",
1212
"scripts": {
1313
"build": "tsc",
1414
"prepare": "npm run build"

samples/client/petstore/typescript-fetch/builds/sagas-and-records/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
99
},
1010
"main": "./dist/index.js",
11-
"typings": "./dist/index.d.ts",
11+
"types": "./dist/index.d.ts",
1212
"module": "./dist/esm/index.js",
1313
"sideEffects": false,
1414
"scripts": {

samples/client/petstore/typescript-fetch/builds/with-npm-version/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
99
},
1010
"main": "./dist/index.js",
11-
"typings": "./dist/index.d.ts",
11+
"types": "./dist/index.d.ts",
1212
"scripts": {
1313
"build": "tsc",
1414
"prepare": "npm run build"

samples/client/petstore/typescript-fetch/builds/without-runtime-checks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
99
},
1010
"main": "./dist/index.js",
11-
"typings": "./dist/index.d.ts",
11+
"types": "./dist/index.d.ts",
1212
"scripts": {
1313
"build": "tsc",
1414
"prepare": "npm run build"

0 commit comments

Comments
 (0)
0