Skip to content

Commit

Permalink
fix(cli): import.meta.url
Browse files Browse the repository at this point in the history
  • Loading branch information
vicary committed Mar 13, 2024
1 parent 640ccc3 commit b038453
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
15 changes: 6 additions & 9 deletions cli.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
import {
assert,
colors,
dirname,
fromFileUrl,
log,
resolvePath,
} from "./deps.ts";
import { assert, colors, dirname, log, resolvePath } from "./deps.ts";

log.setup({
handlers: {
Expand Down Expand Up @@ -112,8 +105,12 @@ async function patchDev() {
// Ensure file exists
await Deno.stat("dev.ts");

if (Deno.env.has("FRSH_GQL_DEBUG")) {
console.debug(import.meta.url);
}

const diffFile = resolvePath(
dirname(fromFileUrl(import.meta.url)),
dirname(new URL(import.meta.url).pathname),
"dev.patch",
);

Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vicary/fresh-graphql",
"version": "0.2.1",
"version": "0.2.2",
"exports": "./mod.ts",
"lock": false,
"nodeModulesDir": false
Expand Down

0 comments on commit b038453

Please sign in to comment.