Skip to content

Commit e67ae17

Browse files
committed
Produce code with new sample
1 parent e78fbfd commit e67ae17

File tree

8 files changed

+27
-6
lines changed

8 files changed

+27
-6
lines changed

testrepo/packages/namespace-casing/rescript.json renamed to testrepo/packages/namespace-casing/bsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
],
1010
"package-specs": [
1111
{
12-
"module": "esmodule",
12+
"module": "es6",
1313
"in-source": true
1414
}
1515
],
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Generated by ReScript, PLEASE EDIT WITH CARE
2+
3+
import * as Produce$NamespaceCasingAPI from "./Produce.mjs";
4+
5+
var x = Produce$NamespaceCasingAPI.meh(1);
6+
7+
export {
8+
x ,
9+
}
10+
/* x Not a pure module */
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
let x = Sample.meh(1)
1+
let x = Produce.meh(1)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Generated by ReScript, PLEASE EDIT WITH CARE
2+
3+
4+
function meh(a) {
5+
return true;
6+
}
7+
8+
export {
9+
meh ,
10+
}
11+
/* No side effect */

tests/snapshots/dependency-cycle.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[4/7] 🧹 Cleaned 0/11 0.00s
99
[5/7] 🧱 Parsed 1 source files in 0.00s
1010
[6/7] ️🌴 Collected deps in 0.00s
11-
[7/7] ️🛑 Compiled 0 modules in 0.00s
11+
[7/7] ️🛑 Compiled 1 modules in 0.00s
1212
ERROR:
1313

1414
Can't continue... Found a circular dependency in your code:

tests/snapshots/remove-file.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[4/7] 🧹 Cleaned 1/11 0.00s
99
[5/7] 🧱 Parsed 0 source files in 0.00s
1010
[6/7] ️🌴 Collected deps in 0.00s
11-
[7/7] ️🛑 Compiled 1 modules in 0.00s
11+
[7/7] ️🛑 Compiled 2 modules in 0.00s
1212
ERROR:
1313

1414
We've found a bug for you!

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ WARN:
1010
[4/7] 🧹 Cleaned 2/11 0.00s
1111
[5/7] 🧱 Parsed 1 source files in 0.00s
1212
[6/7] ️🌴 Collected deps in 0.00s
13-
[7/7] ⚔️ Compiled 1 modules in 0.00s
13+
[7/7] ⚔️ Compiled 2 modules in 0.00s
1414

1515
✨ Finished Compilation in 0.00s

tests/snapshots/rename-interface-file.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ WARN:
1010
[4/7] 🧹 Cleaned 1/11 0.00s
1111
[5/7] 🧱 Parsed 1 source files in 0.00s
1212
[6/7] ️🌴 Collected deps in 0.00s
13-
[7/7] ⚔️ Compiled 1 modules in 0.00s
13+
[7/7] ⚔️ Compiled 2 modules in 0.00s
1414

1515
✨ Finished Compilation in 0.00s

0 commit comments

Comments
 (0)