BREAKING CHANGE: Change build system
This commit is contained in:
parent
1875de42b5
commit
111a0b6e7c
4 changed files with 71 additions and 1476 deletions
5
nodemon.json
Normal file
5
nodemon.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"ext": "ts,json",
|
||||
"exec": "pnpm build --sourcemap && node dist/src",
|
||||
"ignore": ["dist/**/*.*"]
|
||||
}
|
11
package.json
11
package.json
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "muffinbot",
|
||||
"version": "4.0.0-pudding.e241008a.change_build_system_and_package_manager",
|
||||
"version": "4.0.0-pudding.e241008b.change_build_system_and_package_manager",
|
||||
"main": "dist/index.js",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
|
@ -24,21 +24,20 @@
|
|||
"@types/semver": "^7.5.8",
|
||||
"@typescript-eslint/eslint-plugin": "^8.7.0",
|
||||
"@typescript-eslint/parser": "^8.7.0",
|
||||
"@yarnpkg/pnpify": "^4.1.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^9.11.1",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-prettier": "^5.2.1",
|
||||
"globals": "^15.9.0",
|
||||
"nodemon": "^3.1.7",
|
||||
"prettier": "^3.3.3",
|
||||
"prisma": "^5.20.0",
|
||||
"tsup": "^8.3.0",
|
||||
"typescript": "^5.6.2"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsup",
|
||||
"dev": "cross-env NODE_ENV=development tsup --watch --onSuccess \"node --enable-source-maps dist\"",
|
||||
"start": "cross-env NODE_ENV=production node dist",
|
||||
"build": "tsc",
|
||||
"dev": "cross-env NODE_ENV=development nodemon",
|
||||
"start": "cross-env NODE_ENV=production node dist/src",
|
||||
"db:pull": "prisma db pull",
|
||||
"db:push": "prisma db push",
|
||||
"db:generate": "prisma generate"
|
||||
|
|
1520
pnpm-lock.yaml
1520
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
|
@ -1,11 +0,0 @@
|
|||
import { defineConfig } from 'tsup'
|
||||
|
||||
const sourcemap = process.env.NODE_ENV === 'development' ? true : false
|
||||
|
||||
export default defineConfig({
|
||||
clean: true,
|
||||
format: ['cjs'],
|
||||
entry: ['src/index.ts'],
|
||||
minify: true,
|
||||
sourcemap,
|
||||
})
|
Loading…
Reference in a new issue