remove extra build logic

This commit is contained in:
geoffsee
2025-04-06 11:07:47 -04:00
committed by Geoff Seemueller
parent 88d5b0afba
commit 30582d3f34
2 changed files with 10 additions and 2 deletions

View File

@@ -2,9 +2,17 @@ import isolatedDecl from 'bun-plugin-isolated-decl';
// handles building the library // handles building the library
await Bun.build({ await Bun.build({
entrypoints: ['./src/*.ts'], entrypoints: [
"src/cli.ts",
"src/fileExclusions.ts",
"src/fileTypeExclusions.ts",
"src/index.ts",
"src/MarkdownGenerator.ts",
"src/TokenCleaner.ts"
],
outdir: './dist', outdir: './dist',
target: 'node', target: 'node',
splitting: true,
plugins: [ plugins: [
isolatedDecl({ isolatedDecl({
forceGenerate: true, // Generate declaration files even if there are errors forceGenerate: true, // Generate declaration files even if there are errors

View File

@@ -36,7 +36,7 @@
], ],
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
"scripts": { "scripts": {
"build": "rm -rf dist && bun build ./src/index.ts ./src/cli.ts --splitting --outdir dist --target node && bun ./build.ts", "build": "rm -rf dist && bun ./build.ts",
"test": "bun test", "test": "bun test",
"prepublishOnly": "bun run build", "prepublishOnly": "bun run build",
"dev": "bun run .", "dev": "bun run .",