chore; use tsup for building
Some checks are pending
Build and Publish Docker Image / build-publish (push) Waiting to run

This commit is contained in:
William Oldham 2025-01-09 17:35:49 +00:00
parent 20e2a4a3d4
commit fec123d838
4 changed files with 14730 additions and 12839 deletions

27544
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -4,11 +4,11 @@
"description": "",
"main": "dist/server.js",
"scripts": {
"lint": "npx eslint .",
"lint:fix": "npx eslint . --fix",
"build": "npm run lint && npm run clean && npx tsc && npx tsc-alias",
"clean": "rimraf ./dist",
"start": "node --enable-source-maps ."
"dev": "tsup --watch --onSuccess \"node dist/server.js\"",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"build": "npm run lint && tsup",
"start": "node --enable-source-maps dist/server.js"
},
"keywords": [],
"author": "",
@ -47,8 +47,9 @@
"eslint-import-resolver-typescript": "^3.7.0",
"eslint-plugin-import": "^2.31.0",
"tsc-alias": "^1.8.10",
"tsup": "^8.3.5",
"typescript": "^5.7.2",
"typescript-eslint": "^8.19.1",
"xmlbuilder2": "^3.1.1"
}
}
}

View File

@ -5,7 +5,7 @@
"resolveJsonModule": true,
"module": "ES2022",
"esModuleInterop": true,
"moduleResolution": "node",
"moduleResolution": "bundler",
"baseUrl": "src",
"outDir": "dist",
"allowJs": true,

10
tsup.config.ts Normal file
View File

@ -0,0 +1,10 @@
import { defineConfig } from 'tsup';
export default defineConfig({
entry: ['src/server.ts'],
splitting: false,
sourcemap: true,
platform: 'node',
clean: true,
format: ['cjs']
});