mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
chore: switch tsup config to typescript (#9057)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -15,7 +15,7 @@ export function createTsupConfig({
|
|||||||
keepNames = true,
|
keepNames = true,
|
||||||
dts = true,
|
dts = true,
|
||||||
sourcemap = true,
|
sourcemap = true,
|
||||||
esbuildPlugins = []
|
esbuildPlugins = [],
|
||||||
} = {}) {
|
} = {}) {
|
||||||
return defineConfig({
|
return defineConfig({
|
||||||
entry,
|
entry,
|
||||||
@@ -32,6 +32,6 @@ export function createTsupConfig({
|
|||||||
keepNames,
|
keepNames,
|
||||||
dts,
|
dts,
|
||||||
sourcemap,
|
sourcemap,
|
||||||
esbuildPlugins
|
esbuildPlugins,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
"pipeline": {
|
"pipeline": {
|
||||||
"build": {
|
"build": {
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build"],
|
||||||
"inputs": ["../../tsconfig.json", "../../tsup.config.js", "src/**/*.ts", "tsconfig.json", "tsup.config.js"],
|
"inputs": ["../../tsconfig.json", "../../tsup.config.ts", "src/**/*.ts", "tsconfig.json", "tsup.config.ts"],
|
||||||
"outputs": ["dist/**"]
|
"outputs": ["dist/**"]
|
||||||
},
|
},
|
||||||
"@discordjs/ui#build": {
|
"@discordjs/ui#build": {
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
".prettierrc.json",
|
".prettierrc.json",
|
||||||
"tsconfig.json",
|
"tsconfig.json",
|
||||||
"tsconfig.eslint.json",
|
"tsconfig.eslint.json",
|
||||||
"tsup.config.js",
|
"tsup.config.ts",
|
||||||
"vite.config.ts"
|
"vite.config.ts"
|
||||||
],
|
],
|
||||||
"outputs": []
|
"outputs": []
|
||||||
@@ -124,7 +124,7 @@
|
|||||||
".prettierrc.json",
|
".prettierrc.json",
|
||||||
"tsconfig.json",
|
"tsconfig.json",
|
||||||
"tsconfig.eslint.json",
|
"tsconfig.eslint.json",
|
||||||
"tsup.config.js",
|
"tsup.config.ts",
|
||||||
"vite.config.ts"
|
"vite.config.ts"
|
||||||
],
|
],
|
||||||
"outputs": []
|
"outputs": []
|
||||||
|
|||||||
Reference in New Issue
Block a user