Skip to content

Commit f6c94f9

Browse files
authored
Merge pull request #4 from CatalaLang/switch-to-es6
Build: switch to es6 output + upgrade to [email protected]
2 parents 6e94730 + 36c5981 commit f6c94f9

File tree

3 files changed

+19
-15
lines changed

3 files changed

+19
-15
lines changed

bsconfig.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,14 @@
1313
"subdirs": true
1414
}
1515
],
16-
"package-specs": {
17-
"module": "commonjs",
18-
"in-source": true
19-
},
20-
"bs-dev-dependencies": ["rescript-nodejs"],
21-
"suffix": ".bs.js"
16+
"package-specs": [
17+
{
18+
"module": "es6",
19+
"in-source": true
20+
}
21+
],
22+
"suffix": ".bs.js",
23+
"refmt": 3,
24+
"jsx": { "version": 4, "mode": "classic" },
25+
"bs-dev-dependencies": ["rescript-nodejs"]
2226
}

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"version": "0.1.4",
55
"scripts": {
66
"clean": "rescript clean",
7-
"build": "rescript build",
8-
"watch": "rescript build -w"
7+
"build": "rescript build -with-deps",
8+
"watch": "rescript build -w -with-deps"
99
},
1010
"keywords": [
1111
"rescript",
@@ -15,12 +15,12 @@
1515
],
1616
"author": "Emile Rolley <[email protected]>",
1717
"license": "MIT",
18+
"dependencies": {
19+
"docx": "^8.2.3"
20+
},
1821
"devDependencies": {
1922
"file-saver": "^2.0.5",
2023
"rescript": "^10.1.4",
2124
"rescript-nodejs": "^15.0.0"
22-
},
23-
"dependencies": {
24-
"docx": "^8.2.2"
2525
}
2626
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ core-util-is@~1.0.0:
1212
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85"
1313
integrity sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==
1414

15-
docx@^8.2.2:
16-
version "8.2.2"
17-
resolved "https://registry.yarnpkg.com/docx/-/docx-8.2.2.tgz#9d280920a657493521df2fb8def9f7cfd8a05de4"
18-
integrity sha512-dWI5WfD/fDCLdjIA7CcDzV/1uyBD+mmr7jDLTUN997hcbPz56E701Kf1EEWdibdH9kk+0tFSmE+C0jTlkRZ7kQ==
15+
docx@^8.2.3:
16+
version "8.2.3"
17+
resolved "https://registry.yarnpkg.com/docx/-/docx-8.2.3.tgz#9389a7db582afcf27dba68a8e8e54eb692769c15"
18+
integrity sha512-Rlr/wPTDh+xQpFew3m4zYQ5OWEZO36HItyPCUbGdicB+ar4zIgseeJdqfcZIY0uQtMSrhGRpSFOTjii7h9cpHw==
1919
dependencies:
2020
"@types/node" "^20.3.1"
2121
jszip "^3.10.1"

0 commit comments

Comments
 (0)