Skip to content

Commit

Permalink
build: use tsup
Browse files Browse the repository at this point in the history
  • Loading branch information
Lord-Valen committed Jan 5, 2024
1 parent 8f3ec1d commit 37543aa
Show file tree
Hide file tree
Showing 20 changed files with 704 additions and 117 deletions.
10 changes: 6 additions & 4 deletions bots/apollo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"homepage": "https://github.com/hades-ts/hades#readme",
"main": "dist/index.js",
"scripts": {
"build": "tsc -p tsconfig.json",
"rebuild": "rm -fr ./dist; tsc -p tsconfig.json",
"build": "tsup src/index.ts --format cjs,esm --dts",
"rebuild": "rm -rf dist; npm run build",
"start": "node dist/index.js",
"watch": "tsc -p tsconfig.json -w"
},
Expand Down Expand Up @@ -56,10 +56,12 @@
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.1.1",
"typescript": "^5.0.0",
"eslint-config-prettier": "^9.0.0"
"eslint-config-prettier": "^9.0.0",
"tsup": "~8.0.1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hades-ts/hades.git"
}
},
"module": "dist/index.mjs"
}
7 changes: 4 additions & 3 deletions bots/ares/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "Hades based GPT3 Discord bot",
"main": "dist/index.js",
"scripts": {
"build": "tsc -p tsconfig.json",
"rebuild": "rm -fr ./dist; tsc -p tsconfig.json",
"build": "tsup src/index.ts --format cjs,esm --dts",
"rebuild": "rm -rf dist; npm run build",
"start": "node dist/index.js",
"watch": "tsc -p tsconfig.json -w"
},
Expand Down Expand Up @@ -61,5 +61,6 @@
"bugs": {
"url": "https://github.com/hades-ts/hades/issues"
},
"homepage": "https://github.com/hades-ts/hades#readme"
"homepage": "https://github.com/hades-ts/hades#readme",
"module": "dist/index.mjs"
}
10 changes: 6 additions & 4 deletions bots/chaos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "Hades based crowdsourced message bot.",
"main": "dist/index.js",
"scripts": {
"build": "tsc -p tsconfig.json",
"rebuild": "rm -fr ./dist; tsc -p tsconfig.json",
"build": "tsup src/index.ts --format cjs,esm --dts",
"rebuild": "rm -rf dist; npm run build",
"start": "node dist/index.js",
"watch": "tsc -p tsconfig.json -w"
},
Expand Down Expand Up @@ -51,7 +51,8 @@
"tsconfig-paths": "^4.1.1",
"typescript": "^5.0.0",
"@types/luxon": "^3.1.0",
"eslint-config-prettier": "^9.0.0"
"eslint-config-prettier": "^9.0.0",
"tsup": "~8.0.1"
},
"repository": {
"type": "git",
Expand All @@ -62,5 +63,6 @@
"bugs": {
"url": "https://github.com/hades-ts/hades/issues"
},
"homepage": "https://github.com/hades-ts/hades#readme"
"homepage": "https://github.com/hades-ts/hades#readme",
"module": "dist/index.mjs"
}
10 changes: 6 additions & 4 deletions bots/hades/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "Example Discord bot",
"main": "dist/index.js",
"scripts": {
"build": "tsc -p tsconfig.json",
"rebuild": "rm -fr ./dist; tsc -p tsconfig.json",
"build": "tsup src/index.ts --format cjs,esm --dts",
"rebuild": "rm -rf dist; npm run build",
"start": "node dist/index.js",
"watch": "tsc -p tsconfig.json -w"
},
Expand Down Expand Up @@ -46,7 +46,8 @@
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.1.1",
"typescript": "^5.0.0",
"eslint-config-prettier": "^9.0.0"
"eslint-config-prettier": "^9.0.0",
"tsup": "~8.0.1"
},
"repository": {
"type": "git",
Expand All @@ -57,5 +58,6 @@
"bugs": {
"url": "https://github.com/hades-ts/hades/issues"
},
"homepage": "https://github.com/hades-ts/hades#readme"
"homepage": "https://github.com/hades-ts/hades#readme",
"module": "dist/index.mjs"
}
10 changes: 6 additions & 4 deletions bots/hypnos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "Hades based GPT3 adventure Discord bot",
"main": "dist/index.js",
"scripts": {
"build": "tsc -p tsconfig.json",
"rebuild": "rm -fr ./dist; tsc -p tsconfig.json",
"build": "tsup src/index.ts --format cjs,esm --dts",
"rebuild": "rm -rf dist; npm run build",
"start": "node dist/index.js",
"watch": "tsc -p tsconfig.json -w"
},
Expand Down Expand Up @@ -56,7 +56,8 @@
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.1.1",
"typescript": "^5.0.0",
"eslint-config-prettier": "^9.0.0"
"eslint-config-prettier": "^9.0.0",
"tsup": "~8.0.1"
},
"repository": {
"type": "git",
Expand All @@ -67,5 +68,6 @@
"bugs": {
"url": "https://github.com/hades-ts/hades/issues"
},
"homepage": "https://github.com/hades-ts/hades#readme"
"homepage": "https://github.com/hades-ts/hades#readme",
"module": "dist/index.mjs"
}
10 changes: 6 additions & 4 deletions bots/pythia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "Hades based GPT3 Discord bot",
"main": "dist/index.js",
"scripts": {
"build": "tsc -p tsconfig.json",
"rebuild": "rm -fr ./dist; tsc -p tsconfig.json",
"build": "tsup src/index.ts --format cjs,esm --dts",
"rebuild": "rm -rf dist; npm run build",
"start": "node dist/index.js",
"watch": "tsc -p tsconfig.json -w"
},
Expand Down Expand Up @@ -55,7 +55,8 @@
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.1.1",
"typescript": "^5.0.0",
"eslint-config-prettier": "^9.0.0"
"eslint-config-prettier": "^9.0.0",
"tsup": "~8.0.1"
},
"repository": {
"type": "git",
Expand All @@ -66,5 +67,6 @@
"bugs": {
"url": "https://github.com/hades-ts/hades/issues"
},
"homepage": "https://github.com/hades-ts/hades#readme"
"homepage": "https://github.com/hades-ts/hades#readme",
"module": "dist/index.mjs"
}
10 changes: 6 additions & 4 deletions bots/zeus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "Hades based rules and roles Discord bot.",
"main": "dist/index.js",
"scripts": {
"build": "tsc -p tsconfig.json",
"rebuild": "rm -fr ./dist; tsc -p tsconfig.json",
"build": "tsup src/index.ts --format cjs,esm --dts",
"rebuild": "rm -rf dist; npm run build",
"start": "node dist/index.js",
"watch": "tsc -p tsconfig.json -w"
},
Expand Down Expand Up @@ -51,7 +51,8 @@
"tsconfig-paths": "^4.1.1",
"typescript": "^5.0.0",
"@types/luxon": "^3.1.0",
"eslint-config-prettier": "^9.0.0"
"eslint-config-prettier": "^9.0.0",
"tsup": "~8.0.1"
},
"repository": {
"type": "git",
Expand All @@ -62,5 +63,6 @@
"bugs": {
"url": "https://github.com/hades-ts/hades/issues"
},
"homepage": "https://github.com/hades-ts/hades#readme"
"homepage": "https://github.com/hades-ts/hades#readme",
"module": "dist/index.mjs"
}
Loading

0 comments on commit 37543aa

Please sign in to comment.