From 6bb75c725b77a8ed31012ed03d118de7f06b6005 Mon Sep 17 00:00:00 2001 From: Louis Quinnell <_@ziorobo.co> Date: Thu, 31 Mar 2022 18:38:14 +1100 Subject: [PATCH] Expand supported node versions to v14 and above (#20) The kaizen-design-system is (at time of writing) still using node v14. This change updates the compiler config to support node v14 and above. --- .changeset/shiny-peas-happen.md | 5 +++++ package.json | 4 ++-- tsconfig.json | 4 ++-- yarn.lock | 8 ++++---- 4 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 .changeset/shiny-peas-happen.md diff --git a/.changeset/shiny-peas-happen.md b/.changeset/shiny-peas-happen.md new file mode 100644 index 0000000..2461a56 --- /dev/null +++ b/.changeset/shiny-peas-happen.md @@ -0,0 +1,5 @@ +--- +"@cultureamp/rich-text-toolkit": minor +--- + +Expand supported node versions to v14 and above diff --git a/package.json b/package.json index 659b59a..696da5e 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "registry": "https://npm.pkg.github.com" }, "engines": { - "node": ">=16" + "node": ">=14" }, "type": "module", "main": "./dist/index.js", @@ -39,7 +39,7 @@ "@changesets/cli": "^2.21.0", "@cultureamp/changelog-github": "^0.1.0", "@testing-library/react": "^12.1.3", - "@tsconfig/node16": "^1.0.2", + "@tsconfig/node14": "^1.0.1", "@types/jest": "^27.4.1", "@types/node": "^17.0.21", "@types/prosemirror-commands": "^1.0.4", diff --git a/tsconfig.json b/tsconfig.json index 85bfb30..0359fa1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,10 +1,10 @@ { - "extends": "@tsconfig/node16/tsconfig.json", + "extends": "@tsconfig/node14/tsconfig.json", "compilerOptions": { "jsx": "react", "declaration": true, "declarationMap": true, - "lib": ["dom", "es2021"], + "lib": ["dom", "es2020"], "module": "es2020", "moduleResolution": "node", "outDir": "dist", diff --git a/yarn.lock b/yarn.lock index f13a3d6..3cf0dda 100644 --- a/yarn.lock +++ b/yarn.lock @@ -826,10 +826,10 @@ resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82" integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw== -"@tsconfig/node16@^1.0.2": - version "1.0.2" - resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.2.tgz#423c77877d0569db20e1fc80885ac4118314010e" - integrity sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA== +"@tsconfig/node14@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@tsconfig/node14/-/node14-1.0.1.tgz#95f2d167ffb9b8d2068b0b235302fafd4df711f2" + integrity sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg== "@types/aria-query@^4.2.0": version "4.2.2"