Commit Graph

1962 Commits

Author SHA1 Message Date
github-actions[bot] 675324ed19 Version Packages (next) 2023-01-31 14:45:37 +00:00
Patrik Oldsberg c830f3ce7c Merge pull request #16027 from backstage/rugvip/workers
cli: additional fix for worker memory limits to make sure it's always applied by default
2023-01-30 14:49:54 +01:00
Patrik Oldsberg 6d3abfded1 cli: switch to inline source maps for jest setup
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-01-29 14:55:18 +01:00
Patrik Oldsberg 32e280c81a cli: refactor flag detection in repo test
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-01-28 17:33:57 +01:00
Patrik Oldsberg 312a5d9f30 cli: make sure max workers workers are set to at least 2 by default
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-01-28 15:47:10 +01:00
Patrik Oldsberg f2c5d9a707 Merge pull request #15974 from backstage/renovate/esbuild-0.x
chore(deps): update dependency esbuild to ^0.17.0
2023-01-27 12:17:21 +01:00
Patrik Oldsberg 561df21ea3 cli: set a default jest worker memory limit
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-01-26 12:09:41 +01:00
renovate[bot] 66cf22fdc4 chore(deps): update dependency esbuild to ^0.17.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-01-25 18:55:17 +00:00
blam 77c980b3ea chore: fix code review comments whilst mitch is away
Signed-off-by: blam <ben@blam.sh>
2023-01-25 11:01:00 +01:00
Mitchell Hentges 2815981057 Make build error cause more clear by prepending with module name
Simplify the diagnosis of build failures by showing the module name
encountering the issue right before the error itself is printed.

Also apply the fix to warnings.

Fixes #15815

Signed-off-by: Mitchell Hentges <mhentges@spotify.com>
2023-01-20 10:09:03 -08:00
Mitchell Hentges edd9c270b6 Simplify redundant catch() during CLI bundling
Remove extra "Failed to compile" message that was redundant, and inline
"Failed to compile" message into upstream errors.

Note that now _other_ errors (such as `webpack(...)` failures) will not
be prefixed with "Failed to compile". However, it should be sufficiently
obvious that they're serious failures, so we should be OK without the
extra information.

Signed-off-by: Mitchell Hentges <mhentges@spotify.com>
2023-01-20 10:09:03 -08:00
Mitchell Hentges 65ca9b2a1c Remove react-dev-utils error compatibility workaround
To work around a `react-dev-utils` compatibility problem, errors and
warnings had context stripped before being formatted.

Since this workaround was was only needed until `react-dev-utils` v5 was
release (now over a year ago, nice! [1]), I think that it can be
removed.

[1] https://github.com/facebook/create-react-app/releases/tag/v5.0.0

Signed-off-by: Mitchell Hentges <mhentges@spotify.com>
2023-01-20 10:09:03 -08:00
github-actions[bot] 6d46667727 Version Packages 2023-01-17 11:50:48 +00:00
Aramis Sennyey 77b75cea3e Update pluginId in backend plugin creation.
Signed-off-by: Aramis Sennyey <sennyeya@amazon.com>
2023-01-13 15:32:43 -05:00
github-actions[bot] 9521f1274d Version Packages (next) 2023-01-10 14:18:51 +00:00
Fredrik Adelöw d06a7890c6 removed unusued package type-fest
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2023-01-05 13:10:44 +01:00
Ben Lambert 2913a6b701 Merge pull request #15470 from mitchhentgesspotify/mhentges/fix-base-url-conflict-message
Use both variables in cli's "base url conflict" error message
2023-01-04 14:27:42 +01:00
github-actions[bot] c4132274d9 Version Packages (next) 2023-01-03 14:44:31 +00:00
Mitchell Hentges 7b407b303b Use both variables in cli's "base url conflict" error message
`appBaseUrl` was specified twice - which _is_ fine, because the two
values were already proven equal - but it took me until writing this
commit message to realize that it isn't a bug.

So, I'd advocate for this change as "ease of understanding" improvement
:)

Signed-off-by: Mitchell Hentges <mhentges@spotify.com>
2023-01-02 07:09:00 -08:00
Patrik Oldsberg db2e137744 remove unnecessary usages of ThemeProvider
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-31 18:24:32 +01:00
Patrik Oldsberg 173dd4302c Merge pull request #15207 from backstage/eide/webpack-cache
[cli]: Enable cache for production build using experimental env var
2022-12-28 11:35:50 +01:00
Patrik Oldsberg 25423150a2 Revert "cli: include entire cli folder for cache invalidation"
This reverts commit 870882741c.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-28 10:59:00 +01:00
github-actions[bot] f834622f56 Version Packages (next) 2022-12-27 15:22:57 +00:00
Johan Haals 6ab9bfd301 Merge pull request #15397 from backstage/jhaals/repo-tools
repo-tools/chore: Update tests to pass on windows
2022-12-22 17:03:35 +01:00
Johan Haals 8a79b2ef5d Use path.join to fix windows tests
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2022-12-22 16:31:59 +01:00
Patrik Oldsberg ea91c01cc9 cli: fix merge conflicts in Lockfile tests
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-22 14:54:08 +01:00
Patrik Oldsberg 39d192d016 cli: added PackageGraph test for lockfile analysis
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-22 14:52:44 +01:00
Patrik Oldsberg 7bd873ad15 cli: handle failure to read lockfile during analysis
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-22 14:52:44 +01:00
Patrik Oldsberg 536d3e764a cli: fix missing arg for lockfile.save()
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-22 14:52:43 +01:00
Patrik Oldsberg 7c8a974515 cli: make --since flag for repo build, lint and test commands diff yarn lock
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-22 14:52:43 +01:00
Patrik Oldsberg 79bc82828f cli: add ability to analyze lockfile changes when listing changed packages
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-22 14:52:43 +01:00
Patrik Oldsberg a11a8082ce cli: add git utility for reading a file at a ref
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-22 14:52:43 +01:00
Patrik Oldsberg 99898258cd cli: add simple dependency graph utility for lockfiles
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-22 14:52:43 +01:00
Patrik Oldsberg 18543ed94b cli: fix lockfile test formats
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-22 14:52:43 +01:00
Patrik Oldsberg 3c71bf7789 cli: fix lockfile diff for entries without checksum
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-22 14:52:43 +01:00
Patrik Oldsberg 60196dc40f cli: flip around lockfile diff
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-22 14:52:43 +01:00
Patrik Oldsberg d2ad8ca3af cli: add Lockfile.diff
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-22 14:52:42 +01:00
Patrik Oldsberg 9083673db8 cli: slight lockfile lib refactor
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-22 14:51:29 +01:00
Patrik Oldsberg fbdb48941f cli: use package graph to look up local lockfile versions
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-21 16:54:07 +01:00
Patrik Oldsberg e1b71e142e cli: no longer treat workspace ranges as invalid
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-21 16:01:50 +01:00
Patrik Oldsberg a62a1f9dca cli: apply package duplication filter during yarn start
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-21 15:32:16 +01:00
Fredrik Adelöw 47c10706df attempt to unbreak the duplicated versions problem in master
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-12-21 14:03:24 +01:00
Marcus Eide 870882741c cli: include entire cli folder for cache invalidation
Signed-off-by: Marcus Eide <eide@spotify.com>
2022-12-21 13:22:07 +01:00
Fredrik Adelöw 2d33cd4dc0 favor afterEach for mock-fs
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-12-20 15:09:41 +01:00
github-actions[bot] 3245539963 Version Packages 2022-12-20 11:30:21 +00:00
Brett Wright 339c24bbfc Added test for skipInstall option
Signed-off-by: Brett Wright <brett.wright@nine.com.au>
2022-12-20 11:21:00 +11:00
Brett Wright dd375b47c0 Update packages/cli/src/commands/versions/bump.ts
Co-authored-by: Johan Haals <johan@haals.se>
Signed-off-by: Brett Wright <wright.brett@gmail.com>
2022-12-17 10:38:17 +11:00
Brett Wright 8e0358e18d Added --skip-install parameter to backstage-cli versions:bump
Signed-off-by: Brett Wright <brett.wright@nine.com.au>
2022-12-16 09:39:29 +11:00
github-actions[bot] b2f4e97add Version Packages (next) 2022-12-13 16:56:03 +00:00
Patrik Oldsberg 895e976145 Merge pull request #14840 from kurtaking/web-library-plugin
Web Library Plugin (Package)
2022-12-13 17:46:51 +01:00