Skip to content

Commit

Permalink
Fix: Add missing exports declaration for runtime package (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewiggins authored Jun 26, 2023
1 parent 5cffd7b commit d34a824
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@
"browser": "./dist/signals.module.js",
"import": "./dist/signals.mjs",
"require": "./dist/signals.js"
}
},
"./runtime": {
"types": "./runtime/dist/index.d.ts",
"browser": "./runtime/dist/runtime.module.js",
"import": "./runtime/dist/runtime.mjs",
"require": "./runtime/dist/runtime.js"
},
"./runtime/package.json": "./runtime/package.json"
},
"mangle": "../../mangle.json",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"paths": {
"@preact/signals-core": ["./packages/core/src/index.ts"],
"@preact/signals": ["./packages/preact/src/index.ts"],
"@preact/signals-react": ["./packages/react/src/index.ts"]
"@preact/signals-react": ["./packages/react/src/index.ts"],
"@preact/signals-react/runtime": ["./packages/react/runtime/src/index.ts"]
}
},
"exclude": ["docs", "packages/*/dist/**"]
Expand Down

0 comments on commit d34a824

Please sign in to comment.