Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fecc412

Browse files
committedMay 8, 2025·
try more configs to mimic our own setup
1 parent c549352 commit fecc412

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎scripts/verdaccio-build-icon-builder.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,16 @@ cat > icon-library-test/package.json << EOF
6666
"react-dom": "^19.0.0"
6767
},
6868
"devDependencies": {
69+
"@babel/plugin-proposal-decorators": "^7.24.1",
70+
"@babel/plugin-transform-runtime": "^7.24.3",
71+
"@babel/preset-env": "^7.24.3",
72+
"@babel/preset-react": "^7.24.1",
73+
"@babel/preset-typescript": "^7.24.1",
6974
"@react-spectrum/s2-icon-builder": "latest",
7075
"@react-spectrum/s2": "latest",
76+
"babel-plugin-macros": "^3.0.1",
77+
"babel-plugin-react-remove-properties": "^0.3.0",
78+
"babel-plugin-transform-glob-import": "^1.0.1",
7179
"react": "^19.0.0",
7280
"react-dom": "^19.0.0"
7381
}
@@ -78,6 +86,8 @@ mkdir icon-library-test/src
7886
touch icon-library-test/yarn.lock
7987
cp ../../packages/@react-spectrum/s2/s2wf-icons/S2_Icon_3D_20_N.svg icon-library-test/src/S2_Icon_3D_20_N.svg
8088
cp ../../packages/@react-spectrum/s2/s2wf-icons/S2_Icon_AlignRight_20_N.svg icon-library-test/src/S2_Icon_AlignRight_20_N.svg
89+
cp ../../babel.config.json icon-library-test/babel.config.json
90+
cp ../../svgo.config.json icon-library-test/svgo.config.json
8191
cd icon-library-test
8292
echo "Installing and building icon library"
8393
yarn install --no-immutable