playwright/packages/playwright-core
Patrick Shaw 6e78dcb7dc
fix: Allow portable bash paths for systems including NixOS (#23889)
Although very common, bash is not guaranteed to be located at
`/bin/bash`. NixOS is an example of this.

More commonly, `/bin/bash` can be quite out of date. An example of this
is MacOS's version of `bash`. This realistically won't affect Playwright
but it's worth noting. You can technically update MacOS's system version
of bash but you need elevated permissions to do so.

By using `/usr/bin/env bash` instead of `/bin/bash` we can execute
Playwright's bash scripts in like NixOS and generally improve the
selection behaviour for bash in other systems too.

Some discussion of why it's worth favouring `/usr/bin/env bash` over
`/bin/bash`:
- Discusses `/bin/bash` missing in NixOS:
https://discourse.nixos.org/t/add-bin-bash-to-avoid-unnecessary-pain/5673
- Some general commentary on why `/usr/bin/env bash` is favoured:
https://askubuntu.com/a/1402721
- Points out how old bash is in MacOS:
https://itnext.io/upgrading-bash-on-macos-7138bd1066ba

Improves situation at #5501
2023-07-03 06:27:06 -07:00
..
bin fix: Allow portable bash paths for systems including NixOS (#23889) 2023-07-03 06:27:06 -07:00
bundles chore: move pw-core utilsBundleImpl into own directory (#23706) 2023-06-15 20:16:47 +02:00
src chore: introduce ReporterV2 interface (#23983) 2023-06-30 13:36:50 -07:00
types feat(electron): support tracesDir option (#23947) 2023-06-28 16:32:16 -07:00
.eslintrc.js lint: prevent object string concatenation (#23172) 2023-05-19 15:17:43 -07:00
.npmignore chore: move pw-core utilsBundleImpl into own directory (#23706) 2023-06-15 20:16:47 +02:00
browsers.json feat(webkit): roll to r1868 (#23969) 2023-06-29 23:27:48 +02:00
cli.js chore: fix playwright-core cli (#23203) 2023-05-22 12:37:08 -07:00
index.d.ts chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
index.js chore: sunset Node.js 12 (#16512) 2022-08-15 18:10:04 +02:00
index.mjs fix: export request from index.jsm (#13158) 2022-03-30 09:35:47 -07:00
package.json chore: cut 1.35.0 (#23579) 2023-06-07 12:41:56 -07:00
README.md chore: drop dependency on playwright-core in all our packages (#2318) 2020-05-21 13:18:15 -07:00
ThirdPartyNotices.txt chore: make trace viewer work over http (#23531) 2023-06-05 16:30:30 -07:00

playwright-core

This package contains the no-browser flavor of Playwright.