From 9ea6ec1958c4a18c7bdb0dbd7a6f5d2873483d55 Mon Sep 17 00:00:00 2001 From: winiga Date: Tue, 3 Jun 2025 19:50:54 +0200 Subject: [PATCH 1/2] replace deprecated 'typings' field with standard 'types' in package.json --- .../src/main/resources/typescript-fetch/package.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, From 00ff162db90fd455d1ee1269d9445dd1487ea408 Mon Sep 17 00:00:00 2001 From: winiga Date: Tue, 3 Jun 2025 20:54:36 +0200 Subject: [PATCH 2/2] regenerate samples after replacing 'typings' with 'types' field --- .../petstore/typescript-fetch/builds/es6-target/package.json | 2 +- .../builds/prefix-parameter-interfaces/package.json | 2 +- .../typescript-fetch/builds/sagas-and-records/package.json | 2 +- .../typescript-fetch/builds/with-npm-version/package.json | 2 +- .../typescript-fetch/builds/without-runtime-checks/package.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) 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"