Skip to content

Commit

Permalink
Fix babel build of .ts (#1046)
Browse files Browse the repository at this point in the history
* Fix babel build of .ts

* chlog
  • Loading branch information
ukrbublik authored May 15, 2024
1 parent 7699dcc commit 543a7f5
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Changelog
- 6.5.1
- Fix missing config file in antd moment date widgets (PR #1046)
- 6.5.0
- Breaking: `Utils.validateTree` returns array of errors (PR #1034)
- Breaking: `removeIncompleteRulesOnLoad` by default is false
Expand Down
2 changes: 1 addition & 1 deletion packages/antd/modules/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {BasicConfig} from "@react-awesome-query-builder/ui";
import {AntdWidgets} from "./widgets";
import {type AntdWidgets} from "./widgets";

export declare const AntdConfig: BasicConfig;
export declare const AntdWidgets: AntdWidgets;
Expand Down
4 changes: 2 additions & 2 deletions packages/antd/scripts/build-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ rm -rf ./cjs
rm -rf ./esm
rm -rf ./css

babel --extensions ".tsx,.jsx,.js" -d ./cjs ./modules
babel --extensions ".tsx,.jsx,.ts,.js" -d ./cjs ./modules
#find ./cjs -name "*.js" -exec sed -i.bak "s+antd/es/+antd/lib/+g" {} +
#rm ./cjs/**/*.bak
node ./scripts/fix-antd.js
ESM=1 babel --extensions ".tsx,.jsx,.js" -d ./esm ./modules
ESM=1 babel --extensions ".tsx,.jsx,.ts,.js" -d ./esm ./modules
cp ./modules/index.d.ts ./cjs/index.d.ts
cp ./modules/index.d.ts ./esm/index.d.ts

Expand Down
2 changes: 1 addition & 1 deletion packages/bootstrap/modules/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {BasicConfig} from "@react-awesome-query-builder/ui";
import {BootstrapWidgets} from "./widgets";
import {type BootstrapWidgets} from "./widgets";

export declare const BootstrapConfig: BasicConfig;
export declare const BootstrapWidgets: BootstrapWidgets;
Expand Down
2 changes: 1 addition & 1 deletion packages/fluent/modules/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {BasicConfig} from "@react-awesome-query-builder/ui";
import {FluentUIWidgets} from "./widgets";
import {type FluentUIWidgets} from "./widgets";

export declare const FluentUIConfig: BasicConfig;
export declare const FluentUIWidgets: FluentUIWidgets;
Expand Down
2 changes: 1 addition & 1 deletion packages/material/modules/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {BasicConfig} from "@react-awesome-query-builder/ui";
import {MaterialWidgets} from "./widgets";
import {type MaterialWidgets} from "./widgets";

export declare const MaterialConfig: BasicConfig;
export declare const MaterialWidgets: MaterialWidgets;
Expand Down
2 changes: 1 addition & 1 deletion packages/mui/modules/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {BasicConfig} from "@react-awesome-query-builder/ui";
import {MuiWidgets} from "./widgets";
import {type MuiWidgets} from "./widgets";

export declare const MuiConfig: BasicConfig;
export declare const MuiWidgets: MuiWidgets;
Expand Down

0 comments on commit 543a7f5

Please sign in to comment.