File tree Expand file tree Collapse file tree 3 files changed +39
-3
lines changed Expand file tree Collapse file tree 3 files changed +39
-3
lines changed Original file line number Diff line number Diff line change 100
100
"@parcel/transformer-inline-string" : " ^2.14.0" ,
101
101
"@parcel/transformer-svg-react" : " ^2.14.0" ,
102
102
"@parcel/transformer-typescript-types" : " ^2.14.0" ,
103
- "@react-spectrum/s2" : " ^0.8.0" ,
104
103
"@react-spectrum/s2-icon-builder" : " ^0.2.0" ,
105
104
"@spectrum-css/component-builder" : " 1.0.1" ,
106
105
"@spectrum-css/vars" : " ^2.3.0" ,
Original file line number Diff line number Diff line change @@ -34,6 +34,44 @@ cd examples/s2-webpack-5-example
34
34
mkdir icon-test
35
35
cp ../../packages/@react-spectrum/s2/s2wf-icons/S2_Icon_3D_20_N.svg icon-test/S2_Icon_3D_20_N.svg
36
36
npx @react-spectrum/s2-icon-builder -i ./icon-test/S2_Icon_3D_20_N.svg -o ./icon-dist
37
- npx @react-spectrum/s2-icon-builder -i ./icon-test/S2_Icon_3D_20_N.svg -o ./icon-dist-library --isLibrary
37
+
38
+ mkdir icon-library-test
39
+ cat > icon-library-test/package.json << EOF
40
+ {
41
+ "name": "icon-library-test",
42
+ "version": "1.0.0",
43
+ "exports": {
44
+ "./dist/*": {
45
+ "types": "./dist/*.d.ts",
46
+ "module": "./dist/*.mjs",
47
+ "import": "./dist/*.mjs",
48
+ "require": "./dist/*.cjs"
49
+ }
50
+ },
51
+ "peerDependencies": {
52
+ "@react-spectrum/s2": "latest",
53
+ "react": "^19.0.0",
54
+ "react-dom": "^19.0.0"
55
+ },
56
+ "devDependencies": {
57
+ "@react-spectrum/s2-icon-builder": "latest",
58
+ "@react-spectrum/s2": "latest",
59
+ "react": "^19.0.0",
60
+ "react-dom": "^19.0.0"
61
+ },
62
+ "files": [
63
+ "src",
64
+ "dist"
65
+ ]
66
+ }
67
+ EOF
68
+ mkdir icon-library-test/src
69
+ cp ../../packages/@react-spectrum/s2/s2wf-icons/S2_Icon_3D_20_N.svg src/S2_Icon_3D_20_N.svg
70
+ cd icon-library-test
71
+ yarn install
72
+ yarn transform-icons -i ' ./src/*.svg' -o ./dist --isLibrary
73
+ ls ./dist
74
+
75
+ cd ..
38
76
39
77
netstat -tpln | awk -F' [[:space:]/:]+' ' $5 == 4000 {print $(NF-2)}' | xargs kill
Original file line number Diff line number Diff line change @@ -29559,7 +29559,6 @@ __metadata:
29559
29559
"@parcel/transformer-inline-string": "npm:^2.14.0"
29560
29560
"@parcel/transformer-svg-react": "npm:^2.14.0"
29561
29561
"@parcel/transformer-typescript-types": "npm:^2.14.0"
29562
- "@react-spectrum/s2": "npm:^0.8.0"
29563
29562
"@react-spectrum/s2-icon-builder": "npm:^0.2.0"
29564
29563
"@spectrum-css/component-builder": "npm:1.0.1"
29565
29564
"@spectrum-css/vars": "npm:^2.3.0"
You can’t perform that action at this time.
0 commit comments