diff --git a/packages/examples/MetroWithMonorepoPaths.js b/packages/examples/MetroWithMonorepoPaths.js index 7a27ac887..f981c35ac 100644 --- a/packages/examples/MetroWithMonorepoPaths.js +++ b/packages/examples/MetroWithMonorepoPaths.js @@ -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"); diff --git a/packages/expo-app/babel.config.js b/packages/expo-app/babel.config.js index 4587c554e..ebd1a71fc 100644 --- a/packages/expo-app/babel.config.js +++ b/packages/expo-app/babel.config.js @@ -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"); diff --git a/packages/react-native-app/babel.config.js b/packages/react-native-app/babel.config.js index 0d9d90f71..4739c3acd 100644 --- a/packages/react-native-app/babel.config.js +++ b/packages/react-native-app/babel.config.js @@ -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"); diff --git a/plugin/src/withMapLibre.ts b/plugin/src/withMapLibre.ts index a6e608769..07b91d771 100644 --- a/plugin/src/withMapLibre.ts +++ b/plugin/src/withMapLibre.ts @@ -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", diff --git a/scripts/utils/getNativeVersion.ts b/scripts/utils/getNativeVersion.ts index ac02f5806..5f1699e97 100644 --- a/scripts/utils/getNativeVersion.ts +++ b/scripts/utils/getNativeVersion.ts @@ -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) {