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

Method lint

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

Source from the content-addressed store, hash-verified

195 }
196
197 async lint(entryFile: string, outputDirectory: string, toolsPaths: (string | string[])[]): Promise<void> {
198 await super.lint(entryFile, outputDirectory, toolsPaths);
199
200 // LibSQL uses native Node.js bindings — incompatible with both serverless and edge environments
201 const hasLibsql = (await this.deps.checkDependencies(['@mastra/libsql'])) === `ok`;
202
203 if (hasLibsql) {
204 this.logger?.error(
205 `Netlify Deployer does not support @libsql/client (which may have been installed by @mastra/libsql) as a dependency.
206 LibSQL with file URLs uses native Node.js bindings that cannot run in Netlify serverless or edge environments. Use other Mastra Storage options instead.`,
207 );
208 process.exit(1);
209 }
210 }
211}

Callers

nothing calls this directly

Calls 3

lintMethod · 0.65
errorMethod · 0.65
checkDependenciesMethod · 0.45

Tested by

no test coverage detected