Skip to content

Commit

Permalink
fix: use node --loader ts-node/esm
Browse files Browse the repository at this point in the history
Node.js 18 breaks ts-node-esm
TypeStrong/ts-node#1997
  • Loading branch information
azu committed Dec 10, 2023
1 parent f1f2674 commit 3235481
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
"sideEffects": false,
"type": "module",
"scripts": {
"import-twitter-archives": "ts-node-esm ./scripts/import-twitter-archives.ts",
"download-s3": "ts-node-esm ./scripts/download-s3.ts",
"fetch-tweets": "ts-node-esm ./scripts/fetch-tweets.ts",
"fetch-bsky": "ts-node-esm ./scripts/fetch-bsky.ts",
"upload-s3": "ts-node-esm ./scripts/upload-s3.ts",
"import-twitter-archives": "node --loader ts-node/esm ./scripts/import-twitter-archives.ts",
"download-s3": "node --loader ts-node/esm ./scripts/download-s3.ts",
"fetch-tweets": "node --loader ts-node/esm ./scripts/fetch-tweets.ts",
"fetch-bsky": "node --loader ts-node/esm ./scripts/fetch-bsky.ts",
"upload-s3": "node --loader ts-node/esm ./scripts/upload-s3.ts",
"test": "mocha",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\"",
"prepare": "git config --local core.hooksPath .githooks",
Expand Down

0 comments on commit 3235481

Please sign in to comment.