Skip to content
Snippets Groups Projects
Unverified Commit 418bf9ba authored by Thuc Pham's avatar Thuc Pham Committed by GitHub
Browse files

refactor: use tsx instead of ts-node (#54)

parent e5d20b66
No related branches found
No related tags found
No related merge requests found
---
"create-llama": patch
---
refactor: use tsx instead of ts-node
...@@ -7,7 +7,7 @@ Install NodeJS. Preferably v18 using nvm or n. ...@@ -7,7 +7,7 @@ Install NodeJS. Preferably v18 using nvm or n.
Inside the `create-llama` directory: Inside the `create-llama` directory:
``` ```
npm i -g pnpm ts-node npm i -g pnpm
pnpm install pnpm install
``` ```
......
...@@ -205,7 +205,7 @@ async function updatePackageJson({ ...@@ -205,7 +205,7 @@ async function updatePackageJson({
// add generate script if using context engine // add generate script if using context engine
packageJson.scripts = { packageJson.scripts = {
...packageJson.scripts, ...packageJson.scripts,
generate: `ts-node ${path.join( generate: `tsx ${path.join(
relativeEngineDestPath, relativeEngineDestPath,
"engine", "engine",
"generate.ts", "generate.ts",
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
"nodemon": "^3.0.1", "nodemon": "^3.0.1",
"prettier": "^3.2.5", "prettier": "^3.2.5",
"prettier-plugin-organize-imports": "^3.2.4", "prettier-plugin-organize-imports": "^3.2.4",
"ts-node": "^10.9.2", "tsx": "^4.7.2",
"tsup": "^8.0.1", "tsup": "^8.0.1",
"typescript": "^5.3.2" "typescript": "^5.3.2"
} }
......
...@@ -9,10 +9,5 @@ ...@@ -9,10 +9,5 @@
"paths": { "paths": {
"@/*": ["./*"] "@/*": ["./*"]
} }
},
"ts-node": {
"compilerOptions": {
"module": "commonjs"
}
} }
} }
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
"prettier": "^3.2.5", "prettier": "^3.2.5",
"prettier-plugin-organize-imports": "^3.2.4", "prettier-plugin-organize-imports": "^3.2.4",
"tailwindcss": "^3.3.6", "tailwindcss": "^3.3.6",
"ts-node": "^10.9.2", "tsx": "^4.7.2",
"typescript": "^5.3.2" "typescript": "^5.3.2"
} }
} }
...@@ -24,10 +24,5 @@ ...@@ -24,10 +24,5 @@
"forceConsistentCasingInFileNames": true "forceConsistentCasingInFileNames": true
}, },
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"], "exclude": ["node_modules"]
"ts-node": {
"compilerOptions": {
"module": "commonjs"
}
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment