Skip to content

Commit 39328c0

Browse files
📦 Version Packages (#7)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 13890ba commit 39328c0

4 files changed

Lines changed: 26 additions & 21 deletions

File tree

‎.changeset/editor-ship-declarations.md‎

Lines changed: 0 additions & 18 deletions
This file was deleted.

‎bun.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎packages/editor/CHANGELOG.md‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# @pascal-app/editor
22

3+
## 0.9.3
4+
5+
### Patch Changes
6+
7+
- 13890ba: Ship type declarations and resolve them via a `types` export condition.
8+
9+
**@pascal-app/editor** exposed only its TypeScript source via
10+
`exports["."] = "./src/index.tsx"`, so every TypeScript consumer
11+
type-checked the editor's whole source tree—surfacing the internal
12+
**react-three-fiber** JSX augmentation (`declare module 'react/jsx-runtime'` in
13+
box-select-tool.tsx), which conflicts with React 19 DOM element types
14+
and pollutes the global `JSX.IntrinsicElements` union downstream.
15+
16+
Emit declaration-only output to **dist/** and
17+
point the `types` export condition at `dist/index.d.ts` The runtime entrypoint stays on
18+
**src/** for embedders' bundlers. Consumers now resolve the public type
19+
surface and the augmentation lives only in `box-select-tool`'s declaration,
20+
which nothing in the public type graph imports, so it stops leaking.
21+
322
## 0.9.2
423

524
### Patch Changes

‎packages/editor/package.json‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pascal-app/editor",
3-
"version": "0.9.2",
3+
"version": "0.9.3",
44
"description": "Pascal building editor component",
55
"type": "module",
66
"exports": {
@@ -15,7 +15,11 @@
1515
"default": "./src/components/ui/item-catalog/catalog-items.tsx"
1616
}
1717
},
18-
"files": ["dist", "src", "README.md"],
18+
"files": [
19+
"dist",
20+
"src",
21+
"README.md"
22+
],
1923
"scripts": {
2024
"build": "tsc -p tsconfig.build.json",
2125
"dev": "tsc -p tsconfig.build.json --watch",

0 commit comments

Comments
 (0)