Skip to content

Commit 228e174

Browse files
authored
feat: export font files and glyphmaps (#1827)
* feat: export font files and glyphmaps * fix: remove old ts exceptions
1 parent 4e651b3 commit 228e174

File tree

24 files changed

+67
-49
lines changed

24 files changed

+67
-49
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ When you're sending a pull request:
185185

186186
### Font generation
187187

188-
All the fonts are automatiaclly generated using a `yeoman` generator. This is driven by a `.yo-rc.json` file in the root of each font.
188+
All the font packages are automatically generated using a `yeoman` generator. This is driven by a `.yo-rc.json` file in the root of each font.
189189

190-
To make changes to common font files you shuold edit the files in `packages/generator-react-native-vector-icons/src/app/templates/` and then at the root you shuld run:
190+
To make changes to common font files, edit the files in `packages/generator-react-native-vector-icons/src/app/templates/` and then at the root run:
191191

192192
```sh
193193
# Generate all fonts
@@ -199,4 +199,4 @@ pnpm generate ant-design
199199

200200
### Font versioning
201201

202-
Font package versions are now independent of upstream font versions and we track the mapping in the README.md of each font
202+
Font package versions are now independent of upstream font versions, and we track the mapping in the README.md of each font

packages/ant-design/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
"types": "./lib/typescript/commonjs/src/index.d.ts",
1717
"default": "./lib/commonjs/index.js"
1818
}
19-
}
19+
},
20+
"./glyphmaps/*.json": "./glyphmaps/*.json",
21+
"./fonts/*.ttf": "./fonts/*.ttf"
2022
},
2123
"files": [
2224
"src",

packages/entypo/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
"types": "./lib/typescript/commonjs/src/index.d.ts",
1717
"default": "./lib/commonjs/index.js"
1818
}
19-
}
19+
},
20+
"./glyphmaps/*.json": "./glyphmaps/*.json",
21+
"./fonts/*.ttf": "./fonts/*.ttf"
2022
},
2123
"files": [
2224
"src",

packages/evil-icons/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
"types": "./lib/typescript/commonjs/src/index.d.ts",
1717
"default": "./lib/commonjs/index.js"
1818
}
19-
}
19+
},
20+
"./glyphmaps/*.json": "./glyphmaps/*.json",
21+
"./fonts/*.ttf": "./fonts/*.ttf"
2022
},
2123
"files": [
2224
"src",

packages/feather/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
"types": "./lib/typescript/commonjs/src/index.d.ts",
1717
"default": "./lib/commonjs/index.js"
1818
}
19-
}
19+
},
20+
"./glyphmaps/*.json": "./glyphmaps/*.json",
21+
"./fonts/*.ttf": "./fonts/*.ttf"
2022
},
2123
"files": [
2224
"src",

packages/fontawesome/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
"types": "./lib/typescript/commonjs/src/index.d.ts",
1717
"default": "./lib/commonjs/index.js"
1818
}
19-
}
19+
},
20+
"./glyphmaps/*.json": "./glyphmaps/*.json",
21+
"./fonts/*.ttf": "./fonts/*.ttf"
2022
},
2123
"files": [
2224
"src",

packages/fontawesome5-pro/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
"types": "./lib/typescript/commonjs/src/index.d.ts",
1717
"default": "./lib/commonjs/index.js"
1818
}
19-
}
19+
},
20+
"./glyphmaps/*.json": "./glyphmaps/*.json",
21+
"./fonts/*.ttf": "./fonts/*.ttf"
2022
},
2123
"files": [
2224
"src",

packages/fontawesome5/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
"types": "./lib/typescript/commonjs/src/index.d.ts",
1717
"default": "./lib/commonjs/index.js"
1818
}
19-
}
19+
},
20+
"./glyphmaps/*.json": "./glyphmaps/*.json",
21+
"./fonts/*.ttf": "./fonts/*.ttf"
2022
},
2123
"files": [
2224
"src",

packages/fontawesome6-pro/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
"types": "./lib/typescript/commonjs/src/index.d.ts",
1717
"default": "./lib/commonjs/index.js"
1818
}
19-
}
19+
},
20+
"./glyphmaps/*.json": "./glyphmaps/*.json",
21+
"./fonts/*.ttf": "./fonts/*.ttf"
2022
},
2123
"files": [
2224
"src",

packages/fontawesome6/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
"types": "./lib/typescript/commonjs/src/index.d.ts",
1717
"default": "./lib/commonjs/index.js"
1818
}
19-
}
19+
},
20+
"./glyphmaps/*.json": "./glyphmaps/*.json",
21+
"./fonts/*.ttf": "./fonts/*.ttf"
2022
},
2123
"files": [
2224
"src",

0 commit comments

Comments
 (0)