Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0067a89

Browse files
committedMar 23, 2025··
Convert to ESM, with refactoring codebase
1 parent f5312e0 commit 0067a89

File tree

129 files changed

+1181
-1584
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+1181
-1584
lines changed
 

‎.github/workflows/get_artifact_dir_name.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const fs = require("node:fs");
2-
const os = require("node:os");
1+
import * as fs from "node:fs";
2+
import * as os from "node:os";
33

4-
const { platformName } = require("#cli/bin_path");
4+
import { platformName } from "#cli/paths";
55

66
// Pass artifactDirName to subsequent GitHub actions
77
fs.appendFileSync(

‎.github/workflows/prepare_package_upload.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
const fs = require("node:fs");
2-
const os = require("node:os");
1+
import * as fs from "node:fs";
2+
import * as os from "node:os";
33

4-
const packageSpec = require("rescript/package.json");
5-
const { version } = packageSpec;
4+
import { version } from "rescript/package.json" with { type: "json" };
65

76
const commitHash = process.argv[2] || process.env.GITHUB_SHA;
87
const commitHashShort = commitHash.substring(0, 7);

0 commit comments

Comments
 (0)
Please sign in to comment.