Skip to content

Commit 445c961

Browse files
committed
Fix rewatch tests
1 parent 9b17a4c commit 445c961

File tree

13 files changed

+66
-11
lines changed

13 files changed

+66
-11
lines changed

rewatch/testrepo/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"packages/new-namespace",
1010
"packages/namespace-casing",
1111
"packages/with-dev-deps",
12-
"packages/compiled-by-legacy"
12+
"packages/compiled-by-legacy",
13+
"packages/package-name-mismatch"
1314
]
1415
},
1516
"dependencies": {

rewatch/testrepo/packages/package-name-mismatch/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "xyz",
2+
"name": "@testrepo/package-name-mismatch",
33
"version": "0.0.1",
44
"keywords": [
55
"rescript"

rewatch/testrepo/packages/package-name-mismatch/rescript.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@testrepo/package-name-mismatch",
2+
"name": "xyz",
33
"sources": {
44
"dir": "src",
55
"subdirs": true
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Generated by ReScript, PLEASE EDIT WITH CARE
2+
3+
4+
console.log("hi");
5+
6+
/* Not a pure module */

rewatch/testrepo/yarn.lock

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ __metadata:
8181
languageName: unknown
8282
linkType: soft
8383

84+
"@testrepo/package-name-mismatch@workspace:packages/package-name-mismatch":
85+
version: 0.0.0-use.local
86+
resolution: "@testrepo/package-name-mismatch@workspace:packages/package-name-mismatch"
87+
languageName: unknown
88+
linkType: soft
89+
8490
"@testrepo/with-dev-deps@workspace:packages/with-dev-deps":
8591
version: 0.0.0-use.local
8692
resolution: "@testrepo/with-dev-deps@workspace:packages/with-dev-deps"

rewatch/tests/snapshots/dependency-cycle.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
Cleaned 0/15
1+
WARN:
2+
3+
Package name mismatch for /Users/christoph/projects/cca/rescript/rewatch/testrepo/packages/package-name-mismatch:
4+
The package.json name is "@testrepo/package-name-mismatch", while the rescript.json name is "xyz"
5+
This inconsistency will cause issues with package resolution.
6+
7+
Cleaned 0/16
28
Parsed 1 source files
39
Compiled 0 modules
410

rewatch/tests/snapshots/remove-file.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
Cleaned 1/15
1+
WARN:
2+
3+
Package name mismatch for /packages/package-name-mismatch:
4+
The package.json name is "@testrepo/package-name-mismatch", while the rescript.json name is "xyz"
5+
This inconsistency will cause issues with package resolution.
6+
7+
Cleaned 1/16
28
Parsed 0 source files
39
Compiled 1 modules
410

rewatch/tests/snapshots/rename-file-internal-dep-namespace.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
Cleaned 2/15
1+
WARN:
2+
3+
Package name mismatch for /packages/package-name-mismatch:
4+
The package.json name is "@testrepo/package-name-mismatch", while the rescript.json name is "xyz"
5+
This inconsistency will cause issues with package resolution.
6+
7+
Cleaned 2/16
28
Parsed 2 source files
39
Compiled 3 modules
410

rewatch/tests/snapshots/rename-file-internal-dep.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
Cleaned 2/15
1+
WARN:
2+
3+
Package name mismatch for /packages/package-name-mismatch:
4+
The package.json name is "@testrepo/package-name-mismatch", while the rescript.json name is "xyz"
5+
This inconsistency will cause issues with package resolution.
6+
7+
Cleaned 2/16
28
Parsed 2 source files
39
Compiled 2 modules
410

rewatch/tests/snapshots/rename-file-with-interface.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1+
WARN:
2+
3+
Package name mismatch for /packages/package-name-mismatch:
4+
The package.json name is "@testrepo/package-name-mismatch", while the rescript.json name is "xyz"
5+
This inconsistency will cause issues with package resolution.
6+
17
 No implementation file found for interface file (skipping): src/ModuleWithInterface.resi
2-
Cleaned 2/15
8+
Cleaned 2/16
39
Parsed 1 source files
410
Compiled 2 modules

0 commit comments

Comments
 (0)