Skip to content

Commit

Permalink
refactor: replace NodeJS internal module imports with node: specifi…
Browse files Browse the repository at this point in the history
…er imports (#597)
  • Loading branch information
wolfy1339 committed Nov 28, 2023
1 parent 5e9a891 commit 623cc63
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions scripts/update-endpoints/fetch-json.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { writeFileSync } from "fs";
import { resolve } from "path";
import { fileURLToPath } from "url";
import { writeFileSync } from "node:fs";
import { resolve } from "node:path";
import { fileURLToPath } from "node:url";

import graphql from "github-openapi-graphql-query";
import { format } from "prettier";
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-endpoints/package.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { writeFileSync, readFileSync } from "fs";
import { writeFileSync, readFileSync } from "node:fs";

if (!process.env.VERSION) {
throw new Error(`VERSION environment variable must be set`);
Expand Down
4 changes: 2 additions & 2 deletions scripts/update-endpoints/typescript.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { readFileSync, writeFileSync } from "fs";
import { resolve } from "path";
import { readFileSync, writeFileSync } from "node:fs";
import { resolve } from "node:path";

import handlebars from "handlebars";
import { format } from "prettier";
Expand Down

0 comments on commit 623cc63

Please sign in to comment.