Commit Graph

3207 Commits

Author SHA1 Message Date
Fredrik Adelöw d95cf37ce3 Merge pull request #32583 from Believe-SA/commander-14
chore: update dependency commander to v14
2026-02-20 21:04:31 +01:00
renovate[bot] 092b41f397 chore(deps): update dependency webpack to ~5.105.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-19 09:16:46 +00:00
dependabot[bot] 6738cf0842 build(deps): bump minimatch from 9.0.5 to 10.2.1 (#32915)
Bumps [minimatch](https://github.com/isaacs/minimatch) from 9.0.5 to 10.2.1.
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v9.0.5...v10.2.1)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-version: 10.2.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-19 08:58:00 +01:00
github-actions[bot] e6df5d52ce Version Packages 2026-02-17 16:06:18 +00:00
Gabriel Dugny e6f7ab105d fix: Revert some un-necessary allowExcessArguments
Signed-off-by: Gabriel Dugny <gabriel.dugny@believe.com>
2026-02-16 18:21:49 +01:00
Gabriel Dugny de62a9d322 chore: update dependency commander to v14, remove old @types/commander
Signed-off-by: Gabriel Dugny <gabriel.dugny@believe.com>
2026-02-16 17:29:25 +01:00
Patrik Oldsberg fdbd40488e module-federation-common: followup to initial implementation
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-13 13:47:35 +01:00
Patrik Oldsberg 903a854ebc Merge branch 'master' into runtime-module-federation-enablement
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-12 23:46:00 +01:00
github-actions[bot] 7c41134684 Version Packages (next) 2026-02-10 16:14:59 +00:00
Patrik Oldsberg 9848734ce6 Merge pull request #32761 from backstage/rugvip/css-exports-support
cli: add support for CSS exports in package build
2026-02-10 13:23:02 +01:00
Patrik Oldsberg ae08712748 Fix repo fix to not add typesVersions for non-script exports
Only CSS and other non-script, non-JSON exports should be excluded from
typesVersions. The package.json export still needs to be included.

Also preserves field order when updating existing typesVersions.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-10 09:23:12 +01:00
Patrik Oldsberg 5a09d9bdb6 Add unit tests for cssEntryPoints plugin
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-09 23:29:33 +01:00
Patrik Oldsberg 269fc0c7a1 Fix CSS entry points plugin to avoid duplicate emissions
- Add deduplication logic to only emit CSS once per output directory
- Only emit during write phase, not during generate
- Fix comment describing the path transformation

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-09 23:18:32 +01:00
Patrik Oldsberg 9274eb3dba Merge pull request #32705 from backstage/renovate/npm-webpack-vulnerability
chore(deps): update dependency webpack to ~5.104.0 [security]
2026-02-09 21:32:01 +01:00
Patrik Oldsberg 5040fdaa55 Fix lint error in types.d.ts
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-09 20:42:47 +01:00
Patrik Oldsberg 5c95133efa Add type declaration for postcss-import
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-09 20:27:30 +01:00
Patrik Oldsberg cad0b68d9c cli: Integrate CSS bundling as a Rollup plugin
Instead of having a separate post-build step for CSS entry points,
the CSS bundling is now integrated directly into the Rollup build
as a plugin. This is cleaner and will enable better watch mode
support in the future.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-09 17:30:35 +01:00
Patrik Oldsberg fb3bc36690 cli: Switch CSS bundling from lightningcss to postcss-import
postcss-import naturally preserves @layer declarations during bundling,
eliminating the need for custom layer parsing and restoration logic.
This simplifies the implementation while also preserving source comments.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-09 16:01:16 +01:00
Patrik Oldsberg 4f9d980943 cli: Add support for CSS exports in package build
This adds support for CSS entry points in package exports. When a package
declares a CSS file in its exports field, the CLI will now automatically
bundle it during `backstage-cli package build` and rewrite the export
path from src/ to dist/ at publish time.

The CSS bundling uses lightningcss to resolve @import statements and
preserves @layer declarations that would otherwise be stripped during
bundling.

This allows packages like @backstage/ui to use the standard build command
instead of custom build scripts for CSS bundling.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-09 13:53:05 +01:00
Andre Wanlin 6ce4a13bf4 docs - Writing Custom Actions Corrections
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
2026-02-08 12:39:13 -06:00
renovate[bot] 73351c2736 chore(deps): update dependency webpack to ~5.104.0 [security]
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-05 20:44:36 +00:00
github-actions[bot] 1ea737c1e2 Version Packages (next) 2026-02-03 14:24:29 +00:00
Patrik Oldsberg 5e3ef57e4e switch from backstage.integrationFor to backstage.peerModules
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-02 22:57:06 +01:00
Patrik Oldsberg 0e10859c62 Compute packagePath once in fixIntegrationFor
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-02 22:48:05 +01:00
Patrik Oldsberg 7bd7ed5b31 Add integrationFor validation to repo fix command
- Added integrationFor field to BackstagePackageJson type
- Created fixIntegrationFor validator that ensures:
  - Field is only used on module packages
  - Value is an array of strings
  - All entries are valid package names
- Added validator to the publish fixers list

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-02 22:48:05 +01:00
github-actions[bot] d4b85dddee Version Packages (next) 2026-01-27 15:51:11 +00:00
David Festal 3fdda3384e Apply review comment suggestion
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: David Festal <dfestal@redhat.com>
2026-01-27 14:54:21 +01:00
David Festal 22c5072268 Fix function naming
Signed-off-by: David Festal <dfestal@redhat.com>
2026-01-27 14:54:19 +01:00
David Festal 1a656db530 Add CLI --module-federation flag to build frontend plugins as remotes
Signed-off-by: David Festal <dfestal@redhat.com>
Assisted-by: Cursor
2026-01-27 14:54:19 +01:00
David Festal c324bf71be Move module federation enablement in app-next at runtime.
Signed-off-by: David Festal <dfestal@redhat.com>
Assisted-by: Cursor
2026-01-27 14:54:05 +01:00
David Festal 0a67ed0dde Upgrade to 0.21.6
Signed-off-by: David Festal <dfestal@redhat.com>
Assisted-by: Cursor
2026-01-27 14:51:17 +01:00
Fredrik Adelöw f02219a054 Merge pull request #32516 from backstage/freben/nodecolon
Add a rule for the use of `node:` prefix on native imports
2026-01-27 14:17:14 +01:00
Patrik Oldsberg cfd8103e63 catalog-node: promote extension points
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-01-27 13:22:04 +01:00
Patrik Oldsberg 122d39c4dd frontend-app-api: remove support for experimental package config
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-01-26 19:45:51 +01:00
Fredrik Adelöw 69d880e171 Bump to latest zod
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2026-01-26 13:52:02 +01:00
Fredrik Adelöw 7455dae884 require the use of node prefix on native imports
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2026-01-26 13:22:53 +01:00
Fredrik Adelöw 4fc7bf037a upgrade to tar v7
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2026-01-22 12:58:08 +01:00
github-actions[bot] 2e902e7b43 Version Packages 2026-01-20 16:40:05 +00:00
Fredrik Adelöw 05fb5f23aa Merge pull request #32275 from meganide/feat/cli-pattern
feat: add --include and --output-file to backstage-cli-info
2026-01-20 15:34:30 +01:00
Johan Persson f6a5d2f07f fix(cli): use content-based hashing for CSS module class names
Replace the default path-based CSS module hash with a content-based
hash derived from the CSS content. This prevents class name collisions
when multiple versions of packages are loaded simultaneously.

Uses 10 characters of hex-encoded MD5 hash for safe, readable class
name suffixes.

Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-01-20 13:13:48 +01:00
Renas 863444a504 feat: change JSON format for dependency versions to array of objects
Change the info command's JSON output to use an array of objects for
dependency versions instead of comma-separated strings, making the
format more parseable and extensible.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Renas <renash@spotify.com>
2026-01-19 15:43:04 +01:00
Renas 4399328c37 feat: replace --output-file with --format
Signed-off-by: Renas <renash@spotify.com>
2026-01-19 15:43:04 +01:00
Renas f59cb84d34 chore: build api reports
Signed-off-by: Renas <renash@spotify.com>
2026-01-19 15:43:04 +01:00
Renas 9aa8fd9c84 chore: revert changes to cli-report
Signed-off-by: Renas <renash@spotify.com>
2026-01-19 15:43:04 +01:00
Renas 563035ffe8 chore: run prettier
Signed-off-by: Renas <renash@spotify.com>
2026-01-19 15:43:03 +01:00
Renas fd4439a8b8 feat: add --output-file option to backstage-cli info for JSON export
Signed-off-by: Renas <renash@spotify.com>
2026-01-19 15:43:03 +01:00
Renas a6cd70a5b2 feat: add --include to backstage-cli info
Signed-off-by: Renas <renash@spotify.com>
2026-01-19 15:43:03 +01:00
Patrik Oldsberg 140cbc2a20 cli: add missing backend-test-utils deps to templates
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-01-19 10:48:39 +01:00
Jon Koops 4eeba9ed61 Upgrade zod-validation-error to version 4
Signed-off-by: Jon Koops <jonkoops@gmail.com>
2026-01-14 14:46:55 +01:00
Backstage Service Account 9f1ee3e667 Version Packages (next) (#32222)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-12-30 16:06:20 +01:00