-
-
Save tgmarinho/0e073ab84f0a4727632922566d7f8275 to your computer and use it in GitHub Desktop.
Run a TypeScript project using ESBuild and TSUP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"build": "tsup", | |
"dev": "yarn build --onSuccess \"yarn start\"", | |
"dev:watch": "yarn dev --watch", | |
"start": "node dist/index.js", | |
}, | |
"devDependencies": { | |
"tsup": "^5.11.13", | |
"typescript": "4.5.5" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sourcemap": true, | |
"entryPoints": ["src/index.ts"], | |
"outDir": "dist", | |
"format": ["cjs"], | |
"target": "node16", | |
"bundle": true, | |
"skipNodeModulesBundle": true, | |
"clean": true, | |
"splitting": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment