Skip to content

Commit 073ca58

Browse files
feat: add playground path handling and include dependencies in tsdown config
1 parent 10a1dc9 commit 073ca58

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tsdown.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
import { defineConfig } from 'tsdown'
2+
import { dependencies } from './package.json'
3+
4+
const playground = './playground'
5+
6+
const thisPath = import.meta.url
7+
const playgroundPath = new URL(playground, thisPath).pathname
28

39
export default defineConfig({
410
entry: ['src/index.ts'],
@@ -14,5 +20,9 @@ export default defineConfig({
1420
'@graphql-tools/schema',
1521
'node:fs',
1622
'node:path',
23+
...Object.keys(dependencies || {}),
24+
],
25+
ignoreWatch: [
26+
playgroundPath,
1727
],
1828
})

0 commit comments

Comments
 (0)