@mastra/deployer-vercel 0.10.4 → 0.10.6-alpha.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.
@@ -16,7 +16,7 @@ export declare class VercelDeployer extends Deployer {
16
16
  private getEntry;
17
17
  private writeVercelJSON;
18
18
  bundle(entryFile: string, outputDirectory: string, toolsPaths: string[]): Promise<void>;
19
- deploy(outputDirectory: string): Promise<void>;
19
+ deploy(): Promise<void>;
20
20
  lint(entryFile: string, outputDirectory: string, toolsPaths: string[]): Promise<void>;
21
21
  }
22
22
 
@@ -16,7 +16,7 @@ export declare class VercelDeployer extends Deployer {
16
16
  private getEntry;
17
17
  private writeVercelJSON;
18
18
  bundle(entryFile: string, outputDirectory: string, toolsPaths: string[]): Promise<void>;
19
- deploy(outputDirectory: string): Promise<void>;
19
+ deploy(): Promise<void>;
20
20
  lint(entryFile: string, outputDirectory: string, toolsPaths: string[]): Promise<void>;
21
21
  }
22
22
 
package/dist/index.cjs CHANGED
@@ -1,6 +1,5 @@
1
1
  'use strict';
2
2
 
3
- var child_process = require('child_process');
4
3
  var fs = require('fs');
5
4
  var path = require('path');
6
5
  var process = require('process');
@@ -8,25 +7,6 @@ var deployer = require('@mastra/deployer');
8
7
 
9
8
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
10
9
 
11
- function _interopNamespace(e) {
12
- if (e && e.__esModule) return e;
13
- var n = Object.create(null);
14
- if (e) {
15
- Object.keys(e).forEach(function (k) {
16
- if (k !== 'default') {
17
- var d = Object.getOwnPropertyDescriptor(e, k);
18
- Object.defineProperty(n, k, d.get ? d : {
19
- enumerable: true,
20
- get: function () { return e[k]; }
21
- });
22
- }
23
- });
24
- }
25
- n.default = e;
26
- return Object.freeze(n);
27
- }
28
-
29
- var child_process__namespace = /*#__PURE__*/_interopNamespace(child_process);
30
10
  var process__default = /*#__PURE__*/_interopDefault(process);
31
11
 
32
12
  // src/index.ts
@@ -198,32 +178,8 @@ export const HEAD = handle(app);
198
178
  this.writeVercelJSON(outputDirectory, filesWithoutNodeModules);
199
179
  return result;
200
180
  }
201
- async deploy(outputDirectory) {
202
- const envVars = await this.loadEnvVars();
203
- const commandArgs = [
204
- "--scope",
205
- this.teamSlug,
206
- "--cwd",
207
- path.join(outputDirectory, this.outputDir),
208
- "--token",
209
- this.token,
210
- "deploy",
211
- "--yes",
212
- ...this.projectName ? ["--name", this.projectName] : []
213
- ];
214
- child_process__namespace.execSync(`npx vercel ${commandArgs.join(" ")}`, {
215
- cwd: path.join(outputDirectory, this.outputDir),
216
- env: {
217
- PATH: process__default.default.env.PATH
218
- },
219
- stdio: "inherit"
220
- });
221
- this.logger.info("Deployment started on Vercel. You can wait for it to finish or exit this command.");
222
- if (envVars.size > 0) {
223
- await this.syncEnv(envVars, { outputDirectory });
224
- } else {
225
- this.logger.info("\nAdd your ENV vars to .env or your vercel dashboard.\n");
226
- }
181
+ async deploy() {
182
+ this.logger?.info("Deploying to Vercel failed. Please use the Vercel dashboard to deploy.");
227
183
  }
228
184
  async lint(entryFile, outputDirectory, toolsPaths) {
229
185
  await super.lint(entryFile, outputDirectory, toolsPaths);
package/dist/index.js CHANGED
@@ -1,4 +1,3 @@
1
- import * as child_process from 'child_process';
2
1
  import { readFileSync, writeFileSync, readdirSync } from 'fs';
3
2
  import { join } from 'path';
4
3
  import process from 'process';
@@ -173,32 +172,8 @@ export const HEAD = handle(app);
173
172
  this.writeVercelJSON(outputDirectory, filesWithoutNodeModules);
174
173
  return result;
175
174
  }
176
- async deploy(outputDirectory) {
177
- const envVars = await this.loadEnvVars();
178
- const commandArgs = [
179
- "--scope",
180
- this.teamSlug,
181
- "--cwd",
182
- join(outputDirectory, this.outputDir),
183
- "--token",
184
- this.token,
185
- "deploy",
186
- "--yes",
187
- ...this.projectName ? ["--name", this.projectName] : []
188
- ];
189
- child_process.execSync(`npx vercel ${commandArgs.join(" ")}`, {
190
- cwd: join(outputDirectory, this.outputDir),
191
- env: {
192
- PATH: process.env.PATH
193
- },
194
- stdio: "inherit"
195
- });
196
- this.logger.info("Deployment started on Vercel. You can wait for it to finish or exit this command.");
197
- if (envVars.size > 0) {
198
- await this.syncEnv(envVars, { outputDirectory });
199
- } else {
200
- this.logger.info("\nAdd your ENV vars to .env or your vercel dashboard.\n");
201
- }
175
+ async deploy() {
176
+ this.logger?.info("Deploying to Vercel failed. Please use the Vercel dashboard to deploy.");
202
177
  }
203
178
  async lint(entryFile, outputDirectory, toolsPaths) {
204
179
  await super.lint(entryFile, outputDirectory, toolsPaths);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer-vercel",
3
- "version": "0.10.4",
3
+ "version": "0.10.6-alpha.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -27,18 +27,17 @@
27
27
  "dependencies": {
28
28
  "@rollup/plugin-virtual": "^3.0.2",
29
29
  "fs-extra": "^11.3.0",
30
- "@mastra/deployer": "^0.10.4"
30
+ "@mastra/deployer": "^0.10.6-alpha.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@microsoft/api-extractor": "^7.52.8",
34
- "@types/node": "^20.17.57",
34
+ "@types/node": "^20.19.0",
35
35
  "eslint": "^9.28.0",
36
36
  "tsup": "^8.5.0",
37
- "typescript": "^5.8.2",
38
- "vercel": "^39.4.2",
39
- "vitest": "^3.2.2",
40
- "@internal/lint": "0.0.11",
41
- "@mastra/core": "0.10.4"
37
+ "typescript": "^5.8.3",
38
+ "vitest": "^3.2.3",
39
+ "@internal/lint": "0.0.12",
40
+ "@mastra/core": "0.10.6-alpha.0"
42
41
  },
43
42
  "peerDependencies": {
44
43
  "@mastra/core": "^0.10.1-alpha.0"