astrotype 0.1.1 → 0.1.2

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.
package/cli/lib/paths.mjs CHANGED
@@ -1,7 +1,12 @@
1
1
  import path from "node:path";
2
+ import { fileURLToPath } from "node:url";
2
3
 
4
+ const CURRENT_FILE = fileURLToPath(import.meta.url);
5
+ const CURRENT_DIR = path.dirname(CURRENT_FILE);
6
+
7
+ export const PACKAGE_ROOT = path.resolve(CURRENT_DIR, "..", "..");
3
8
  export const PROJECT_ROOT = process.cwd();
4
- export const REGISTRY_DIR = path.join(PROJECT_ROOT, "registry");
9
+ export const REGISTRY_DIR = path.join(PACKAGE_ROOT, "registry");
5
10
  export const REGISTRY_FONTS_DIR = path.join(REGISTRY_DIR, "fonts");
6
11
  export const REGISTRY_PAIRINGS_DIR = path.join(REGISTRY_DIR, "pairings");
7
12
  export const PUBLIC_DIR = path.join(PROJECT_ROOT, "public");
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "astrotype",
3
3
  "description": "Astro-first font registry and CLI for installing pairings or single fonts.",
4
4
  "type": "module",
5
- "version": "0.1.1",
5
+ "version": "0.1.2",
6
6
  "private": false,
7
7
  "keywords": [
8
8
  "astro",