Skip to content

Conversation

@ddbeck
Copy link
Collaborator

@ddbeck ddbeck commented Jun 7, 2024

This prevents .dist files from hanging around even after the authored YAML has been deleted.

Inspired by #1205

@ddbeck ddbeck requested a review from foolip June 7, 2024 11:39
computeBaseline,
setLogger,
} from "compute-baseline";
import { computeBaseline, setLogger } from "compute-baseline";
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh oops, my editor removed these unused imports. I can move this to a separate PR, if desired.

@ddbeck ddbeck mentioned this pull request Jun 7, 2024
filePath = filePath.substring(0, filePath.length - 5);
const candidateFilePath = filePath.substring(0, filePath.length - 5);

// Make sure this isn't an orphan dist file
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I should use a different word here? "Orphan catching" sounds truly Dickensian

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the terminology is OK, it's not as funny as https://html.spec.whatwg.org/multipage/parsing.html#adoption-agency-algorithm, but still OK.

I'll land this and rebase #1210 on top, and I suspect this comment will disappear anyway.

filePath = filePath.substring(0, filePath.length - 5);
const candidateFilePath = filePath.substring(0, filePath.length - 5);

// Make sure this isn't an orphan dist file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the terminology is OK, it's not as funny as https://html.spec.whatwg.org/multipage/parsing.html#adoption-agency-algorithm, but still OK.

I'll land this and rebase #1210 on top, and I suspect this comment will disappear anyway.

@foolip foolip merged commit 87d5388 into web-platform-dx:main Jun 7, 2024
@ddbeck ddbeck deleted the catch-orphan-dists branch June 7, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants