Skip to content

Commit a4a0ada

Browse files
committed
Rollback ESM change - I forgot jest is terrible and doesn't support it. Don't have time to convert the tests to a good framework today.
1 parent 7ed5d48 commit a4a0ada

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

bsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
}
1313
],
1414
"package-specs": {
15-
"module": "es6",
16-
"in-source": true
15+
"module": "commonjs",
16+
"in-source": false
1717
},
18-
"suffix": ".mjs",
18+
"suffix": ".bs.js",
1919
"bs-dev-dependencies": [
2020
"@glennsl/rescript-jest"
2121
],

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"scripts": {
1818
"prepublishOnly": "yarn test",
1919
"clean": "rescript clean",
20-
"build": "yarn generate-tests && rescript",
20+
"build": "yarn generate-tests && rescript build -with-deps",
2121
"watch": "rescript build -w",
2222
"test": "yarn build && node node_modules/.bin/jest lib/js/__tests__/*_test.bs.js",
2323
"generate-tests": "cd __tests__ && yarn exec atdgen -t test.atd && yarn exec atdgen -bs test.atd"
@@ -34,5 +34,5 @@
3434
"contributors": [
3535
"Ahrefs <[email protected]>"
3636
],
37-
"packageManager": "yarn@4.1.1"
37+
"packageManager": "yarn@4.2.1+sha512.4326f6a5a916363bfd3533f984bc4c91d47a0c6af2d79fc6e8a25dec14a1be88ec354e2b1d2919461647ec8df1d39303575f7726827704cdf9909d38621c9300"
3838
}

0 commit comments

Comments
 (0)