fix(floating): clean:build preserves types/ (workaround for hanzogui-build bug)

hanzogui-build emits FloatingOverrideContext type as
React.Context<UseFloatingOverrideFn> instead of
React.Context<UseFloatingOverrideFn | null>, breaking every package
that imports it. workaround: build script uses --skip-types so the
committed (correct) types stay in place. but clean:build defaults
to wiping both dist/ AND types/ — override it here to wipe only
dist/ so the publish wave preserves our type fix.
This commit is contained in:
Artem Ash
2026-05-24 15:12:09 -10:00
parent 727d6fe741
commit beb6f741e4
+1 -1
View File
@@ -31,7 +31,7 @@
"build": "hanzogui-build --skip-types",
"watch": "hanzogui-build --watch --skip-types",
"clean": "hanzogui-build clean",
"clean:build": "hanzogui-build clean:build"
"clean:build": "rm -rf dist"
},
"dependencies": {
"@floating-ui/react-dom": "^2.1.6",