Skip to content

Commit 623cc63

Browse files
authored
refactor: replace NodeJS internal module imports with node: specifier imports (#597)
1 parent 5e9a891 commit 623cc63

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

scripts/update-endpoints/fetch-json.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { writeFileSync } from "fs";
2-
import { resolve } from "path";
3-
import { fileURLToPath } from "url";
1+
import { writeFileSync } from "node:fs";
2+
import { resolve } from "node:path";
3+
import { fileURLToPath } from "node:url";
44

55
import graphql from "github-openapi-graphql-query";
66
import { format } from "prettier";

scripts/update-endpoints/package.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { writeFileSync, readFileSync } from "fs";
1+
import { writeFileSync, readFileSync } from "node:fs";
22

33
if (!process.env.VERSION) {
44
throw new Error(`VERSION environment variable must be set`);

scripts/update-endpoints/typescript.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { readFileSync, writeFileSync } from "fs";
2-
import { resolve } from "path";
1+
import { readFileSync, writeFileSync } from "node:fs";
2+
import { resolve } from "node:path";
33

44
import handlebars from "handlebars";
55
import { format } from "prettier";

0 commit comments

Comments
 (0)