@mastra/deployer 0.1.6 → 0.1.7

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.
@@ -1,19 +1,19 @@
1
1
 
2
- > @mastra/deployer@0.1.6-alpha.4 build /home/runner/work/mastra/mastra/packages/deployer
2
+ > @mastra/deployer@0.1.7-alpha.0 build /home/runner/work/mastra/mastra/packages/deployer
3
3
  > tsup src/index.ts src/build/index.ts src/server/index.ts src/build/bundler.ts src/build/analyze.ts src/bundler/index.ts --format esm,cjs --clean --experimental-dts --treeshake --publicDir
4
4
 
5
5
  CLI Building entry: src/index.ts, src/build/analyze.ts, src/build/bundler.ts, src/build/index.ts, src/bundler/index.ts, src/server/index.ts
6
6
  CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v8.3.6
8
8
  TSC Build start
9
- TSC ⚡️ Build success in 17453ms
9
+ TSC ⚡️ Build success in 18233ms
10
10
  DTS Build start
11
11
  CLI Target: es2022
12
12
  Analysis will use the bundled TypeScript version 5.7.3
13
13
  Writing package typings: /home/runner/work/mastra/mastra/packages/deployer/dist/_tsup-dts-rollup.d.ts
14
14
  Analysis will use the bundled TypeScript version 5.7.3
15
15
  Writing package typings: /home/runner/work/mastra/mastra/packages/deployer/dist/_tsup-dts-rollup.d.cts
16
- DTS ⚡️ Build success in 7957ms
16
+ DTS ⚡️ Build success in 12695ms
17
17
  CLI Cleaning output folder
18
18
  ESM Build start
19
19
  CJS Build start
@@ -21,21 +21,21 @@ Analysis will use the bundled TypeScript version 5.7.3
21
21
  "watch" is imported from external module "rollup" but never used in "dist/index.cjs".
22
22
  CJS dist/build/analyze.cjs 11.21 KB
23
23
  CJS dist/build/bundler.cjs 10.25 KB
24
- CJS dist/bundler/index.cjs 31.39 KB
25
- CJS dist/index.cjs 38.28 KB
26
- CJS dist/build/index.cjs 34.84 KB
24
+ CJS dist/bundler/index.cjs 31.52 KB
25
+ CJS dist/index.cjs 38.41 KB
26
+ CJS dist/build/index.cjs 34.98 KB
27
27
  CJS dist/server/index.cjs 156.10 KB
28
- CJS ⚡️ Build success in 2327ms
28
+ CJS ⚡️ Build success in 4596ms
29
29
  ESM dist/index.js 3.74 KB
30
+ ESM dist/build/analyze.js 85.00 B
30
31
  ESM dist/build/bundler.js 102.00 B
31
32
  ESM dist/build/index.js 383.00 B
32
- ESM dist/chunk-UTCL3MQF.js 7.41 KB
33
+ ESM dist/chunk-72GFPLLU.js 7.41 KB
33
34
  ESM dist/bundler/index.js 172.00 B
34
- ESM dist/build/analyze.js 85.00 B
35
- ESM dist/chunk-AV33GZ7F.js 4.40 KB
36
- ESM dist/chunk-NSQJ2X7J.js 8.26 KB
37
- ESM dist/chunk-X5EDXVOK.js 8.45 KB
38
- ESM dist/chunk-PT5XTSU2.js 1.86 KB
35
+ ESM dist/chunk-OF7TVLEI.js 4.40 KB
36
+ ESM dist/chunk-VPQMSJB2.js 8.39 KB
37
+ ESM dist/chunk-TQSSPVHI.js 8.45 KB
39
38
  ESM dist/chunk-AC67BJSW.js 7.44 KB
39
+ ESM dist/chunk-PT5XTSU2.js 1.86 KB
40
40
  ESM dist/server/index.js 155.05 KB
41
- ESM ⚡️ Build success in 2328ms
41
+ ESM ⚡️ Build success in 4606ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @mastra/deployer
2
2
 
3
+ ## 0.1.7
4
+
5
+ ### Patch Changes
6
+
7
+ - 30a4c29: fix mastra build errors related to esbuild not removing types
8
+ - e1e2705: Added --ignore-workspace when installing dependencies in mastra build with pnpm package manager
9
+ - Updated dependencies [1da20e7]
10
+ - @mastra/core@0.4.4
11
+
12
+ ## 0.1.7-alpha.0
13
+
14
+ ### Patch Changes
15
+
16
+ - 30a4c29: fix mastra build errors related to esbuild not removing types
17
+ - e1e2705: Added --ignore-workspace when installing dependencies in mastra build with pnpm package manager
18
+ - Updated dependencies [1da20e7]
19
+ - @mastra/core@0.4.4-alpha.0
20
+
3
21
  ## 0.1.6
4
22
 
5
23
  ### Patch Changes
@@ -218,17 +218,17 @@ async function analyze(entry, mastraEntry, isVirtualFile, platform, logger) {
218
218
  }
219
219
  },
220
220
  json__default.default(),
221
+ esbuild__default.default({
222
+ target: "node20",
223
+ platform,
224
+ minify: false
225
+ }),
221
226
  commonjs__default.default({
222
227
  strictRequires: "debug",
223
228
  ignoreTryCatch: false,
224
229
  transformMixedEsModules: true,
225
230
  extensions: [".js", ".ts"]
226
231
  }),
227
- esbuild__default.default({
228
- target: "node20",
229
- platform,
230
- minify: false
231
- }),
232
232
  removeDeployer2(mastraEntry),
233
233
  esbuild__default.default({
234
234
  target: "node20",
@@ -1,2 +1,2 @@
1
- export { analyzeBundle } from '../chunk-X5EDXVOK.js';
1
+ export { analyzeBundle } from '../chunk-TQSSPVHI.js';
2
2
  import '../chunk-PT5XTSU2.js';
@@ -712,17 +712,17 @@ async function analyze(entry, mastraEntry, isVirtualFile, platform2, logger) {
712
712
  }
713
713
  },
714
714
  json3__default.default(),
715
+ esbuild__default.default({
716
+ target: "node20",
717
+ platform: platform2,
718
+ minify: false
719
+ }),
715
720
  commonjs3__default.default({
716
721
  strictRequires: "debug",
717
722
  ignoreTryCatch: false,
718
723
  transformMixedEsModules: true,
719
724
  extensions: [".js", ".ts"]
720
725
  }),
721
- esbuild__default.default({
722
- target: "node20",
723
- platform: platform2,
724
- minify: false
725
- }),
726
726
  removeDeployer2(mastraEntry),
727
727
  esbuild__default.default({
728
728
  target: "node20",
@@ -940,10 +940,15 @@ var Deps = class extends base.MastraBase {
940
940
  }
941
941
  async install({ dir = this.rootDir, packages = [] }) {
942
942
  let runCommand = this.packageManager;
943
- if (this.packageManager === "npm") {
944
- runCommand = `${this.packageManager} i`;
945
- } else {
946
- runCommand = `${this.packageManager} ${packages?.length > 0 ? `add` : `install`}`;
943
+ switch (this.packageManager) {
944
+ case "npm":
945
+ runCommand = `${this.packageManager} i`;
946
+ break;
947
+ case "pnpm":
948
+ runCommand = `${this.packageManager} --ignore-workspace install`;
949
+ break;
950
+ default:
951
+ runCommand = `${this.packageManager} ${packages?.length > 0 ? `add` : `install`}`;
947
952
  }
948
953
  const cpLogger = createChildProcessLogger({
949
954
  logger: this.logger,
@@ -1,5 +1,5 @@
1
- export { FileService, createWatcher, getBundler, getWatcher, getInputOptions as getWatcherInputOptions } from '../chunk-UTCL3MQF.js';
2
- export { Deps, writeTelemetryConfig } from '../chunk-NSQJ2X7J.js';
3
- export { analyzeBundle } from '../chunk-X5EDXVOK.js';
1
+ export { FileService, createWatcher, getBundler, getWatcher, getInputOptions as getWatcherInputOptions } from '../chunk-72GFPLLU.js';
2
+ export { Deps, writeTelemetryConfig } from '../chunk-VPQMSJB2.js';
3
+ export { analyzeBundle } from '../chunk-TQSSPVHI.js';
4
4
  export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-AC67BJSW.js';
5
5
  import '../chunk-PT5XTSU2.js';
@@ -237,17 +237,17 @@ async function analyze(entry, mastraEntry, isVirtualFile, platform2, logger) {
237
237
  }
238
238
  },
239
239
  json__default.default(),
240
+ esbuild__default.default({
241
+ target: "node20",
242
+ platform: platform2,
243
+ minify: false
244
+ }),
240
245
  commonjs__default.default({
241
246
  strictRequires: "debug",
242
247
  ignoreTryCatch: false,
243
248
  transformMixedEsModules: true,
244
249
  extensions: [".js", ".ts"]
245
250
  }),
246
- esbuild__default.default({
247
- target: "node20",
248
- platform: platform2,
249
- minify: false
250
- }),
251
251
  removeDeployer2(mastraEntry),
252
252
  esbuild__default.default({
253
253
  target: "node20",
@@ -701,10 +701,15 @@ var Deps = class extends base.MastraBase {
701
701
  }
702
702
  async install({ dir = this.rootDir, packages = [] }) {
703
703
  let runCommand = this.packageManager;
704
- if (this.packageManager === "npm") {
705
- runCommand = `${this.packageManager} i`;
706
- } else {
707
- runCommand = `${this.packageManager} ${packages?.length > 0 ? `add` : `install`}`;
704
+ switch (this.packageManager) {
705
+ case "npm":
706
+ runCommand = `${this.packageManager} i`;
707
+ break;
708
+ case "pnpm":
709
+ runCommand = `${this.packageManager} --ignore-workspace install`;
710
+ break;
711
+ default:
712
+ runCommand = `${this.packageManager} ${packages?.length > 0 ? `add` : `install`}`;
708
713
  }
709
714
  const cpLogger = createChildProcessLogger({
710
715
  logger: this.logger,
@@ -1,5 +1,5 @@
1
- export { Bundler } from '../chunk-AV33GZ7F.js';
2
- import '../chunk-NSQJ2X7J.js';
3
- import '../chunk-X5EDXVOK.js';
1
+ export { Bundler } from '../chunk-OF7TVLEI.js';
2
+ import '../chunk-VPQMSJB2.js';
3
+ import '../chunk-TQSSPVHI.js';
4
4
  import '../chunk-AC67BJSW.js';
5
5
  import '../chunk-PT5XTSU2.js';
@@ -1,4 +1,4 @@
1
- import { aliasHono } from './chunk-X5EDXVOK.js';
1
+ import { aliasHono } from './chunk-TQSSPVHI.js';
2
2
  import { getInputOptions, telemetryFix, libSqlFix } from './chunk-AC67BJSW.js';
3
3
  import { removeDeployer } from './chunk-PT5XTSU2.js';
4
4
  import alias from '@rollup/plugin-alias';
@@ -1,5 +1,5 @@
1
- import { Deps, writeTelemetryConfig } from './chunk-NSQJ2X7J.js';
2
- import { analyzeBundle } from './chunk-X5EDXVOK.js';
1
+ import { Deps, writeTelemetryConfig } from './chunk-VPQMSJB2.js';
2
+ import { analyzeBundle } from './chunk-TQSSPVHI.js';
3
3
  import { createBundler, getInputOptions } from './chunk-AC67BJSW.js';
4
4
  import { existsSync } from 'node:fs';
5
5
  import { writeFile } from 'node:fs/promises';
@@ -97,10 +97,15 @@ var Deps = class extends MastraBase {
97
97
  }
98
98
  async install({ dir = this.rootDir, packages = [] }) {
99
99
  let runCommand = this.packageManager;
100
- if (this.packageManager === "npm") {
101
- runCommand = `${this.packageManager} i`;
102
- } else {
103
- runCommand = `${this.packageManager} ${packages?.length > 0 ? `add` : `install`}`;
100
+ switch (this.packageManager) {
101
+ case "npm":
102
+ runCommand = `${this.packageManager} i`;
103
+ break;
104
+ case "pnpm":
105
+ runCommand = `${this.packageManager} --ignore-workspace install`;
106
+ break;
107
+ default:
108
+ runCommand = `${this.packageManager} ${packages?.length > 0 ? `add` : `install`}`;
104
109
  }
105
110
  const cpLogger = createChildProcessLogger({
106
111
  logger: this.logger,
package/dist/index.cjs CHANGED
@@ -144,10 +144,15 @@ var Deps = class extends base.MastraBase {
144
144
  }
145
145
  async install({ dir = this.rootDir, packages = [] }) {
146
146
  let runCommand = this.packageManager;
147
- if (this.packageManager === "npm") {
148
- runCommand = `${this.packageManager} i`;
149
- } else {
150
- runCommand = `${this.packageManager} ${packages?.length > 0 ? `add` : `install`}`;
147
+ switch (this.packageManager) {
148
+ case "npm":
149
+ runCommand = `${this.packageManager} i`;
150
+ break;
151
+ case "pnpm":
152
+ runCommand = `${this.packageManager} --ignore-workspace install`;
153
+ break;
154
+ default:
155
+ runCommand = `${this.packageManager} ${packages?.length > 0 ? `add` : `install`}`;
151
156
  }
152
157
  const cpLogger = createChildProcessLogger({
153
158
  logger: this.logger,
@@ -513,17 +518,17 @@ async function analyze(entry, mastraEntry, isVirtualFile, platform2, logger) {
513
518
  }
514
519
  },
515
520
  json__default.default(),
521
+ esbuild__default.default({
522
+ target: "node20",
523
+ platform: platform2,
524
+ minify: false
525
+ }),
516
526
  commonjs__default.default({
517
527
  strictRequires: "debug",
518
528
  ignoreTryCatch: false,
519
529
  transformMixedEsModules: true,
520
530
  extensions: [".js", ".ts"]
521
531
  }),
522
- esbuild__default.default({
523
- target: "node20",
524
- platform: platform2,
525
- minify: false
526
- }),
527
532
  removeDeployer2(mastraEntry),
528
533
  esbuild__default.default({
529
534
  target: "node20",
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
- import { FileService } from './chunk-UTCL3MQF.js';
2
- export { FileService } from './chunk-UTCL3MQF.js';
3
- import { Bundler } from './chunk-AV33GZ7F.js';
4
- import { Deps } from './chunk-NSQJ2X7J.js';
5
- export { Deps, createChildProcessLogger, createPinoStream } from './chunk-NSQJ2X7J.js';
6
- import './chunk-X5EDXVOK.js';
1
+ import { FileService } from './chunk-72GFPLLU.js';
2
+ export { FileService } from './chunk-72GFPLLU.js';
3
+ import { Bundler } from './chunk-OF7TVLEI.js';
4
+ import { Deps } from './chunk-VPQMSJB2.js';
5
+ export { Deps, createChildProcessLogger, createPinoStream } from './chunk-VPQMSJB2.js';
6
+ import './chunk-TQSSPVHI.js';
7
7
  import './chunk-AC67BJSW.js';
8
8
  import './chunk-PT5XTSU2.js';
9
9
  import * as babel from '@babel/core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -80,7 +80,7 @@
80
80
  "rollup-plugin-esbuild": "^6.1.1",
81
81
  "rollup-plugin-node-externals": "^8.0.0",
82
82
  "zod": "^3.24.1",
83
- "@mastra/core": "^0.4.3"
83
+ "@mastra/core": "^0.4.4"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@hono/node-server": "^1.13.7",
@@ -59,17 +59,17 @@ async function analyze(
59
59
  },
60
60
  } satisfies Plugin,
61
61
  json(),
62
+ esbuild({
63
+ target: 'node20',
64
+ platform,
65
+ minify: false,
66
+ }),
62
67
  commonjs({
63
68
  strictRequires: 'debug',
64
69
  ignoreTryCatch: false,
65
70
  transformMixedEsModules: true,
66
71
  extensions: ['.js', '.ts'],
67
72
  }),
68
- esbuild({
69
- target: 'node20',
70
- platform,
71
- minify: false,
72
- }),
73
73
  removeDeployer(mastraEntry),
74
74
  esbuild({
75
75
  target: 'node20',
package/src/build/deps.ts CHANGED
@@ -52,10 +52,16 @@ export class Deps extends MastraBase {
52
52
 
53
53
  public async install({ dir = this.rootDir, packages = [] }: { dir?: string; packages?: string[] }) {
54
54
  let runCommand = this.packageManager;
55
- if (this.packageManager === 'npm') {
56
- runCommand = `${this.packageManager} i`;
57
- } else {
58
- runCommand = `${this.packageManager} ${packages?.length > 0 ? `add` : `install`}`;
55
+
56
+ switch (this.packageManager) {
57
+ case 'npm':
58
+ runCommand = `${this.packageManager} i`;
59
+ break;
60
+ case 'pnpm':
61
+ runCommand = `${this.packageManager} --ignore-workspace install`;
62
+ break;
63
+ default:
64
+ runCommand = `${this.packageManager} ${packages?.length > 0 ? `add` : `install`}`;
59
65
  }
60
66
 
61
67
  const cpLogger = createChildProcessLogger({
@@ -128,17 +128,17 @@ async function analyze(entry, mastraEntry, isVirtualFile, platform, logger) {
128
128
  }
129
129
  },
130
130
  json(),
131
+ esbuild({
132
+ target: "node20",
133
+ platform,
134
+ minify: false
135
+ }),
131
136
  commonjs({
132
137
  strictRequires: "debug",
133
138
  ignoreTryCatch: false,
134
139
  transformMixedEsModules: true,
135
140
  extensions: [".js", ".ts"]
136
141
  }),
137
- esbuild({
138
- target: "node20",
139
- platform,
140
- minify: false
141
- }),
142
142
  removeDeployer(mastraEntry),
143
143
  esbuild({
144
144
  target: "node20",