Commit ffaa7e6
fix: resolve @playwright/test from project cwd, not action dist directory
When running as a GitHub Action, the action bundle lives in a separate
directory from the user's project (e.g. /home/runner/work/_actions/...).
Dynamic import() resolves bare specifiers from the calling file's location,
so @playwright/test couldn't be found.
Use createRequire(join(process.cwd(), 'package.json')) instead so the
package is resolved from the user's project directory where they have it
installed.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 64366e7 commit ffaa7e6
File tree
4 files changed
+14
-7
lines changed- packages
- action/dist
- core/src/recorder
4 files changed
+14
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65511 | 65511 | | |
65512 | 65512 | | |
65513 | 65513 | | |
| 65514 | + | |
65514 | 65515 | | |
65515 | 65516 | | |
65516 | 65517 | | |
65517 | 65518 | | |
65518 | 65519 | | |
65519 | | - | |
| 65520 | + | |
65520 | 65521 | | |
65521 | 65522 | | |
65522 | 65523 | | |
| |||
65767 | 65768 | | |
65768 | 65769 | | |
65769 | 65770 | | |
| 65771 | + | |
65770 | 65772 | | |
65771 | 65773 | | |
65772 | 65774 | | |
65773 | 65775 | | |
65774 | | - | |
| 65776 | + | |
65775 | 65777 | | |
65776 | 65778 | | |
65777 | 65779 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| |||
0 commit comments