diff --git a/src/index.ts b/src/index.ts index f1090fe..a00cd1e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,9 +1,3 @@ import { log } from "./logger"; // 第一种 -const listModules = () => { - Process.enumerateModules().forEach(item => log(JSON.stringify(item,null, 2))) -} - -(globalThis as any).listModules = listModules; - -listModules() +log("Hello Frida!") \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 667b68a..09ae9a9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,14 +1,14 @@ { - "compilerOptions": { - "target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ - "module": "commonjs", /* Specify what module code is generated. */ - "rootDir": "./src", /* Specify the root folder within your source files. */ - "outDir": "./dist", /* Specify an output folder for all emitted files. */ - "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ - "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ - "strict": true, /* Enable all strict type-checking options. */ - "skipLibCheck": true /* Skip type checking all .d.ts files. */ + "compilerOptions": { + "target": "ES2022", + "lib": ["ES2022"], + "module": "Node16", + "strict": true, + "noEmit": true }, - "include": ["src/**/*"], /* Include all files in the 'src' directory */ - "exclude": ["node_modules", "dist"] /* Exclude the 'node_modules' and 'dist' directories */ -} \ No newline at end of file + "include": ["src/**/*"] /* Include all files in the 'src' directory */, + "exclude": [ + "node_modules", + "dist" + ] /* Exclude the 'node_modules' and 'dist' directories */ +}