@sealcode/sealgen 0.19.30 → 0.19.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/get-fonts.ts +7 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sealcode/sealgen",
3
- "version": "0.19.30",
3
+ "version": "0.19.31",
4
4
  "description": "Module to automate adding routes and collections to a sealious application",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
package/src/get-fonts.ts CHANGED
@@ -98,7 +98,13 @@ export async function getFonts(_: Record<string, string | boolean> = {}) {
98
98
  } catch {
99
99
  console.info("No fonsta config present, using just google fonts");
100
100
  }
101
- await rmdir("public/tmp");
101
+ try {
102
+ await rmdir("public/tmp");
103
+ } catch {
104
+ console.info(
105
+ "Could not remove ./public/tmp. Maybe it wasn't there in the first place"
106
+ );
107
+ }
102
108
  console.info("Downloaded new fonts pack from Font Squirrel");
103
109
 
104
110
  console.info("Downloaded new fonts pack");