Skip to content

Commit

Permalink
fix(scoped-elements): support for node16 typescript module resolution. (
Browse files Browse the repository at this point in the history
  • Loading branch information
jpzwarte committed Jun 21, 2022
1 parent bf99826 commit 12b9a73
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/warm-moose-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@open-wc/scoped-elements': patch
---

Fixed compatibility with Typescript 4.7 nodeResolution: "node16".
11 changes: 8 additions & 3 deletions packages/scoped-elements/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@
},
"author": "open-wc",
"homepage": "https://github.com/open-wc/open-wc/tree/master/packages/scoped-elements",
"module": "index.js",
"type": "module",
"main": "index.js",
"exports": {
".": {
"types": "./types/index.d.ts",
"default": "./index.js"
}
},
"scripts": {
"debug": "cd ../../ && yarn debug --group scoped-elements",
"demo-build:before-nesting": "rollup -c demo/before-nesting/rollup.config.js",
Expand Down Expand Up @@ -48,5 +53,5 @@
"devDependencies": {
"@webcomponents/scoped-custom-element-registry": "^0.0.5"
},
"types": "types/index.d.ts"
"types": "./types/index.d.ts"
}

0 comments on commit 12b9a73

Please sign in to comment.