Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion rewatch/testrepo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"packages/new-namespace",
"packages/namespace-casing",
"packages/with-dev-deps",
"packages/compiled-by-legacy"
"packages/compiled-by-legacy",
"packages/package-name-mismatch"
]
},
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "xyz",
"name": "@testrepo/package-name-mismatch",
"version": "0.0.1",
"keywords": [
"rescript"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@testrepo/package-name-mismatch",
"name": "xyz",
"sources": {
"dir": "src",
"subdirs": true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Generated by ReScript, PLEASE EDIT WITH CARE


console.log("hi");

/* Not a pure module */
6 changes: 6 additions & 0 deletions rewatch/testrepo/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ __metadata:
languageName: unknown
linkType: soft

"@testrepo/package-name-mismatch@workspace:packages/package-name-mismatch":
version: 0.0.0-use.local
resolution: "@testrepo/package-name-mismatch@workspace:packages/package-name-mismatch"
languageName: unknown
linkType: soft

"@testrepo/with-dev-deps@workspace:packages/with-dev-deps":
version: 0.0.0-use.local
resolution: "@testrepo/with-dev-deps@workspace:packages/with-dev-deps"
Expand Down
8 changes: 7 additions & 1 deletion rewatch/tests/snapshots/dependency-cycle.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
Cleaned 0/15
WARN:

Package name mismatch for /Users/christoph/projects/cca/rescript/rewatch/testrepo/packages/package-name-mismatch:
The package.json name is "@testrepo/package-name-mismatch", while the rescript.json name is "xyz"
This inconsistency will cause issues with package resolution.

Cleaned 0/16
Parsed 1 source files
Compiled 0 modules

Expand Down
8 changes: 7 additions & 1 deletion rewatch/tests/snapshots/remove-file.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
Cleaned 1/15
WARN:

Package name mismatch for /packages/package-name-mismatch:
The package.json name is "@testrepo/package-name-mismatch", while the rescript.json name is "xyz"
This inconsistency will cause issues with package resolution.

Cleaned 1/16
Parsed 0 source files
Compiled 1 modules

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
Cleaned 2/15
WARN:

Package name mismatch for /packages/package-name-mismatch:
The package.json name is "@testrepo/package-name-mismatch", while the rescript.json name is "xyz"
This inconsistency will cause issues with package resolution.

Cleaned 2/16
Parsed 2 source files
Compiled 3 modules

Expand Down
8 changes: 7 additions & 1 deletion rewatch/tests/snapshots/rename-file-internal-dep.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
Cleaned 2/15
WARN:

Package name mismatch for /packages/package-name-mismatch:
The package.json name is "@testrepo/package-name-mismatch", while the rescript.json name is "xyz"
This inconsistency will cause issues with package resolution.

Cleaned 2/16
Parsed 2 source files
Compiled 2 modules

Expand Down
8 changes: 7 additions & 1 deletion rewatch/tests/snapshots/rename-file-with-interface.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
WARN:

Package name mismatch for /packages/package-name-mismatch:
The package.json name is "@testrepo/package-name-mismatch", while the rescript.json name is "xyz"
This inconsistency will cause issues with package resolution.

 No implementation file found for interface file (skipping): src/ModuleWithInterface.resi
Cleaned 2/15
Cleaned 2/16
Parsed 1 source files
Compiled 2 modules
Expand Down
8 changes: 7 additions & 1 deletion rewatch/tests/snapshots/rename-file.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Cleaned 1/15
WARN:

Package name mismatch for /Users/christoph/projects/cca/rescript/rewatch/testrepo/packages/package-name-mismatch:
The package.json name is "@testrepo/package-name-mismatch", while the rescript.json name is "xyz"
This inconsistency will cause issues with package resolution.

Cleaned 1/16
Parsed 1 source files
Compiled 1 modules
8 changes: 7 additions & 1 deletion rewatch/tests/snapshots/rename-interface-file.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
WARN:

Package name mismatch for /packages/package-name-mismatch:
The package.json name is "@testrepo/package-name-mismatch", while the rescript.json name is "xyz"
This inconsistency will cause issues with package resolution.

 No implementation file found for interface file (skipping): src/ModuleWithInterface2.resi
Cleaned 1/15
Cleaned 1/16
Parsed 1 source files
Compiled 2 modules
Expand Down
2 changes: 1 addition & 1 deletion rewatch/tests/suffix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fi
# Count files with new extension
file_count=$(find ./packages -name *.res.js | wc -l)

if [ "$file_count" -eq 26 ];
if [ "$file_count" -eq 28 ];
then
success "Found files with correct suffix"
else
Expand Down