Skip to content

Commit

Permalink
build(deps): bump react-scripts
Browse files Browse the repository at this point in the history
The hacks are needed for `yarn run build`, and I suspect related to
facebook/create-react-app#10356
  • Loading branch information
michalc committed Jan 6, 2022
1 parent 0c987ea commit 0cfb518
Show file tree
Hide file tree
Showing 6 changed files with 5,042 additions and 10,428 deletions.
1 change: 1 addition & 0 deletions streamlit_gov_uk_components/frontend_checkbox/fix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# https://github.com/facebook/create-react-app/issues/10356

sed -i '' -e 's|import { Table, Vector } from "apache-arrow";|import { Vector } from "apache-arrow/vector";import { Table } from "apache-arrow/table";|g' ./node_modules/streamlit-component-lib/dist/ArrowTable.d.ts
sed -i '' -e 's|import { Table, Type } from "apache-arrow";||g' ./node_modules/streamlit-component-lib/dist/ArrowTable.js

mv ./node_modules/apache-arrow/ipc/reader.mjs ./node_modules/apache-arrow/ipc/reader.js
mv ./node_modules/apache-arrow/util/buffer.mjs ./node_modules/apache-arrow/util/buffer.js
Expand Down
2 changes: 1 addition & 1 deletion streamlit_gov_uk_components/frontend_checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@types/react-dom": "*",
"react": "*",
"react-dom": "*",
"react-scripts": "4.0.3",
"react-scripts": "*",
"streamlit-component-lib": "*",
"typescript": "*"
},
Expand Down
Loading

0 comments on commit 0cfb518

Please sign in to comment.