@mastra/client-js 0.0.0-declaration-maps-20250729224949 → 0.0.0-declaration-maps-20250729231921

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @mastra/client-js
2
2
 
3
- ## 0.0.0-declaration-maps-20250729224949
3
+ ## 0.0.0-declaration-maps-20250729231921
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -45,7 +45,7 @@
45
45
  - Updated dependencies [b8efbb9]
46
46
  - Updated dependencies [71466e7]
47
47
  - Updated dependencies [0c99fbe]
48
- - @mastra/core@0.0.0-declaration-maps-20250729224949
48
+ - @mastra/core@0.0.0-declaration-maps-20250729231921
49
49
 
50
50
  ## 0.10.17-alpha.4
51
51
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/client-js",
3
- "version": "0.0.0-declaration-maps-20250729224949",
3
+ "version": "0.0.0-declaration-maps-20250729231921",
4
4
  "description": "The official TypeScript library for the Mastra Client API",
5
5
  "author": "",
6
6
  "type": "module",
@@ -34,7 +34,7 @@
34
34
  "rxjs": "7.8.1",
35
35
  "zod": "^3.25.67",
36
36
  "zod-to-json-schema": "^3.24.5",
37
- "@mastra/core": "0.0.0-declaration-maps-20250729224949"
37
+ "@mastra/core": "0.0.0-declaration-maps-20250729231921"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "zod": "^3.0.0"
@@ -48,10 +48,10 @@
48
48
  "tsup": "^8.5.0",
49
49
  "typescript": "^5.8.3",
50
50
  "vitest": "^3.2.4",
51
- "@internal/lint": "0.0.0-declaration-maps-20250729224949"
51
+ "@internal/lint": "0.0.0-declaration-maps-20250729231921"
52
52
  },
53
53
  "scripts": {
54
- "build": "tsup src/index.ts --format esm,cjs --no-dts --clean --treeshake=smallest --splitting --sourcemap && tsc -p tsconfig.build.json",
54
+ "build": "tsup --silent --config tsup.config.ts",
55
55
  "dev": "pnpm build --watch",
56
56
  "test": "vitest run"
57
57
  }
package/tsup.config.ts ADDED
@@ -0,0 +1,25 @@
1
+ import { spawn } from 'child_process';
2
+ import { promisify } from 'util';
3
+ import { defineConfig } from 'tsup';
4
+ import type { Options } from 'tsup';
5
+
6
+ type Plugin = NonNullable<Options['plugins']>[number];
7
+
8
+ const exec = promisify(spawn);
9
+
10
+ export default defineConfig({
11
+ entry: ['src/index.ts'],
12
+ format: ['esm', 'cjs'],
13
+ clean: true,
14
+ dts: false,
15
+ splitting: true,
16
+ treeshake: {
17
+ preset: 'smallest',
18
+ },
19
+ sourcemap: true,
20
+ onSuccess: async () => {
21
+ await exec('pnpm', ['tsc', '-p', 'tsconfig.build.json'], {
22
+ stdio: 'inherit',
23
+ });
24
+ },
25
+ });
@@ -1,17 +0,0 @@
1
-
2
- > @mastra/client-js@0.10.17-alpha.4 build /home/runner/work/mastra/mastra/client-sdks/client-js
3
- > tsup src/index.ts --format esm,cjs --no-dts --clean --treeshake=smallest --splitting --sourcemap && tsc -p tsconfig.build.json
4
-
5
- CLI Building entry: src/index.ts
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.5.0
8
- CLI Target: es2022
9
- CLI Cleaning output folder
10
- ESM Build start
11
- CJS Build start
12
- ESM dist/index.js 75.27 KB
13
- ESM dist/index.js.map 161.69 KB
14
- ESM ⚡️ Build success in 3241ms
15
- CJS dist/index.cjs 75.58 KB
16
- CJS dist/index.cjs.map 161.88 KB
17
- CJS ⚡️ Build success in 3247ms