mirror of
https://github.com/PretendoNetwork/BOSS.git
synced 2026-03-21 17:34:19 -05:00
chore; use tsup for building
Some checks are pending
Build and Publish Docker Image / build-publish (push) Waiting to run
Some checks are pending
Build and Publish Docker Image / build-publish (push) Waiting to run
This commit is contained in:
parent
20e2a4a3d4
commit
fec123d838
27544
package-lock.json
generated
27544
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
13
package.json
13
package.json
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
10
tsup.config.ts
Normal 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']
|
||||
});
|
||||
Loading…
Reference in New Issue
Block a user