clean up dependencies

This commit is contained in:
Jacob Nguyen
2024-04-29 00:13:16 -05:00
parent 821de65b86
commit 87c5631e57
3 changed files with 19 additions and 2282 deletions

View File

@@ -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,

View File

@@ -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,
},
]);

2258
yarn.lock

File diff suppressed because it is too large Load Diff