Skip to content

Commit

Permalink
Drop package-lock.json (#693)
Browse files Browse the repository at this point in the history
And rewrite playwright:version using yarn.lock.
  • Loading branch information
mk authored Oct 2, 2024
1 parent dc51320 commit 1cd5694
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2,451 deletions.
7 changes: 5 additions & 2 deletions bb.edn
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,11 @@
:task (apply clojure "-X:test" *command-line-args*)}

playwright:version {:doc "Print used playwright version from ui_tests/package-lock.json"
:task (print (get-in (json/parse-string (->> "ui_tests/package-lock.json" slurp) true)
[:packages :node_modules/playwright-core :version]))}
:task (print (->> (babashka.process/shell {:out :string} "grep -E 'playwright-core \"(.*)\"' ui_tests/yarn.lock")
:out
str/trim
(re-find (re-pattern "playwright-core \"(.*)\""))
second))}

playwright:install {:task (shell {:dir "ui_tests"} "yarn playwright install --with-deps chromium")}

Expand Down
Loading

0 comments on commit 1cd5694

Please sign in to comment.