@finchip.ai/foga 0.6.0-alpha.4 → 0.6.0-alpha.5

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/bin/foga.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Launcher for the published package: runs the compiled CLI.
3
3
  // During development use `npm run foga -- <args>` (tsx) instead.
4
4
  import { existsSync } from "node:fs";
5
- import { fileURLToPath } from "node:url";
5
+ import { fileURLToPath, pathToFileURL } from "node:url";
6
6
  import { dirname, join } from "node:path";
7
7
 
8
8
  const here = dirname(fileURLToPath(import.meta.url));
@@ -11,4 +11,5 @@ if (!existsSync(dist)) {
11
11
  console.error("foga: compiled CLI not found. Run `npm run build` first, or use `npm run foga -- <args>`.");
12
12
  process.exit(1);
13
13
  }
14
- await import(dist);
14
+ // a dynamic import takes a URL: on Windows an absolute path (C:\...) is not one
15
+ await import(pathToFileURL(dist).href);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finchip.ai/foga",
3
- "version": "0.6.0-alpha.4",
3
+ "version": "0.6.0-alpha.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/garyyang-finchip/foga.git"
package/server.json CHANGED
@@ -8,13 +8,13 @@
8
8
  "source": "github"
9
9
  },
10
10
  "websiteUrl": "https://foga.finchip.ai",
11
- "version": "0.6.0-alpha.4",
11
+ "version": "0.6.0-alpha.5",
12
12
  "packages": [
13
13
  {
14
14
  "registryType": "npm",
15
15
  "registryBaseUrl": "https://registry.npmjs.org",
16
16
  "identifier": "@finchip.ai/foga",
17
- "version": "0.6.0-alpha.4",
17
+ "version": "0.6.0-alpha.5",
18
18
  "runtimeHint": "npx",
19
19
  "transport": {
20
20
  "type": "stdio"