MCPcopy
hub / github.com/mastra-ai/mastra / lint

Method lint

deployers/cloudflare/src/index.ts:299–310  ·  view source on GitHub ↗
(entryFile: string, outputDirectory: string, toolsPaths: (string | string[])[])

Source from the content-addressed store, hash-verified

297 }
298
299 async lint(entryFile: string, outputDirectory: string, toolsPaths: (string | string[])[]): Promise<void> {
300 await super.lint(entryFile, outputDirectory, toolsPaths);
301
302 const hasLibsql = (await this.deps.checkDependencies(['@mastra/libsql'])) === `ok`;
303
304 if (hasLibsql) {
305 this.logger.error(
306 'Cloudflare Deployer does not support @libsql/client (which may have been installed by @mastra/libsql) as a dependency. Please use Cloudflare D1 instead: @mastra/cloudflare-d1.',
307 );
308 process.exit(1);
309 }
310 }
311}

Callers

nothing calls this directly

Calls 3

lintMethod · 0.65
errorMethod · 0.65
checkDependenciesMethod · 0.45

Tested by

no test coverage detected