From 9f05c7241ebeb2c662b14ad4baa0b8f62ddc6f5e Mon Sep 17 00:00:00 2001 From: Morgan Joyce Date: Wed, 3 Sep 2025 11:47:17 -0500 Subject: [PATCH 1/3] feat(shell): default Patchright for Playwright via NODE_PATH alias --- .bash_exports | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.bash_exports b/.bash_exports index c79aefe8..17d59b09 100644 --- a/.bash_exports +++ b/.bash_exports @@ -28,3 +28,14 @@ fi if [ -f "$HOME/ppv/pillars/dotfiles/flywire-notes/bash-config.sh" ]; then source "$HOME/ppv/pillars/dotfiles/flywire-notes/bash-config.sh" fi +\n+# Default Patchright backend for Playwright (global, non-intrusive) +# If a user-level module alias exists at ~/.config/node-module-alias/node_modules, +# add it to NODE_PATH so that require('playwright') resolves to Patchright. +# This avoids wrapper scripts and per-repo code changes. +export PATCHRIGHT_MODULE_ROOT="$HOME/.config/node-module-alias/node_modules" +if [ -d "$PATCHRIGHT_MODULE_ROOT" ]; then + case :$NODE_PATH: in + *:$PATCHRIGHT_MODULE_ROOT:*) ;; + *) export NODE_PATH="$PATCHRIGHT_MODULE_ROOT:${NODE_PATH}" ;; + esac +fi From 95913d48a4fc9a3d6d7c907dc4c09f683dce5013 Mon Sep 17 00:00:00 2001 From: Morgan Joyce Date: Wed, 3 Sep 2025 11:48:32 -0500 Subject: [PATCH 2/3] Update .bash_exports --- .bash_exports | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bash_exports b/.bash_exports index 17d59b09..17ce6edc 100644 --- a/.bash_exports +++ b/.bash_exports @@ -28,7 +28,7 @@ fi if [ -f "$HOME/ppv/pillars/dotfiles/flywire-notes/bash-config.sh" ]; then source "$HOME/ppv/pillars/dotfiles/flywire-notes/bash-config.sh" fi -\n+# Default Patchright backend for Playwright (global, non-intrusive) +# Default Patchright backend for Playwright (global, non-intrusive) # If a user-level module alias exists at ~/.config/node-module-alias/node_modules, # add it to NODE_PATH so that require('playwright') resolves to Patchright. # This avoids wrapper scripts and per-repo code changes. From 7ed3320c2089c4fd8b1ccff308f13d4d74877e99 Mon Sep 17 00:00:00 2001 From: Morgan Joyce Date: Wed, 3 Sep 2025 11:49:41 -0500 Subject: [PATCH 3/3] Update .bash_exports --- .bash_exports | 1 + 1 file changed, 1 insertion(+) diff --git a/.bash_exports b/.bash_exports index 17ce6edc..caba5aad 100644 --- a/.bash_exports +++ b/.bash_exports @@ -28,6 +28,7 @@ fi if [ -f "$HOME/ppv/pillars/dotfiles/flywire-notes/bash-config.sh" ]; then source "$HOME/ppv/pillars/dotfiles/flywire-notes/bash-config.sh" fi + # Default Patchright backend for Playwright (global, non-intrusive) # If a user-level module alias exists at ~/.config/node-module-alias/node_modules, # add it to NODE_PATH so that require('playwright') resolves to Patchright.