Skip to content

Commit

Permalink
Add TSUP as package bundler/compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
MWhite-22 committed Jun 26, 2022
1 parent ec80e4c commit 16f9284
Show file tree
Hide file tree
Showing 3 changed files with 492 additions and 4 deletions.
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Create web application with the t3 stack",
"author": "Shoubhit Dash <[email protected]>",
"license": "MIT",
"main": "index.js",
"main": "./dist/index.js",
"repository": {
"type": "git",
"url": "https://github.com/nexxeln/create-t3-app.git"
Expand All @@ -22,8 +22,9 @@
"create-t3-app": "./dist/index.js"
},
"scripts": {
"build": "rm -rf dist && tsc && chmod +x dist/index.js",
"start": "npm run build && node dist/index.js",
"build": "tsup src/index.ts --clean --sourcemap --minify --metafile",
"dev": "tsup src/index.ts --watch --clean --onSuccess \"node dist/index.js\"",
"start": "node dist/index.js",
"build-w": "rd /s dist && tsc && attrib +x dist/index.js",
"start-w": "npm run build-w && node dist/index.js",
"lint": "eslint src/ --fix",
Expand All @@ -41,6 +42,7 @@
},
"devDependencies": {
"@changesets/cli": "^2.23.0",
"@swc/core": "^1.2.205",
"@types/fs-extra": "^9.0.13",
"@types/node": "^17.0.35",
"@types/prompts": "^2.0.14",
Expand All @@ -54,6 +56,7 @@
"lint-staged": "^13.0.2",
"prettier": "^2.7.1",
"type-fest": "^2.14.0",
"tsup": "^6.1.2",
"typescript": "^4.6.4"
},
"lint-staged": {
Expand Down
Loading

0 comments on commit 16f9284

Please sign in to comment.