From 94e27c9dcdc86d11f1a055ae3c7088aaa1b7cd64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Re=C3=A9?= Date: Sun, 5 Jan 2025 11:06:20 +0100 Subject: [PATCH] More tooling updates --- .gitattributes | 3 +++ .gitignore | 2 +- package.json | 2 +- bsconfig.json => rescript.json | 9 ++++++--- 4 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 .gitattributes rename bsconfig.json => rescript.json (77%) diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6c0db7d --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +# Tell github that .res and .resi files are ReScript +*.res linguist-language=ReScript +*.resi linguist-language=ReScript diff --git a/.gitignore b/.gitignore index bb87fbd..0d2516e 100644 --- a/.gitignore +++ b/.gitignore @@ -26,7 +26,7 @@ lib/bs .bsb.lock /node_modules/ -*.bs.js +*.bs.mjs lib/ocaml simple-paragraph.docx diff --git a/package.json b/package.json index 0aa7a63..f6bc343 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@greenfinity/rescript-docx", "description": "ReScript bindings for the docx.js lib", - "version": "0.1.5", + "version": "0.1.6", "scripts": { "changelog": "yarn auto-changelog -p && git add HISTORY.md", "build": "yarn rescript:build", diff --git a/bsconfig.json b/rescript.json similarity index 77% rename from bsconfig.json rename to rescript.json index f36f2d8..6a90249 100644 --- a/bsconfig.json +++ b/rescript.json @@ -15,12 +15,15 @@ ], "package-specs": [ { - "module": "es6", + "module": "esmodule", "in-source": true } ], - "suffix": ".bs.js", - "refmt": 3, + "warnings": { + "number": "-44", + "error": "+101" + }, + "suffix": ".bs.mjs", "jsx": { "version": 4, "mode": "classic" }, "bs-dev-dependencies": ["rescript-nodejs"] }