Skip to content

Commit

Permalink
Fix --loader deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ezzatron committed Nov 5, 2024
1 parent 5386c24 commit dadfa5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ artifacts/dist/esm: tsconfig.build.esm.json tsconfig.json artifacts/link-depende
@touch "$@"

ENVIRONMENT.md: artifacts/link-dependencies.touch $(JS_SOURCE_FILES) $(JS_TEST_FILES)
AUSTENITE_SPEC=true AUSTENITE_APP=example node --loader ts-node/esm test/fixture/example/run.ts > "$@"
AUSTENITE_SPEC=true AUSTENITE_APP=example node test/fixture/example/run.js > "$@"
5 changes: 5 additions & 0 deletions test/fixture/example/run.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { register } from "node:module";
import { pathToFileURL } from "node:url";

register("ts-node/esm", pathToFileURL("./"));
await import("./run.ts");

0 comments on commit dadfa5e

Please sign in to comment.