Skip to content

Commit

Permalink
try diff path libs
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Aug 29, 2024
1 parent 37c8aae commit b607133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/scripts/generate-test-tables.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { tablegen } from "@latticexyz/store/codegen";
import { defineStore } from "@latticexyz/store";
import { fileURLToPath } from "node:url";
import path from "node:path/posix";
import path from "node:path";

console.log("import.meta.url", import.meta.url);
console.log("fileURLToPath", fileURLToPath(import.meta.url));
console.log("dirname", path.dirname(fileURLToPath(import.meta.url)));
const rootDir = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../contracts");
const rootDir = path.posix.resolve(path.dirname(fileURLToPath(import.meta.url)), "../contracts");
console.log("rootDir", rootDir);

// This config is used only for tests.
Expand Down

0 comments on commit b607133

Please sign in to comment.