@mastra/deployer-vercel 0.1.21-alpha.4 → 0.1.21-alpha.6

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.
@@ -17,6 +17,7 @@ export declare class VercelDeployer extends Deployer {
17
17
  private writeVercelJSON;
18
18
  bundle(entryFile: string, outputDirectory: string, toolsPaths: string[]): Promise<void>;
19
19
  deploy(outputDirectory: string): Promise<void>;
20
+ lint(entryFile: string, outputDirectory: string, toolsPaths: string[]): Promise<void>;
20
21
  }
21
22
 
22
23
  export { }
@@ -17,6 +17,7 @@ export declare class VercelDeployer extends Deployer {
17
17
  private writeVercelJSON;
18
18
  bundle(entryFile: string, outputDirectory: string, toolsPaths: string[]): Promise<void>;
19
19
  deploy(outputDirectory: string): Promise<void>;
20
+ lint(entryFile: string, outputDirectory: string, toolsPaths: string[]): Promise<void>;
20
21
  }
21
22
 
22
23
  export { }
package/dist/index.cjs CHANGED
@@ -190,8 +190,13 @@ export const POST = handle(app);
190
190
  }
191
191
  async bundle(entryFile, outputDirectory, toolsPaths) {
192
192
  const result = await this._bundle(this.getEntry(), entryFile, outputDirectory, toolsPaths);
193
- const files = fs.readdirSync(path.join(outputDirectory, this.outputDir));
194
- this.writeVercelJSON(outputDirectory, files);
193
+ const files = fs.readdirSync(path.join(outputDirectory, this.outputDir), {
194
+ recursive: true
195
+ });
196
+ const filesWithoutNodeModules = files.filter(
197
+ (file) => typeof file === "string" && !file.startsWith("node_modules")
198
+ );
199
+ this.writeVercelJSON(outputDirectory, filesWithoutNodeModules);
195
200
  return result;
196
201
  }
197
202
  async deploy(outputDirectory) {
@@ -221,6 +226,9 @@ export const POST = handle(app);
221
226
  this.logger.info("\nAdd your ENV vars to .env or your vercel dashboard.\n");
222
227
  }
223
228
  }
229
+ async lint(entryFile, outputDirectory, toolsPaths) {
230
+ await super.lint(entryFile, outputDirectory, toolsPaths);
231
+ }
224
232
  };
225
233
 
226
234
  exports.VercelDeployer = VercelDeployer;
package/dist/index.js CHANGED
@@ -165,8 +165,13 @@ export const POST = handle(app);
165
165
  }
166
166
  async bundle(entryFile, outputDirectory, toolsPaths) {
167
167
  const result = await this._bundle(this.getEntry(), entryFile, outputDirectory, toolsPaths);
168
- const files = readdirSync(join(outputDirectory, this.outputDir));
169
- this.writeVercelJSON(outputDirectory, files);
168
+ const files = readdirSync(join(outputDirectory, this.outputDir), {
169
+ recursive: true
170
+ });
171
+ const filesWithoutNodeModules = files.filter(
172
+ (file) => typeof file === "string" && !file.startsWith("node_modules")
173
+ );
174
+ this.writeVercelJSON(outputDirectory, filesWithoutNodeModules);
170
175
  return result;
171
176
  }
172
177
  async deploy(outputDirectory) {
@@ -196,6 +201,9 @@ export const POST = handle(app);
196
201
  this.logger.info("\nAdd your ENV vars to .env or your vercel dashboard.\n");
197
202
  }
198
203
  }
204
+ async lint(entryFile, outputDirectory, toolsPaths) {
205
+ await super.lint(entryFile, outputDirectory, toolsPaths);
206
+ }
199
207
  };
200
208
 
201
209
  export { VercelDeployer };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer-vercel",
3
- "version": "0.1.21-alpha.4",
3
+ "version": "0.1.21-alpha.6",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -27,8 +27,8 @@
27
27
  "dependencies": {
28
28
  "@rollup/plugin-virtual": "^3.0.2",
29
29
  "fs-extra": "^11.3.0",
30
- "@mastra/core": "^0.9.2-alpha.4",
31
- "@mastra/deployer": "^0.3.2-alpha.4"
30
+ "@mastra/core": "^0.9.2-alpha.6",
31
+ "@mastra/deployer": "^0.3.2-alpha.6"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@microsoft/api-extractor": "^7.52.5",