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:
Dolan
2023-12-22 01:10:54 +00:00
committed by GitHub
parent 8744e613ac
commit d04c42cbe8
9 changed files with 763 additions and 350 deletions

View File

@ -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!");
}