@lssm/tool.tsdown 0.0.0-canary-20251207013726 → 0.0.0-canary-20251207123819

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.
Files changed (2) hide show
  1. package/index.js +4 -71
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineConfig } from 'tsdown';
2
2
 
3
- export const withDevExports = ({
3
+ export const withDevExports = {
4
4
  exports: {
5
5
  all: true,
6
6
  devExports: true,
7
7
  },
8
- });
8
+ };
9
9
 
10
10
  const obfuscation = defineConfig({
11
11
  minify: {
@@ -27,18 +27,14 @@ const obfuscation = defineConfig({
27
27
  export const base = defineConfig({
28
28
  exports: {
29
29
  all: true,
30
- devExports: false,
30
+ devExports: true,
31
31
  },
32
32
  clean: true,
33
33
  sourcemap: false,
34
34
  format: ['esm'],
35
- // format: ['esm', 'cjs'],
36
- // format: ['esm'],
37
35
  target: 'esnext',
38
- // Let packages add their own externals; keep common ones minimal.
39
- external: [],
40
36
 
41
- dts: true,
37
+ dts: false,
42
38
  // bundle: false,
43
39
  unbundle: true,
44
40
  splitting: false,
@@ -53,64 +49,9 @@ export const base = defineConfig({
53
49
  ],
54
50
  });
55
51
 
56
- const sharedExternal = [
57
- 'next',
58
- 'next/headers',
59
- 'next/navigation',
60
- 'next/link',
61
- 'react',
62
- 'react-dom',
63
- 'react-native',
64
- 'server-only',
65
- '@lssm/lib.ui-kit-web',
66
- '@lssm/lib.ui-kit',
67
- '@lssm/lib.ui-kit/*',
68
- '@lssm/lib.ui-kit-web/*',
69
- '@lssm/lib.ui-kit-web/ui/*',
70
- 'lucide-react',
71
- 'lucide-react-native',
72
- 'react-native',
73
- 'react-native-safe-area-context',
74
- 'expo',
75
- 'expo-router',
76
- '@prisma/client',
77
- '@prisma/client/runtime/client',
78
- '@prisma/client/runtime',
79
- '@prisma/adapter-pg',
80
- 'pg',
81
- 'graphql',
82
- 'elysia',
83
- 'posthog-node',
84
- 'posthog-js',
85
- 'posthog',
86
- 'posthog-browser',
87
- 'posthog-react',
88
- 'posthog-react-native',
89
- 'jotai',
90
- 'jotai-tanstack-query',
91
- '@tanstack/query-core',
92
- '@tanstack/react-query',
93
- '@tanstack/react-query-devtools',
94
- '@sentry/nextjs',
95
- 'react-map-gl',
96
- 'react-map-gl/maplibre',
97
- 'maplibre-gl',
98
- 'node:buffer',
99
- 'node:timers/promises',
100
- 'node:crypto',
101
- 'node:assert',
102
- 'node:url',
103
- '@google-cloud/secret-manager',
104
- '@google-cloud/storage',
105
- '@google-cloud/pubsub',
106
- 'googleapis',
107
- 'postmark',
108
- ];
109
-
110
52
  export const reactLibrary = defineConfig({
111
53
  ...base,
112
54
  format: ['esm'],
113
- external: [...sharedExternal],
114
55
  minify: false,
115
56
  platform: 'browser',
116
57
  });
@@ -118,13 +59,7 @@ export const reactLibrary = defineConfig({
118
59
  export const moduleLibrary = defineConfig({
119
60
  ...base,
120
61
  format: ['esm'],
121
- external: [...sharedExternal],
122
62
  platform: 'neutral',
123
- exports: {
124
- all: true,
125
- devExports: false,
126
- },
127
- skipNodeModulesBundle: true,
128
63
  ...obfuscation,
129
64
  });
130
65
 
@@ -133,7 +68,6 @@ export const nodeLib = defineConfig({
133
68
  format: ['esm'],
134
69
  // format: ['esm', 'cjs'],
135
70
  platform: 'node',
136
- external: [...sharedExternal],
137
71
  ...obfuscation,
138
72
  });
139
73
 
@@ -143,7 +77,6 @@ export const nodeDatabaseLib = defineConfig({
143
77
  platform: 'node',
144
78
  // platform: 'neutral',
145
79
  unbundle: true,
146
- external: [...sharedExternal],
147
80
  // ...obfuscation,
148
81
  entry: ['src/index.ts', 'src/client.ts', 'src/enums.ts', 'src/models.ts'],
149
82
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/tool.tsdown",
3
- "version": "0.0.0-canary-20251207013726",
3
+ "version": "0.0.0-canary-20251207123819",
4
4
  "type": "module",
5
5
  "description": "Shared tsdown config presets for LSSM monorepo",
6
6
  "exports": {