Comparing version 0.8.1 to 0.8.2
#!/usr/bin/env node | ||
import { execFileSync } from "node:child_process"; | ||
import { createRequire } from "node:module"; | ||
@@ -7,5 +8,5 @@ // CLI is provided by queue-run-cli, separate package, keep queue-run smaller. | ||
try { | ||
await import(cliModule); | ||
createRequire(import.meta.url).resolve(cliModule); | ||
} catch (error) { | ||
if (error instanceof Error && error.code === "ERR_MODULE_NOT_FOUND") { | ||
if (error instanceof Error && error.code === "MODULE_NOT_FOUND") { | ||
// On first use, we install queue-run-cli. We don't update package.json, if you | ||
@@ -21,4 +22,5 @@ // nuke node_modules, we'll just install again. | ||
); | ||
await import(cliModule); | ||
} else throw error; | ||
} | ||
await import(cliModule); |
{ | ||
"name": "queue-run", | ||
"description": "👋 Backends for JAMstack apps: APIs, job queues, scheduled jobs, WebSocket notifications, and more …", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"exports": { | ||
@@ -60,3 +60,3 @@ ".": "./dist/index.js", | ||
], | ||
"gitHead": "55cbf728b06a1a9189a1922fcca181d47f3bac6d" | ||
"gitHead": "777d57d6e70fb289d609e73e24698f51a6f06534" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3679878
37094