@xyd-js/sources 0.0.1-xyd.0
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/CHANGELOG.md +9 -0
- package/README.md +3 -0
- package/TODO.md +6 -0
- package/dist/example.cjs +642 -0
- package/dist/example.cjs.map +1 -0
- package/dist/example.d.cts +2 -0
- package/dist/example.d.ts +2 -0
- package/dist/example.js +618 -0
- package/dist/example.js.map +1 -0
- package/dist/index.cjs +647 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +83 -0
- package/dist/index.d.ts +83 -0
- package/dist/index.js +612 -0
- package/dist/index.js.map +1 -0
- package/docs/README.md +20 -0
- package/docs/classes/ExampleClass.md +35 -0
- package/docs/functions/gqlSchemaToReferences.md +27 -0
- package/docs/functions/helloWorld.md +17 -0
- package/docs/functions/helloWorldV2.md +33 -0
- package/docs/functions/helloWorldV3.md +35 -0
- package/docs.json +551 -0
- package/example/package-a/package.json +4 -0
- package/example/package-a/src/index.ts +56 -0
- package/example/package-a/tsconfig.json +23 -0
- package/example/package-b/package.json +7 -0
- package/example/package-b/src/billing.ts +193 -0
- package/example/package-b/src/index.ts +8 -0
- package/example/package-b/tsconfig.json +20 -0
- package/package.json +22 -0
- package/references_todo.json +220 -0
- package/src/SignatureText.ts +214 -0
- package/src/TypeDocTransformer.ts +572 -0
- package/src/index.ts +45 -0
- package/test-cmd/index.ts +62 -0
- package/tsconfig.json +30 -0
- package/tsup.config.ts +39 -0
package/tsup.config.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {defineConfig, Options} from 'tsup';
|
|
2
|
+
|
|
3
|
+
const config: Options = {
|
|
4
|
+
entry: {
|
|
5
|
+
index: 'src/index.ts',
|
|
6
|
+
example: 'test-cmd/index.ts'
|
|
7
|
+
|
|
8
|
+
},
|
|
9
|
+
format: ['esm', 'cjs'], // Output both ESM and CJS formats
|
|
10
|
+
target: 'node16', // Ensure compatibility with Node.js 16
|
|
11
|
+
dts: {
|
|
12
|
+
entry: {
|
|
13
|
+
index: 'src/index.ts',
|
|
14
|
+
example: 'test-cmd/index.ts'
|
|
15
|
+
|
|
16
|
+
},
|
|
17
|
+
resolve: true, // Resolve external types
|
|
18
|
+
},
|
|
19
|
+
splitting: false, // Disable code splitting
|
|
20
|
+
sourcemap: true, // Generate source maps
|
|
21
|
+
clean: true, // Clean the output directory before each build
|
|
22
|
+
esbuildOptions: (options) => {
|
|
23
|
+
options.platform = 'node'; // Ensure the platform is set to Node.js
|
|
24
|
+
options.external = [
|
|
25
|
+
'react',
|
|
26
|
+
'fs',
|
|
27
|
+
'path',
|
|
28
|
+
'node:fs',
|
|
29
|
+
'node:fs/promises',
|
|
30
|
+
'typescript', // Mark typescript as external
|
|
31
|
+
'codehike',
|
|
32
|
+
'unist-util-visit',
|
|
33
|
+
'@mdx-js/mdx'
|
|
34
|
+
]; // Mark these modules as external
|
|
35
|
+
options.loader = { '.js': 'jsx' }; // Ensure proper handling of .js files
|
|
36
|
+
},
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export default defineConfig(config);
|