Skip to content

Commit 47767b8

Browse files
committed
chore: wip
1 parent b3288be commit 47767b8

File tree

7 files changed

+57
-10
lines changed

7 files changed

+57
-10
lines changed

packages/bun-plugin/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"isolated declarations",
2121
"development",
2222
"bun",
23+
"plugin",
2324
"stacks",
2425
"typescript",
2526
"javascript"

packages/bun-plugin/src/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { DtsGenerationOption } from '@stacksjs/dtsx'
22
import type { BunPlugin } from 'bun'
3+
import process from 'node:process'
34
import { generate } from '@stacksjs/dtsx'
45

56
/**
@@ -49,9 +50,9 @@ function normalizeConfig(options: PluginConfig, build: PluginConfig['build']): D
4950

5051
return {
5152
...options,
52-
cwd: options.cwd,
53+
cwd: options.cwd || process.cwd(),
5354
root,
54-
entrypoints: options.entrypoints,
55+
entrypoints: options.entrypoints || ['**/*.ts'],
5556
outdir,
5657
clean: options.clean,
5758
tsconfigPath: options.tsconfigPath,

packages/bun-plugin/tsconfig.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"rootDir": "./src",
5+
"outDir": "./dist"
6+
},
7+
"include": [
8+
"src/**/*.ts"
9+
],
10+
"exclude": [
11+
"node_modules",
12+
"dist"
13+
]
14+
}

packages/dtsx/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import fs from 'node:fs/promises'
2-
import dts from '../bun-plugin/src/index'
2+
import dts from 'bun-plugin-dtsx'
33

44
console.log('Building...')
55

packages/dtsx/tsconfig.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"rootDir": "./src",
5+
"outDir": "./dist"
6+
},
7+
"include": [
8+
"src/**/*.ts"
9+
],
10+
"exclude": [
11+
"node_modules",
12+
"dist"
13+
]
14+
}

packages/vite-plugin/tsconfig.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"rootDir": "./src",
5+
"outDir": "./dist"
6+
},
7+
"include": [
8+
"src/**/*.ts"
9+
],
10+
"exclude": [
11+
"node_modules",
12+
"dist"
13+
]
14+
}

tsconfig.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@
88
"module": "esnext",
99
"moduleResolution": "bundler",
1010
"paths": {
11-
"@stacksjs/dtsx": ["./packages/dtsx/src/index.ts"]
11+
"@stacksjs/dtsx": [
12+
"./packages/dtsx/src/index.ts"
13+
],
14+
"bun-plugin-dtsx": [
15+
"./packages/bun-plugin/src/index.ts"
16+
],
17+
"vite-plugin-dtsx": [
18+
"./packages/vite-plugin/src/index.ts"
19+
]
1220
},
1321
"resolveJsonModule": true,
1422
"allowImportingTsExtensions": true,
@@ -24,10 +32,5 @@
2432
"verbatimModuleSyntax": true,
2533
"skipDefaultLibCheck": true,
2634
"skipLibCheck": true
27-
},
28-
"exclude": [
29-
"**/fixtures",
30-
"**/example",
31-
"**/dist"
32-
]
35+
}
3336
}

0 commit comments

Comments
 (0)