From 4121305c3ac451f741946edf57aed97ba806c94f Mon Sep 17 00:00:00 2001 From: Bogdan Savluk Date: Mon, 20 Nov 2023 18:55:04 +0100 Subject: [PATCH] update build config, removing need for tslib dependency (#3968) * fix need for tslib in compilation outputs * update changelog --- CHANGELOG.md | 8 ++++++++ packages/snapshot-tests/tsconfig.json | 1 - tsconfig.base.json | 4 ++-- tsconfig.json | 3 +++ 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6bb03d79a1..2c273a577a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,14 @@ it according to semantic versioning. For example, if your PR adds a breaking cha should change the heading of the (upcoming) version to include a major version bump. --> +# 5.14.3 + +## Dev +- update tsconfigs: + - `"importHelpers": false` to remove need for tslib dependency [#3958](https://github.com/rjsf-team/react-jsonschema-form/issues/3958) + - increase compilation target level from es6 to es2018 (so there are no need for transpiling object spread/rest feature) + - add missing typescript project reference for `snapshot-tests` in a root tsconfig, update it to also use es modules + # 5.14.2 ## @rjsf/antd diff --git a/packages/snapshot-tests/tsconfig.json b/packages/snapshot-tests/tsconfig.json index d13380177b..6d01a14322 100644 --- a/packages/snapshot-tests/tsconfig.json +++ b/packages/snapshot-tests/tsconfig.json @@ -2,7 +2,6 @@ "extends": "../../tsconfig.base.json", "include": ["src"], "compilerOptions": { - "module": "CommonJS", "baseUrl": "./", "rootDir": "./src", "outDir": "./lib", diff --git a/tsconfig.base.json b/tsconfig.base.json index 49415e1249..d061abce47 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1,10 +1,10 @@ { "compilerOptions": { "composite": true, - "target": "es6", + "target": "ES2018", "module": "esnext", "lib": ["dom", "esnext"], - "importHelpers": true, + "importHelpers": false, "declaration": true, "sourceMap": true, "strict": true, diff --git a/tsconfig.json b/tsconfig.json index f4ea64b91f..66f532ea92 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -42,6 +42,9 @@ }, { "path": "./packages/validator-ajv8" + }, + { + "path": "./packages/snapshot-tests" } ] }