MCPcopy Index your code
hub / github.com/QwikDev/qwik / generateQwikCityReferenceModules

Function generateQwikCityReferenceModules

scripts/api.ts:262–274  ·  view source on GitHub ↗
(config: BuildConfig)

Source from the content-addressed store, hash-verified

260}
261
262function generateQwikCityReferenceModules(config: BuildConfig) {
263 const srcModulesPath = join(config.packagesDir, 'qwik-city', 'lib');
264
265 const destModulesPath = join(srcModulesPath, 'modules.d.ts');
266 copyFile(join(config.packagesDir, 'qwik-city', 'modules.d.ts'), destModulesPath);
267
268 // manually prepend the ts reference since api extractor removes it
269 const prependReferenceDts = `/// <reference path="./modules.d.ts" />\n\n`;
270 const distIndexPath = join(srcModulesPath, 'index.d.ts');
271 let serverDts = readFileSync(distIndexPath, 'utf-8');
272 serverDts = prependReferenceDts + serverDts;
273 writeFileSync(distIndexPath, serverDts);
274}
275
276function generateServerReferenceModules(config: BuildConfig) {
277 // server-modules.d.ts

Callers 1

apiExtractorQwikCityFunction · 0.85

Calls 1

joinFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…