diff --git a/build/clean.ts b/build/clean.ts deleted file mode 100644 index 8161983b3c..0000000000 --- a/build/clean.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { cwd, getPackages } from '@koishijs/scripts' -import { rm } from 'fs/promises' -import cac from 'cac' - -const { args } = cac().help().parse() - -;(async () => { - const packages = await getPackages(args) - await Promise.all(Object.keys(packages).flatMap((path) => [ - rm(cwd + path + '/dist', { recursive: true, force: true }), - rm(cwd + path + '/lib', { recursive: true, force: true }), - rm(cwd + path + '/temp', { recursive: true, force: true }), - rm(cwd + path + '/tsconfig.tsbuildinfo', { recursive: true, force: true }), - ])) -})() diff --git a/build/index.ts b/build/index.ts deleted file mode 100644 index bbe45dc7da..0000000000 --- a/build/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { BuildOptions } from 'esbuild' - -interface InputBuildOptions extends BuildOptions { - entryPoints: string[] -} - -type DefineBuild = (base: string, options: InputBuildOptions) => void | Promise | BuildOptions[] | Promise - -export const defineBuild = (callback: DefineBuild) => callback diff --git a/build/tsconfig.json b/build/tsconfig.json deleted file mode 100644 index fd9a7ec467..0000000000 --- a/build/tsconfig.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "../tsconfig.base" -} \ No newline at end of file