Skip to content

[Toolkit] Allow declaring kit-global dependencies in kit manifest#3671

Merged
Kocal merged 1 commit into
symfony:3.xfrom
Kocal:toolkit-kit-dependencies-linter
Jun 11, 2026
Merged

[Toolkit] Allow declaring kit-global dependencies in kit manifest#3671
Kocal merged 1 commit into
symfony:3.xfrom
Kocal:toolkit-kit-dependencies-linter

Conversation

@Kocal

@Kocal Kocal commented Jun 11, 2026

Copy link
Copy Markdown
Member
Q A
Bug fix? no
New feature? yes
Deprecations? no
Documentation? no
Issues Fix #...
License MIT

The JsImportChecker only matched JS imports against per-recipe npm/importmap
dependencies, so kit-global libraries (e.g. flowbite, installed once via the
kit's INSTALL.md) were reported asjs.import.undeclared` on every recipe.

Add a dependencies object (composer/npm/importmap) to the kit manifest and
have JsImportChecker treat kit-level npm/importmap packages as available for
all recipes. Extract the shared parsing into DependencyParser.

The `JsImportChecker` only matched JS imports against per-recipe npm/importmap
dependencies, so kit-global libraries (e.g. flowbite, installed once via the
kit's ` INSTALL.md) were reported as `js.import.undeclared` on every recipe.

Add a `dependencies` object (composer/npm/importmap) to the kit manifest and
have JsImportChecker treat kit-level npm/importmap packages as available for
all recipes. Extract the shared parsing into DependencyParser.
@Kocal Kocal self-assigned this Jun 11, 2026
@carsonbot carsonbot added Feature New Feature Toolkit Status: Needs Review Needs to be reviewed labels Jun 11, 2026
@Kocal Kocal merged commit b97a9b1 into symfony:3.x Jun 11, 2026
30 of 35 checks passed
@Kocal Kocal deleted the toolkit-kit-dependencies-linter branch June 11, 2026 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New Feature Status: Needs Review Needs to be reviewed Toolkit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants