@mastra/deployer-vercel 0.1.21-alpha.5 → 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.
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) {
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer-vercel",
3
- "version": "0.1.21-alpha.5",
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.5",
31
- "@mastra/deployer": "^0.3.2-alpha.5"
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",