@mastra/deployer-vercel 0.0.0-mcp-server-deploy-20250507160341 → 0.0.0-pass-headers-for-create-mastra-client-20250529190531
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/_tsup-dts-rollup.d.cts +1 -0
- package/dist/_tsup-dts-rollup.d.ts +1 -0
- package/dist/index.cjs +23 -7
- package/dist/index.js +23 -7
- package/package.json +7 -4
|
@@ -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
|
@@ -125,11 +125,6 @@ registerHook(AvailableHooks.ON_GENERATION, ({ input, output, metric, runId, agen
|
|
|
125
125
|
});
|
|
126
126
|
});
|
|
127
127
|
|
|
128
|
-
if (mastra.getStorage()) {
|
|
129
|
-
// start storage init in the background
|
|
130
|
-
mastra.getStorage().init();
|
|
131
|
-
}
|
|
132
|
-
|
|
133
128
|
registerHook(AvailableHooks.ON_EVALUATION, async traceObject => {
|
|
134
129
|
const storage = mastra.getStorage();
|
|
135
130
|
if (storage) {
|
|
@@ -160,6 +155,10 @@ const app = await createHonoServer(mastra);
|
|
|
160
155
|
|
|
161
156
|
export const GET = handle(app);
|
|
162
157
|
export const POST = handle(app);
|
|
158
|
+
export const PUT = handle(app);
|
|
159
|
+
export const DELETE = handle(app);
|
|
160
|
+
export const OPTIONS = handle(app);
|
|
161
|
+
export const HEAD = handle(app);
|
|
163
162
|
`;
|
|
164
163
|
}
|
|
165
164
|
writeVercelJSON(outputDirectory, files = ["./*"]) {
|
|
@@ -190,8 +189,13 @@ export const POST = handle(app);
|
|
|
190
189
|
}
|
|
191
190
|
async bundle(entryFile, outputDirectory, toolsPaths) {
|
|
192
191
|
const result = await this._bundle(this.getEntry(), entryFile, outputDirectory, toolsPaths);
|
|
193
|
-
const files = fs.readdirSync(path.join(outputDirectory, this.outputDir)
|
|
194
|
-
|
|
192
|
+
const files = fs.readdirSync(path.join(outputDirectory, this.outputDir), {
|
|
193
|
+
recursive: true
|
|
194
|
+
});
|
|
195
|
+
const filesWithoutNodeModules = files.filter(
|
|
196
|
+
(file) => typeof file === "string" && !file.startsWith("node_modules")
|
|
197
|
+
);
|
|
198
|
+
this.writeVercelJSON(outputDirectory, filesWithoutNodeModules);
|
|
195
199
|
return result;
|
|
196
200
|
}
|
|
197
201
|
async deploy(outputDirectory) {
|
|
@@ -221,6 +225,18 @@ export const POST = handle(app);
|
|
|
221
225
|
this.logger.info("\nAdd your ENV vars to .env or your vercel dashboard.\n");
|
|
222
226
|
}
|
|
223
227
|
}
|
|
228
|
+
async lint(entryFile, outputDirectory, toolsPaths) {
|
|
229
|
+
await super.lint(entryFile, outputDirectory, toolsPaths);
|
|
230
|
+
await super.lint(entryFile, outputDirectory, toolsPaths);
|
|
231
|
+
const hasLibsql = await this.deps.checkDependencies(["@mastra/libsql"]) === `ok`;
|
|
232
|
+
if (hasLibsql) {
|
|
233
|
+
this.logger.error(
|
|
234
|
+
`Vercel Deployer does not support @libsql/client(which may have been installed by @mastra/libsql) as a dependency.
|
|
235
|
+
Use other Mastra Storage options instead e.g @mastra/pg`
|
|
236
|
+
);
|
|
237
|
+
process__default.default.exit(1);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
224
240
|
};
|
|
225
241
|
|
|
226
242
|
exports.VercelDeployer = VercelDeployer;
|
package/dist/index.js
CHANGED
|
@@ -100,11 +100,6 @@ registerHook(AvailableHooks.ON_GENERATION, ({ input, output, metric, runId, agen
|
|
|
100
100
|
});
|
|
101
101
|
});
|
|
102
102
|
|
|
103
|
-
if (mastra.getStorage()) {
|
|
104
|
-
// start storage init in the background
|
|
105
|
-
mastra.getStorage().init();
|
|
106
|
-
}
|
|
107
|
-
|
|
108
103
|
registerHook(AvailableHooks.ON_EVALUATION, async traceObject => {
|
|
109
104
|
const storage = mastra.getStorage();
|
|
110
105
|
if (storage) {
|
|
@@ -135,6 +130,10 @@ const app = await createHonoServer(mastra);
|
|
|
135
130
|
|
|
136
131
|
export const GET = handle(app);
|
|
137
132
|
export const POST = handle(app);
|
|
133
|
+
export const PUT = handle(app);
|
|
134
|
+
export const DELETE = handle(app);
|
|
135
|
+
export const OPTIONS = handle(app);
|
|
136
|
+
export const HEAD = handle(app);
|
|
138
137
|
`;
|
|
139
138
|
}
|
|
140
139
|
writeVercelJSON(outputDirectory, files = ["./*"]) {
|
|
@@ -165,8 +164,13 @@ export const POST = handle(app);
|
|
|
165
164
|
}
|
|
166
165
|
async bundle(entryFile, outputDirectory, toolsPaths) {
|
|
167
166
|
const result = await this._bundle(this.getEntry(), entryFile, outputDirectory, toolsPaths);
|
|
168
|
-
const files = readdirSync(join(outputDirectory, this.outputDir)
|
|
169
|
-
|
|
167
|
+
const files = readdirSync(join(outputDirectory, this.outputDir), {
|
|
168
|
+
recursive: true
|
|
169
|
+
});
|
|
170
|
+
const filesWithoutNodeModules = files.filter(
|
|
171
|
+
(file) => typeof file === "string" && !file.startsWith("node_modules")
|
|
172
|
+
);
|
|
173
|
+
this.writeVercelJSON(outputDirectory, filesWithoutNodeModules);
|
|
170
174
|
return result;
|
|
171
175
|
}
|
|
172
176
|
async deploy(outputDirectory) {
|
|
@@ -196,6 +200,18 @@ export const POST = handle(app);
|
|
|
196
200
|
this.logger.info("\nAdd your ENV vars to .env or your vercel dashboard.\n");
|
|
197
201
|
}
|
|
198
202
|
}
|
|
203
|
+
async lint(entryFile, outputDirectory, toolsPaths) {
|
|
204
|
+
await super.lint(entryFile, outputDirectory, toolsPaths);
|
|
205
|
+
await super.lint(entryFile, outputDirectory, toolsPaths);
|
|
206
|
+
const hasLibsql = await this.deps.checkDependencies(["@mastra/libsql"]) === `ok`;
|
|
207
|
+
if (hasLibsql) {
|
|
208
|
+
this.logger.error(
|
|
209
|
+
`Vercel Deployer does not support @libsql/client(which may have been installed by @mastra/libsql) as a dependency.
|
|
210
|
+
Use other Mastra Storage options instead e.g @mastra/pg`
|
|
211
|
+
);
|
|
212
|
+
process.exit(1);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
199
215
|
};
|
|
200
216
|
|
|
201
217
|
export { VercelDeployer };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/deployer-vercel",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-pass-headers-for-create-mastra-client-20250529190531",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -27,8 +27,7 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@rollup/plugin-virtual": "^3.0.2",
|
|
29
29
|
"fs-extra": "^11.3.0",
|
|
30
|
-
"@mastra/
|
|
31
|
-
"@mastra/deployer": "0.0.0-mcp-server-deploy-20250507160341"
|
|
30
|
+
"@mastra/deployer": "0.0.0-pass-headers-for-create-mastra-client-20250529190531"
|
|
32
31
|
},
|
|
33
32
|
"devDependencies": {
|
|
34
33
|
"@microsoft/api-extractor": "^7.52.5",
|
|
@@ -38,7 +37,11 @@
|
|
|
38
37
|
"typescript": "^5.8.2",
|
|
39
38
|
"vercel": "^39.4.2",
|
|
40
39
|
"vitest": "^3.1.2",
|
|
41
|
-
"@internal/lint": "0.0.
|
|
40
|
+
"@internal/lint": "0.0.0-pass-headers-for-create-mastra-client-20250529190531",
|
|
41
|
+
"@mastra/core": "0.0.0-pass-headers-for-create-mastra-client-20250529190531"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"@mastra/core": "^0.10.0"
|
|
42
45
|
},
|
|
43
46
|
"scripts": {
|
|
44
47
|
"build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting",
|