Skip to content

Commit 4c3b096

Browse files
committed
remove dynamic require from fs
1 parent c9023f3 commit 4c3b096

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/findPackageNodePath.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { CONFIG } from "./CONFIG";
22
import { Export } from "./Export";
33
import { logger } from "./Logger";
44
import { isBrowser } from "./platform";
5+
import fs from "node:fs";
56

67
export const findPackageNodePath = function (packagename:string):string|null {
78
let sdkPath = null;
89
if (!isBrowser) {
910
// eslint-disable-next-line @typescript-eslint/no-require-imports
10-
const fs = require("fs");
1111
try {
1212
let sdkPaths = [
1313
`${CONFIG.get("projectPath")}${CONFIG.get("relativeImportPath")}`,

0 commit comments

Comments
 (0)