Download packages/node-sdk/tsdown.config.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 999 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/node-sdk/tsdown.config.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/node-sdk/tsdown.config.ts
-
curl -L -o tsdown.config.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/node-sdk/tsdown.config.ts
999 Bytes
| import { fileURLToPath } from 'node:url'; | |
| import { defineConfig } from 'tsdown'; | |
| import { rawTextPlugin } from '../../build/raw-text-plugin.mjs'; | |
| export default defineConfig({ | |
| entry: ['./src/index.ts'], | |
| format: ['esm'], | |
| dts: false, | |
| outDir: 'dist', | |
| clean: true, | |
| plugins: [rawTextPlugin()], | |
| banner: { | |
| js: [ | |
| "import { fileURLToPath as __cjsShimFileURLToPath } from 'node:url';", | |
| "import { dirname as __cjsShimDirname } from 'node:path';", | |
| 'const __filename = __cjsShimFileURLToPath(import.meta.url);', | |
| 'const __dirname = __cjsShimDirname(__filename);', | |
| ].join('\n'), | |
| }, | |
| alias: { | |
| '@moonshot-ai/kaos': fileURLToPath(new URL('../kaos/src/index.ts', import.meta.url)), | |
| '@moonshot-ai/kimi-code-oauth': fileURLToPath(new URL('../oauth/src/index.ts', import.meta.url)), | |
| '@moonshot-ai/kosong': fileURLToPath(new URL('../kosong/src/index.ts', import.meta.url)), | |
| }, | |
| deps: { | |
| alwaysBundle: [/^@moonshot-ai\//], | |
| neverBundle: [], | |
| }, | |
| }); | |