@xyd-js/documan 0.1.0-xyd.6 → 0.1.0-xyd.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/tsup.config.ts DELETED
@@ -1,81 +0,0 @@
1
- import {defineConfig} from 'tsup';
2
- import pkg from './package.json';
3
-
4
- const deps = [
5
- ...Object.keys(pkg.dependencies || {}),
6
- ...Object.keys(pkg.devDependencies || {}),
7
- ].filter((dep) => [
8
- "@xyd-js/core",
9
- "@xyd-js/content",
10
- "@xyd-js/framework",
11
- "@xyd-js/ui",
12
- "@xyd-js/openapi",
13
- "@xyd-js/uniform",
14
- "@xyd-js/theme-gusto",
15
- // "@xyd-js/plugin-zero", // TODO: because plugin-zero has react-router dependency
16
- ].indexOf(dep) === -1)
17
-
18
- export default defineConfig({
19
- entry: {
20
- index: 'src/index.ts',
21
- dev: 'src/commands/dev.ts',
22
- build: 'src/commands/build.ts',
23
- serve: 'src/commands/serve.ts',
24
- },
25
- dts: {
26
- entry: {
27
- index: 'src/index.ts',
28
- dev: 'src/commands/dev.ts',
29
- build: 'src/commands/build.ts',
30
- serve: 'src/commands/serve.ts',
31
- },
32
- resolve: true, // Resolve external types
33
- },
34
-
35
- format: ["esm"],
36
- platform: 'node',
37
- shims: false,
38
- splitting: false,
39
- sourcemap: true,
40
- clean: true,
41
- bundle: true, // Enable bundling
42
- external: [
43
- ...deps,
44
-
45
- // needed by @xyd-js/plugin-zero
46
- "react-router",
47
- "@react-router/dev",
48
- "@react-router/express",
49
-
50
- "@xyd-js/react-router-dev",
51
-
52
- "@readme/json-schema-ref-parser",
53
- "@apidevtools/json-schema-ref-parser",
54
- //
55
-
56
- //
57
- // Externalize Node.js built-in modules
58
- /^node:.*/,
59
- 'fs',
60
- 'path',
61
- 'url',
62
- 'os',
63
- 'http',
64
- 'https',
65
- 'stream',
66
- 'zlib',
67
- 'util',
68
- 'crypto',
69
- 'tty',
70
-
71
- // "lightningcss",
72
- // "vite",
73
- // "vite-tsconfig-paths",
74
- // "react-router",
75
- // "@react-router/serve",
76
- // "@react-router/dev",
77
- // "@xydjs/react-router-dev",
78
- // "@mdx-js/rollup",
79
- // "@graphql-markdown"
80
- ], // Ensure no dependencies are marked as external
81
- })