diff --git a/modules/openapi-generator/src/main/resources/typescript-fetch/package.mustache b/modules/openapi-generator/src/main/resources/typescript-fetch/package.mustache index 170922402399..0de88d45310e 100644 --- a/modules/openapi-generator/src/main/resources/typescript-fetch/package.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-fetch/package.mustache @@ -15,7 +15,7 @@ {{/packageAsSourceOnlyLibrary}} {{^packageAsSourceOnlyLibrary}} "main": "./dist/index.js", - "typings": "./dist/index.d.ts", + "types": "./dist/index.d.ts", {{#supportsES6}} "module": "./dist/esm/index.js", "sideEffects": false, diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/package.json b/samples/client/petstore/typescript-fetch/builds/es6-target/package.json index 6f92876c3bdf..6d44ed32b0c2 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/package.json +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/package.json @@ -8,7 +8,7 @@ "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git" }, "main": "./dist/index.js", - "typings": "./dist/index.d.ts", + "types": "./dist/index.d.ts", "module": "./dist/esm/index.js", "sideEffects": false, "scripts": { diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/package.json b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/package.json index ad4947a9d3e8..50d947e6258d 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/package.json +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/package.json @@ -8,7 +8,7 @@ "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git" }, "main": "./dist/index.js", - "typings": "./dist/index.d.ts", + "types": "./dist/index.d.ts", "scripts": { "build": "tsc", "prepare": "npm run build" diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/package.json b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/package.json index 502c6c06d2a0..3d82fde40420 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/package.json +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/package.json @@ -8,7 +8,7 @@ "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git" }, "main": "./dist/index.js", - "typings": "./dist/index.d.ts", + "types": "./dist/index.d.ts", "module": "./dist/esm/index.js", "sideEffects": false, "scripts": { diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/package.json b/samples/client/petstore/typescript-fetch/builds/with-npm-version/package.json index ad4947a9d3e8..50d947e6258d 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/package.json +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/package.json @@ -8,7 +8,7 @@ "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git" }, "main": "./dist/index.js", - "typings": "./dist/index.d.ts", + "types": "./dist/index.d.ts", "scripts": { "build": "tsc", "prepare": "npm run build" diff --git a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/package.json b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/package.json index ad4947a9d3e8..50d947e6258d 100644 --- a/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/package.json +++ b/samples/client/petstore/typescript-fetch/builds/without-runtime-checks/package.json @@ -8,7 +8,7 @@ "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git" }, "main": "./dist/index.js", - "typings": "./dist/index.d.ts", + "types": "./dist/index.d.ts", "scripts": { "build": "tsc", "prepare": "npm run build"