Skip to content

Commit

Permalink
refactor: align node imports
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiKilian committed Dec 5, 2024
1 parent e6aeb00 commit 4b009a9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/examples/MetroWithMonorepoPaths.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-env node */
const path = require("path");
const path = require("node:path");
const { getConfig } = require("react-native-builder-bob/metro-config");

const pkg = require("../../package.json");
Expand Down
2 changes: 1 addition & 1 deletion packages/expo-app/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-env node */
const path = require("path");
const path = require("node:path");
const { getConfig } = require("react-native-builder-bob/babel-config");

const pkg = require("../../package.json");
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-app/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-env node */
const path = require("path");
const path = require("node:path");
const { getConfig } = require("react-native-builder-bob/babel-config");

const pkg = require("../../package.json");
Expand Down
4 changes: 2 additions & 2 deletions plugin/src/withMapLibre.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
mergeContents,
removeGeneratedContents,
} from "@expo/config-plugins/build/utils/generateCode";
import { promises } from "fs";
import path from "path";
import { promises } from "node:fs";
import path from "node:path";

let pkg: { name: string; version?: string } = {
name: "@maplibre/maplibre-react-native",
Expand Down
2 changes: 1 addition & 1 deletion scripts/utils/getNativeVersion.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { promises as fs } from "fs";
import { promises as fs } from "node:fs";
import path from "node:path";

async function getNativeVersion(pathSegments: string[], regex: RegExp) {
Expand Down

0 comments on commit 4b009a9

Please sign in to comment.