Skip to content

Commit b0d0bf0

Browse files
committed
refactor: update update-files.js
chore: rename using the CLI file naming style chore: switch to ESM
1 parent 1abb281 commit b0d0bf0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

updateLockfiles.js renamed to update-lockfiles.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
const fs = require("fs");
2-
const path = require("path");
3-
const { execSync } = require("child_process");
4-
const { cwd } = require("process");
5-
const yargs = require("yargs");
1+
import { execSync } from "node:child_process";
2+
import { cwd } from "node:process";
3+
import * as fs from "node:fs";
4+
import path from "node:path";
5+
import yargs from "yargs";
66

77
const args = yargs(process.argv)
88
.usage("$0 [--frameworks-dir]")
@@ -44,7 +44,7 @@ function getFrameworks() {
4444
fs.readdirSync(path.join(frameworksDir, type)).map((framework) => ({
4545
name: framework,
4646
type,
47-
}))
47+
})),
4848
);
4949

5050
return frameworks;

0 commit comments

Comments
 (0)