fix: tolerate packaged telemetry source omission
This commit is contained in:
@@ -28,7 +28,7 @@ export async function syncTelemetryComponent(options = {}) {
|
|||||||
const componentPath = join(componentDir, fileName);
|
const componentPath = join(componentDir, fileName);
|
||||||
const componentText = await readOptionalText(componentPath);
|
const componentText = await readOptionalText(componentPath);
|
||||||
const sourceText = await readOptionalText(sourcePath);
|
const sourceText = await readOptionalText(sourcePath);
|
||||||
if (sourceText === null && !sourceDirProvided && componentText !== null) continue;
|
if (sourceText === null && !sourceDirProvided) continue;
|
||||||
if (sourceText === null) {
|
if (sourceText === null) {
|
||||||
await readFile(sourcePath, "utf8");
|
await readFile(sourcePath, "utf8");
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user