Skip to content

Skip tsparticles deps that break yarn resolve#943

Open
ludeeus wants to merge 1 commit into
mainfrom
claude/frontend-ci-failure-Pwjhk
Open

Skip tsparticles deps that break yarn resolve#943
ludeeus wants to merge 1 commit into
mainfrom
claude/frontend-ci-failure-Pwjhk

Conversation

@ludeeus

@ludeeus ludeeus commented May 30, 2026

Copy link
Copy Markdown
Member

The pinned homeassistant-frontend submodule still lists tsparticles-engine and tsparticles-preset-links in its dependencies, so script/bootstrap has been failing for every PR since.

Neither package is imported anywhere in this repo. Add a dependenciesIgnore array (mirroring the existing *Override pattern) that merge_requirements.js uses to strip listed keys from the merged dependencies before writing package.json, and regenerate yarn.lock.

The npm packument for tsparticles-preset-links was modified on
2026-03-17, leaving a null field that crashes yarn 4.5.3's resolver
with "Cannot convert undefined or null to object". The pinned
homeassistant-frontend submodule still lists tsparticles-engine and
tsparticles-preset-links in its dependencies, so script/bootstrap has
been failing for every PR since.

Neither package is imported anywhere in this repo. Add a
dependenciesIgnore array (mirroring the existing *Override pattern)
that merge_requirements.js uses to strip listed keys from the merged
dependencies before writing package.json, and regenerate yarn.lock.
@ludeeus ludeeus marked this pull request as ready for review May 30, 2026 07:03
Copilot AI review requested due to automatic review settings May 30, 2026 07:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

The pinned homeassistant-frontend submodule lists tsparticles-engine and tsparticles-preset-links as dependencies, but neither is used in this repo and they break yarn install during script/bootstrap. This PR introduces a dependenciesIgnore array in the root package.json and updates script/merge_requirements.js to filter those keys out of the merged dependency map before writing the regenerated package.json, then regenerates yarn.lock accordingly.

Changes:

  • Add omitKeys helper and a dependenciesIgnore step in script/merge_requirements.js mirroring the existing *Override pattern.
  • Declare dependenciesIgnore: ["tsparticles-engine", "tsparticles-preset-links"] in package.json and remove the previous direct entries.
  • Regenerate yarn.lock to drop all tsparticles-* entries.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
script/merge_requirements.js Adds omitKeys helper and applies hacs.dependenciesIgnore after merging core and override dependencies.
package.json Removes the tsparticles-* direct deps and declares the new dependenciesIgnore array next to the existing override fields.
yarn.lock Removes the workspace entries and transitive lock entries for the tsparticles-* packages.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

3 participants