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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user