Skip to content

Commit

Permalink
Update dependency upgrades - non-major (#597)
Browse files Browse the repository at this point in the history
* Update dependency upgrades - non-major

* Update `pnpm pack` output parsing in `__tests__/e2e.test.ts`

* Split the lines and match the line by the `preflight-...` pattern
* Remove the intermediary `pnpmPackOutput` variable and wrap the await expression in parentheses
* Use a more forgiving regex pattern for matching `preflight-...`
* Add error handling for missing tarball path in `pnpm pack` output

* Add debugging

* Fix path

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Karl Horky <[email protected]>
  • Loading branch information
renovate[bot] and karlhorky authored Nov 15, 2024
1 parent 773cf6c commit cb822b1
Show file tree
Hide file tree
Showing 3 changed files with 185 additions and 258 deletions.
9 changes: 8 additions & 1 deletion __tests__/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@ const fixturesTempDir = '__tests__/fixtures/__temp';
beforeAll(
async () => {
// Pack and install Preflight globally
const { stdout: pnpmPackTarballPath } = await execa`pnpm pack`;
const pnpmPackTarballPath = (await execa`pnpm pack`).stdout
.split('\n')
.find((line) => line.match(/^upleveled-preflight-.*\.tgz$/));

if (!pnpmPackTarballPath) {
throw new Error('Failed to find the tarball path in `pnpm pack` output');
}

await execa`pnpm add --global ${process.cwd()}/${pnpmPackTarballPath}`;

await pMap(
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"test-local": "rm -rf ./__tests__/fixtures/__temp && pnpm test"
},
"dependencies": {
"algoliasearch": "5.13.0",
"algoliasearch": "5.14.0",
"chalk": "5.3.0",
"cheerio": "1.0.0",
"depcheck": "1.4.7",
Expand All @@ -52,9 +52,9 @@
"prettier": "3.3.3",
"stylelint": "16.10.0",
"typescript": "5.6.3",
"vitest": "2.1.4"
"vitest": "2.1.5"
},
"packageManager": "pnpm@9.12.3+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee",
"packageManager": "pnpm@9.13.2+sha512.88c9c3864450350e65a33587ab801acf946d7c814ed1134da4a924f6df5a2120fd36b46aab68f7cd1d413149112d53c7db3a4136624cfd00ff1846a0c6cef48a",
"engines": {
"node": ">=18"
}
Expand Down
Loading

0 comments on commit cb822b1

Please sign in to comment.