@adaas/a-utils 0.1.19 → 0.1.20
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/dist/index.cjs +45 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.mjs +44 -3084
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/tsup.config.ts +30 -13
- package/dist/index.js +0 -3110
- package/dist/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaas/a-utils",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"description": "A-Utils is a set of utilities that are used across the ADAAS ecosystem. This package is designed to be a collection of utilities that are used across the ADAAS ecosystem.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.cjs",
|
package/tsup.config.ts
CHANGED
|
@@ -1,15 +1,32 @@
|
|
|
1
1
|
import { defineConfig } from "tsup";
|
|
2
2
|
|
|
3
|
-
export default defineConfig({
|
|
4
|
-
entry: ["src/index.ts"],
|
|
5
|
-
format: ["esm", "cjs"],
|
|
6
|
-
dts: true,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
target: "es2020",
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
3
|
+
export default defineConfig((options) => ({
|
|
4
|
+
entry: ["src/index.ts"],
|
|
5
|
+
format: ["esm", "cjs"],
|
|
6
|
+
dts: true,
|
|
7
|
+
clean: !options.watch,
|
|
8
|
+
sourcemap: true,
|
|
9
|
+
target: "es2020",
|
|
10
|
+
minify: !options.watch,
|
|
11
|
+
treeshake: "recommended",
|
|
12
|
+
skipNodeModulesBundle: true,
|
|
13
|
+
splitting: false,
|
|
14
|
+
silent: false,
|
|
15
|
+
platform: "neutral",
|
|
16
|
+
// Add hash to filenames for cache busting in production builds
|
|
17
|
+
outExtension({ format }) {
|
|
18
|
+
return {
|
|
19
|
+
js: format === "esm" ? `.mjs` : `.cjs`,
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
// Extra optimization options (for 2025 esbuild)
|
|
23
|
+
esbuildOptions(options) {
|
|
24
|
+
options.keepNames = true; // Preserve class/function names for better debugging
|
|
25
|
+
options.charset = "utf8";
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
// Enable minification for output size (production only)
|
|
29
|
+
minifyWhitespace: !options.watch,
|
|
30
|
+
minifyIdentifiers: !options.watch,
|
|
31
|
+
minifySyntax: !options.watch,
|
|
32
|
+
}));
|