Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use tsx instead of ts-node #54

Merged
merged 3 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/lovely-mayflies-appear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-llama": patch
---

refactor: use tsx instead of ts-node
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Install NodeJS. Preferably v18 using nvm or n.
Inside the `create-llama` directory:

```
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specify the language for the fenced code block to enable syntax highlighting. For example, use ```shell for shell commands.

- ```
+ ```shell

npm i -g pnpm ts-node
npm i -g pnpm
pnpm install
```

Expand Down
2 changes: 1 addition & 1 deletion helpers/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ async function updatePackageJson({
// add generate script if using context engine
packageJson.scripts = {
...packageJson.scripts,
generate: `ts-node ${path.join(
generate: `tsx ${path.join(
relativeEngineDestPath,
"engine",
"generate.ts",
Expand Down
2 changes: 1 addition & 1 deletion templates/types/streaming/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"nodemon": "^3.0.1",
"prettier": "^3.2.5",
"prettier-plugin-organize-imports": "^3.2.4",
"ts-node": "^10.9.2",
"tsx": "^4.7.2",
"tsup": "^8.0.1",
"typescript": "^5.3.2"
}
Expand Down
5 changes: 0 additions & 5 deletions templates/types/streaming/express/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,5 @@
"paths": {
"@/*": ["./*"]
}
},
"ts-node": {
"compilerOptions": {
"module": "commonjs"
}
}
}
2 changes: 1 addition & 1 deletion templates/types/streaming/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"prettier": "^3.2.5",
"prettier-plugin-organize-imports": "^3.2.4",
"tailwindcss": "^3.3.6",
"ts-node": "^10.9.2",
"tsx": "^4.7.2",
"typescript": "^5.3.2"
}
}
7 changes: 1 addition & 6 deletions templates/types/streaming/nextjs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,5 @@
"forceConsistentCasingInFileNames": true
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"],
"ts-node": {
"compilerOptions": {
"module": "commonjs"
}
}
"exclude": ["node_modules"]
}
Loading