-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtsdown.config.ts
More file actions
63 lines (59 loc) · 1.49 KB
/
tsdown.config.ts
File metadata and controls
63 lines (59 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import { defineConfig } from 'tsdown'
import packageJson from './package.json' with { type: 'json' }
const { dependencies, peerDependencies } = packageJson
const playgrounds = './playgrounds'
const thisPath = import.meta.url
const playgroundPath = new URL(playgrounds, thisPath).pathname
export default defineConfig({
entry: [
// Main entry points
'src/index.ts',
'src/define.ts',
'src/config.ts',
// Subscription client (browser-side)
'src/subscribe/index.ts',
// Core (framework-agnostic)
'src/core/**',
// CLI
'src/cli/**',
// Nitro integration
'src/nitro/**',
// Nuxt module
'src/nuxt.ts',
// Runtime type stubs
'src/stubs/**',
],
format: ['esm'],
dts: true,
clean: true,
name: 'nitro-graphql',
unbundle: true,
deps: { neverBundle: [
'nitro-graphql/native',
'nitro-graphql',
'nitro',
'nitro/types',
'graphql',
'graphql-yoga',
'#nitro-graphql/server-schemas',
'#nitro-graphql/server-resolvers',
'#nitro-graphql/server-directives',
'#nitro-graphql/graphql-config',
'#nitro-graphql/module-config',
'#nitro-graphql/debug-info',
'#nitro-graphql/pubsub',
'@nuxt/kit',
'@nuxt/schema',
'@apollo/server',
'@apollo/server/plugin/landingPage/default',
'nitro-graphql/apollo',
'nitro-graphql/pubsub',
'vite',
'#graphql/server',
...Object.keys(dependencies || {}),
...Object.keys(peerDependencies || {}),
] },
ignoreWatch: [
playgroundPath,
],
})