vercel-vm-factory 0.12.8 → 0.15.8

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/deploy-vm.mjs +2 -1
  2. package/package.json +1 -1
package/deploy-vm.mjs CHANGED
@@ -4,6 +4,7 @@ import { spawn } from "node:child_process";
4
4
  import { stdin as input, stdout as output } from "node:process";
5
5
  import { homedir } from "node:os";
6
6
  import path from "node:path";
7
+ import { fileURLToPath } from "node:url";
7
8
  import * as p from "@clack/prompts";
8
9
 
9
10
  const defaultWsShellImage = "ghcr.io/v1xingyue/ws-shell:v1.8.alpine";
@@ -21,7 +22,7 @@ const toolChoices = {
21
22
  };
22
23
 
23
24
  const { command, args } = parseCommand(process.argv.slice(2));
24
- const scriptRoot = path.resolve(import.meta.dirname);
25
+ const scriptRoot = path.dirname(fileURLToPath(import.meta.url));
25
26
  const workspaceRoot = process.cwd();
26
27
  const stateRoot = path.join(homedir(), ".vercel-vm-factory");
27
28
  const defaultsPath = path.join(stateRoot, "defaults.json");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel-vm-factory",
3
- "version": "0.12.8",
3
+ "version": "0.15.8",
4
4
  "description": "Create Vercel Container deployments for ws-shell from selectable VM images.",
5
5
  "license": "MIT",
6
6
  "type": "module",