Skip to content

Instantly share code, notes, and snippets.

@tgmarinho
Forked from fersilva16/package.json
Created February 7, 2022 15:24
Show Gist options
  • Save tgmarinho/0e073ab84f0a4727632922566d7f8275 to your computer and use it in GitHub Desktop.
Save tgmarinho/0e073ab84f0a4727632922566d7f8275 to your computer and use it in GitHub Desktop.
Run a TypeScript project using ESBuild and TSUP
{
"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"
}
}
{
"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