MCPcopy Create free account
hub / github.com/BCsabaEngine/svelteesp32 / hasNpmVariables

Function hasNpmVariables

src/commandLine.ts:240–250  ·  view source on GitHub ↗
(config: IRcFileConfig)

Source from the content-addressed store, hash-verified

238}
239
240function hasNpmVariables(config: IRcFileConfig): boolean {
241 return (
242 hasNpmVariable(config.sourcepath) ||
243 hasNpmVariable(config.outputfile) ||
244 hasNpmVariable(config.espmethod) ||
245 hasNpmVariable(config.define) ||
246 hasNpmVariable(config.version) ||
247 hasNpmVariable(config.basepath) ||
248 (Array.isArray(config.exclude) && config.exclude.some((pattern) => hasNpmVariable(pattern)))
249 );
250}
251
252function interpolateNpmVariables(config: IRcFileConfig, rcFilePath: string): IRcFileConfig {
253 // Quick check - return unchanged if no variables

Callers 2

interpolateNpmVariablesFunction · 0.85

Calls 1

hasNpmVariableFunction · 0.85

Tested by

no test coverage detected