Use esm for ts-node (#2459)
* Use esm for ts-node * Add esm flag * Change tsconfig properties * Use tsx rather than ts-node * Use tsx * Remove ts-node
This commit is contained in:
@ -55,7 +55,7 @@ if (files.length === 0) {
|
||||
const filePath = path.join(dir, files[0]);
|
||||
|
||||
console.log(`Running demo ${demoNumber}: ${files[0]}`);
|
||||
const { stdout } = await $`ts-node --project demo/tsconfig.json ${filePath}`;
|
||||
const { stdout } = await $`tsx ${filePath}`;
|
||||
console.log(stdout);
|
||||
console.log("Successfully created document!");
|
||||
}
|
||||
|
Reference in New Issue
Block a user