Skip to content

Commit f0a2fa5

Browse files
committed
Don't use import.meta.dirname, running package script sets cwd correctly.
1 parent a137a16 commit f0a2fa5

File tree

1 file changed

+1
-1
lines changed
  • packages/eslint-solid-standalone

1 file changed

+1
-1
lines changed

packages/eslint-solid-standalone/test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const context = vm.createContext({
1818
});
1919

2020
// create a module with the standalone build
21-
const code = fs.readFileSync(path.resolve(import.meta.dirname, "dist.js"), "utf-8");
21+
const code = fs.readFileSync(path.resolve("dist.js"), "utf-8");
2222
const dist = new vm.SourceTextModule(code, { identifier: "dist.js", context });
2323

2424
// create a module reexporting typescript, a peer dependency of the standalone build

0 commit comments

Comments
 (0)