Skip to content

Commit bad74c9

Browse files
committed
type: module
1 parent 8732b86 commit bad74c9

4 files changed

Lines changed: 3 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"contributors": [
1616
"Federico Brigante <me@fregante.com> (https://fregante.com)"
1717
],
18+
"type": "module",
1819
"exports": {
1920
"./*": "./components/*.tsx"
2021
},

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import AlertIcon from "octicons-plain-react/alert";
2929
2. It fetches the latest version of @primer/octicons
3030
3. It sets its own version to match that
3131
4. The version script is called and it installs its own version
32+
- Use `npm version 1.2.3 --ignore-scripts` to set a custom version without updating octicons
3233
5. `git add` is called to ensure these changes are saved in the tag itself
3334
6. If the version change is successful, `npm publish` is run
3435
7. Publishing calls `prepack.sh`, which builds the components and runs all the transforms

scripts/prepack.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ done
1717
svgr --out-dir components \
1818
--no-index \
1919
--typescript \
20-
--template template.js \
20+
--template template.cjs \
2121
--svg-props role=img \
2222
--svg-props aria-hidden=true \
23-
--svg-props fill=currentColor \
2423
--no-svgo -- svgs
2524

2625
rm -rf svgs
File renamed without changes.

0 commit comments

Comments
 (0)