diff --git a/.changeset/large-queens-poke.md b/.changeset/large-queens-poke.md new file mode 100644 index 0000000..f3aeef1 --- /dev/null +++ b/.changeset/large-queens-poke.md @@ -0,0 +1,5 @@ +--- +"single-spa-react": minor +--- + +Exports Typescript definitions using the exports property in package.json diff --git a/package.json b/package.json index dc18257..e4b5230 100644 --- a/package.json +++ b/package.json @@ -8,10 +8,12 @@ "exports": { "./package.json": "./package.json", ".": { + "types": "./types/single-spa-react.d.ts", "import": "./lib/esm/single-spa-react.js", "require": "./lib/cjs/single-spa-react.cjs" }, "./parcel": { + "types": "./parcel/index.d.ts", "import": "./lib/esm/parcel.js", "require": "./lib/cjs/parcel.cjs" }