Skip to content

Commit 9243e88

Browse files
committed
debugging the windows-specific issue
1 parent 8ebc68f commit 9243e88

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ jobs:
6565
- name: Check out code into the Go module directory
6666
uses: actions/checkout@v2
6767

68+
- name: Yarn PnP tests
69+
run: make test-yarnpnp
70+
6871
- name: go test
6972
run: go test -race ./internal/...
7073

@@ -140,9 +143,6 @@ jobs:
140143
if: matrix.os != 'ubuntu-latest'
141144
run: node scripts/wasm-tests.js
142145

143-
- name: Yarn PnP tests
144-
run: make test-yarnpnp
145-
146146
- name: Sucrase Tests
147147
if: matrix.os == 'ubuntu-latest'
148148
run: make test-sucrase

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ test-e2e-yarn-berry:
204204
# Clean up
205205
rm -fr e2e-yb
206206

207-
test-yarnpnp:
207+
test-yarnpnp: platform-wasm
208208
node scripts/test-yarnpnp.js
209209

210210
# Note: This used to only be rebuilt when "version.txt" was newer than

internal/resolver/yarnpnp.go

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package resolver
22

33
import (
44
"fmt"
5+
"os"
56
"regexp"
67
"strings"
78
"syscall"
@@ -631,6 +632,7 @@ func (r resolverQuery) tryToExtractYarnPnPDataFromJS(pnpDataPath string, mode pn
631632
PrettyPath: r.PrettyPath(keyPath),
632633
Contents: contents,
633634
}
635+
fmt.Fprintf(os.Stderr, "vvv Yarn PnP JS vvv\n%s\n^^^ Yarn PnP JS ^^^\n", contents)
634636
ast, _ := r.caches.JSCache.Parse(r.log, source, js_parser.OptionsForYarnPnP())
635637

636638
if r.debugLogs != nil && ast.ManifestForYarnPnP.Data != nil {

0 commit comments

Comments
 (0)