@lssm/tool.tsdown 0.12.1 → 1.42.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/LICENSE +21 -0
- package/index.js +25 -82
- package/package.json +14 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Chaman Ventures, SASU
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/index.js
CHANGED
|
@@ -1,23 +1,33 @@
|
|
|
1
1
|
import { defineConfig } from 'tsdown';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
dropDebugger: true,
|
|
8
|
-
unused: true,
|
|
9
|
-
},
|
|
10
|
-
mangle: {
|
|
11
|
-
toplevel: true,
|
|
12
|
-
keepNames: false,
|
|
13
|
-
},
|
|
14
|
-
codegen: {
|
|
15
|
-
removeWhitespace: true,
|
|
16
|
-
},
|
|
3
|
+
export const withDevExports = {
|
|
4
|
+
exports: {
|
|
5
|
+
all: true,
|
|
6
|
+
devExports: false,
|
|
17
7
|
},
|
|
18
|
-
}
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const obfuscation =
|
|
11
|
+
{} ||
|
|
12
|
+
defineConfig({
|
|
13
|
+
minify: {
|
|
14
|
+
compress: {
|
|
15
|
+
dropConsole: false,
|
|
16
|
+
dropDebugger: true,
|
|
17
|
+
unused: true,
|
|
18
|
+
},
|
|
19
|
+
mangle: {
|
|
20
|
+
toplevel: true,
|
|
21
|
+
keepNames: false,
|
|
22
|
+
},
|
|
23
|
+
codegen: {
|
|
24
|
+
removeWhitespace: true,
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
});
|
|
19
28
|
|
|
20
29
|
export const base = defineConfig({
|
|
30
|
+
skipNodeModulesBundle: true,
|
|
21
31
|
exports: {
|
|
22
32
|
all: true,
|
|
23
33
|
devExports: false,
|
|
@@ -25,11 +35,7 @@ export const base = defineConfig({
|
|
|
25
35
|
clean: true,
|
|
26
36
|
sourcemap: false,
|
|
27
37
|
format: ['esm'],
|
|
28
|
-
// format: ['esm', 'cjs'],
|
|
29
|
-
// format: ['esm'],
|
|
30
38
|
target: 'esnext',
|
|
31
|
-
// Let packages add their own externals; keep common ones minimal.
|
|
32
|
-
external: [],
|
|
33
39
|
|
|
34
40
|
dts: true,
|
|
35
41
|
// bundle: false,
|
|
@@ -46,64 +52,9 @@ export const base = defineConfig({
|
|
|
46
52
|
],
|
|
47
53
|
});
|
|
48
54
|
|
|
49
|
-
const sharedExternal = [
|
|
50
|
-
'next',
|
|
51
|
-
'next/headers',
|
|
52
|
-
'next/navigation',
|
|
53
|
-
'next/link',
|
|
54
|
-
'react',
|
|
55
|
-
'react-dom',
|
|
56
|
-
'react-native',
|
|
57
|
-
'server-only',
|
|
58
|
-
'@lssm/lib.ui-kit-web',
|
|
59
|
-
'@lssm/lib.ui-kit',
|
|
60
|
-
'@lssm/lib.ui-kit/*',
|
|
61
|
-
'@lssm/lib.ui-kit-web/*',
|
|
62
|
-
'@lssm/lib.ui-kit-web/ui/*',
|
|
63
|
-
'lucide-react',
|
|
64
|
-
'lucide-react-native',
|
|
65
|
-
'react-native',
|
|
66
|
-
'react-native-safe-area-context',
|
|
67
|
-
'expo',
|
|
68
|
-
'expo-router',
|
|
69
|
-
'@prisma/client',
|
|
70
|
-
'@prisma/client/runtime/client',
|
|
71
|
-
'@prisma/client/runtime',
|
|
72
|
-
'@prisma/adapter-pg',
|
|
73
|
-
'pg',
|
|
74
|
-
'graphql',
|
|
75
|
-
'elysia',
|
|
76
|
-
'posthog-node',
|
|
77
|
-
'posthog-js',
|
|
78
|
-
'posthog',
|
|
79
|
-
'posthog-browser',
|
|
80
|
-
'posthog-react',
|
|
81
|
-
'posthog-react-native',
|
|
82
|
-
'jotai',
|
|
83
|
-
'jotai-tanstack-query',
|
|
84
|
-
'@tanstack/query-core',
|
|
85
|
-
'@tanstack/react-query',
|
|
86
|
-
'@tanstack/react-query-devtools',
|
|
87
|
-
'@sentry/nextjs',
|
|
88
|
-
'react-map-gl',
|
|
89
|
-
'react-map-gl/maplibre',
|
|
90
|
-
'maplibre-gl',
|
|
91
|
-
'node:buffer',
|
|
92
|
-
'node:timers/promises',
|
|
93
|
-
'node:crypto',
|
|
94
|
-
'node:assert',
|
|
95
|
-
'node:url',
|
|
96
|
-
'@google-cloud/secret-manager',
|
|
97
|
-
'@google-cloud/storage',
|
|
98
|
-
'@google-cloud/pubsub',
|
|
99
|
-
'googleapis',
|
|
100
|
-
'postmark',
|
|
101
|
-
];
|
|
102
|
-
|
|
103
55
|
export const reactLibrary = defineConfig({
|
|
104
56
|
...base,
|
|
105
57
|
format: ['esm'],
|
|
106
|
-
external: [...sharedExternal],
|
|
107
58
|
minify: false,
|
|
108
59
|
platform: 'browser',
|
|
109
60
|
});
|
|
@@ -111,13 +62,7 @@ export const reactLibrary = defineConfig({
|
|
|
111
62
|
export const moduleLibrary = defineConfig({
|
|
112
63
|
...base,
|
|
113
64
|
format: ['esm'],
|
|
114
|
-
external: [...sharedExternal],
|
|
115
65
|
platform: 'neutral',
|
|
116
|
-
exports: {
|
|
117
|
-
all: true,
|
|
118
|
-
devExports: false,
|
|
119
|
-
},
|
|
120
|
-
skipNodeModulesBundle: true,
|
|
121
66
|
...obfuscation,
|
|
122
67
|
});
|
|
123
68
|
|
|
@@ -126,7 +71,6 @@ export const nodeLib = defineConfig({
|
|
|
126
71
|
format: ['esm'],
|
|
127
72
|
// format: ['esm', 'cjs'],
|
|
128
73
|
platform: 'node',
|
|
129
|
-
external: [...sharedExternal],
|
|
130
74
|
...obfuscation,
|
|
131
75
|
});
|
|
132
76
|
|
|
@@ -136,7 +80,6 @@ export const nodeDatabaseLib = defineConfig({
|
|
|
136
80
|
platform: 'node',
|
|
137
81
|
// platform: 'neutral',
|
|
138
82
|
unbundle: true,
|
|
139
|
-
external: [...sharedExternal],
|
|
140
83
|
// ...obfuscation,
|
|
141
84
|
entry: ['src/index.ts', 'src/client.ts', 'src/enums.ts', 'src/models.ts'],
|
|
142
85
|
});
|
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/tool.tsdown",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.42.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Shared tsdown config presets for LSSM monorepo",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
|
|
8
|
+
"publish:pkg:canary": "bun publish:pkg --tag canary"
|
|
9
|
+
},
|
|
6
10
|
"exports": {
|
|
7
11
|
".": "./index.js"
|
|
8
12
|
},
|
|
@@ -11,9 +15,16 @@
|
|
|
11
15
|
"README.md"
|
|
12
16
|
],
|
|
13
17
|
"peerDependencies": {
|
|
14
|
-
"tsdown": "^0.
|
|
18
|
+
"tsdown": "^0.18.3"
|
|
15
19
|
},
|
|
16
20
|
"publishConfig": {
|
|
17
|
-
"access": "public"
|
|
21
|
+
"access": "public",
|
|
22
|
+
"registry": "https://registry.npmjs.org/"
|
|
23
|
+
},
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "https://github.com/lssm-tech/contractspec.git",
|
|
28
|
+
"directory": "packages/tools/tsdown"
|
|
18
29
|
}
|
|
19
30
|
}
|