mirror of
https://github.com/sern-handler/handler
synced 2026-06-06 01:16:55 +00:00
clean up dependencies
This commit is contained in:
@@ -23,8 +23,8 @@
|
||||
"build:prod": "tsup ",
|
||||
"prepare": "tsc",
|
||||
"pretty": "prettier --write .",
|
||||
"tdd": "vitest",
|
||||
"test": "vitest --run",
|
||||
"tdd": "npx vitest",
|
||||
"test": "npx vitest --run",
|
||||
"analyze-imports": "npx depcruise src --include-only \"^src\" --output-type dot | dot -T svg > dependency-graph.svg"
|
||||
},
|
||||
"keywords": [
|
||||
@@ -52,9 +52,7 @@
|
||||
"discord.js": "^14.11.0",
|
||||
"eslint": "8.39.0",
|
||||
"prettier": "2.8.8",
|
||||
"tsup": "^6.7.0",
|
||||
"typescript": "5.0.2",
|
||||
"vitest": "latest"
|
||||
"typescript": "5.0.2"
|
||||
},
|
||||
"prettier": {
|
||||
"semi": true,
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
import { defineConfig } from 'tsup';
|
||||
|
||||
const shared = {
|
||||
entry: ['src/index.ts'],
|
||||
external: ['discord.js', 'iti'],
|
||||
platform: 'node',
|
||||
clean: true,
|
||||
sourcemap: true,
|
||||
treeshake: {
|
||||
moduleSideEffects: false,
|
||||
correctVarValueBeforeDeclaration: true, //need this to treeshake esm discord.js empty import
|
||||
annotations: true,
|
||||
},
|
||||
};
|
||||
export default defineConfig([
|
||||
{
|
||||
...shared,
|
||||
format: ['esm', 'cjs'],
|
||||
target: 'node18',
|
||||
tsconfig: './tsconfig.json',
|
||||
outDir: './dist',
|
||||
minify: false,
|
||||
dts: true,
|
||||
entry: ['src/_internal.ts'],
|
||||
},
|
||||
{
|
||||
format: ['esm', 'cjs'],
|
||||
target: 'node18',
|
||||
tsconfig: './tsconfig.json',
|
||||
outDir: './dist',
|
||||
minify: false,
|
||||
dts: true,
|
||||
...shared,
|
||||
},
|
||||
]);
|
||||
Reference in New Issue
Block a user