Skip to content

Commit 810cd08

Browse files
committed
fix(flake.nix): assert equal playwright version in nix and package.json
Change-Id: I8cc78e842f7d0b1d2a90a4517a186a03636c5559 Signed-off-by: Thomas Kosiewski <tk@coder.com>
1 parent a2cc1b8 commit 810cd08

File tree

3 files changed

+28
-15
lines changed

3 files changed

+28
-15
lines changed

flake.nix

+8
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,14 @@
216216
'';
217217
};
218218
in
219+
# "Keep in mind that you need to use the same version of playwright in your node playwright project as in your nixpkgs, or else playwright will try to use browsers versions that aren't installed!"
220+
# - https://nixos.wiki/wiki/Playwright
221+
assert pkgs.lib.assertMsg
222+
(
223+
(pkgs.lib.importJSON ./site/package.json).devDependencies."@playwright/test"
224+
== pkgs.playwright-driver.version
225+
)
226+
"There is a mismatch between the playwright versions in the ./nix.flake and the ./site/package.json file. Please make sure that they use the exact same version.";
219227
rec {
220228
inherit formatter;
221229

site/package.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
"@biomejs/biome": "1.9.4",
127127
"@chromatic-com/storybook": "3.2.2",
128128
"@octokit/types": "12.3.0",
129-
"@playwright/test": "1.47.2",
129+
"@playwright/test": "1.47.0",
130130
"@storybook/addon-actions": "8.5.2",
131131
"@storybook/addon-essentials": "8.4.6",
132132
"@storybook/addon-interactions": "8.5.3",
@@ -189,7 +189,11 @@
189189
"vite-plugin-checker": "0.8.0",
190190
"vite-plugin-turbosnap": "1.0.3"
191191
},
192-
"browserslist": ["chrome 110", "firefox 111", "safari 16.0"],
192+
"browserslist": [
193+
"chrome 110",
194+
"firefox 111",
195+
"safari 16.0"
196+
],
193197
"resolutions": {
194198
"optionator": "0.9.3",
195199
"semver": "7.6.2"

site/pnpm-lock.yaml

+14-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)