diff --git a/lib/init/src/index.ts b/lib/init/src/index.ts index a74959c..93b2ec1 100644 --- a/lib/init/src/index.ts +++ b/lib/init/src/index.ts @@ -3,8 +3,8 @@ import './preinit' import './patches/prevent-immutablize' import './patches/proxy' -import { getErrorStack } from '@revenge-mod/utils/errors' import { onModuleInitialized } from '@revenge-mod/modules/metro/subscriptions' +import { getErrorStack } from '@revenge-mod/utils/errors' import { logger } from './shared' diff --git a/lib/modules/package.json b/lib/modules/package.json index 204c9b8..ff6d220 100644 --- a/lib/modules/package.json +++ b/lib/modules/package.json @@ -22,4 +22,4 @@ "default": "./src/metro/_internal.ts" } } -} \ No newline at end of file +} diff --git a/lib/patcher/package.json b/lib/patcher/package.json index 88c374c..60f3510 100644 --- a/lib/patcher/package.json +++ b/lib/patcher/package.json @@ -13,4 +13,4 @@ "default": "./src/index.ts" } } -} \ No newline at end of file +} diff --git a/lib/patcher/src/hooks/after.ts b/lib/patcher/src/hooks/after.ts index cd02d5c..ceb6c1d 100644 --- a/lib/patcher/src/hooks/after.ts +++ b/lib/patcher/src/hooks/after.ts @@ -1,9 +1,9 @@ import { + type HookNode, + type PatchedFunctionProxyState, createPatchedFunctionProxy, patchedFunctionProxyStates, unproxy, - type HookNode, - type PatchedFunctionProxyState, } from '../_internal' function unpatchAfter( diff --git a/lib/patcher/src/hooks/before.ts b/lib/patcher/src/hooks/before.ts index 61cf36b..0c8fb5f 100644 --- a/lib/patcher/src/hooks/before.ts +++ b/lib/patcher/src/hooks/before.ts @@ -1,9 +1,9 @@ import { + type HookNode, + type PatchedFunctionProxyState, createPatchedFunctionProxy, patchedFunctionProxyStates, unproxy, - type HookNode, - type PatchedFunctionProxyState, } from '../_internal' function unpatchBefore( diff --git a/lib/patcher/src/hooks/instead.ts b/lib/patcher/src/hooks/instead.ts index ca92c28..94f7547 100644 --- a/lib/patcher/src/hooks/instead.ts +++ b/lib/patcher/src/hooks/instead.ts @@ -1,11 +1,11 @@ import { + type FunctionProxyState, + type InsteadHookNode, + type PatchedFunctionProxyState, createPatchedFunctionProxy, patchedFunctionProxyHandler, patchedFunctionProxyStates, unproxy, - type FunctionProxyState, - type InsteadHookNode, - type PatchedFunctionProxyState, } from '../_internal' const insteadHookProxyHandler = { diff --git a/package.json b/package.json index 56fafd3..24a4c47 100644 --- a/package.json +++ b/package.json @@ -24,13 +24,6 @@ "react-native": "0.76.6", "typescript": "^5.7.3" }, - "workspaces": [ - "lib/*", - "plugins/*" - ], - "trustedDependencies": [ - "@biomejs/biome", - "@parcel/watcher", - "@swc/core" - ] -} \ No newline at end of file + "workspaces": ["lib/*", "plugins/*"], + "trustedDependencies": ["@biomejs/biome", "@parcel/watcher", "@swc/core"] +} diff --git a/tsconfig.json b/tsconfig.json index 4ff0965..1fda367 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,22 +7,21 @@ "moduleDetection": "force", "jsx": "react-jsx", "allowJs": true, - // Bundler mode "moduleResolution": "bundler", "allowImportingTsExtensions": true, "verbatimModuleSyntax": true, "noEmit": true, - // Best practices "strict": true, "skipLibCheck": true, "noFallthroughCasesInSwitch": true, - // Some stricter flags (disabled by default) "noUnusedLocals": false, "noUnusedParameters": false, - "noPropertyAccessFromIndexSignature": false + "noPropertyAccessFromIndexSignature": false, + // Other options + "types": [] }, "exclude": ["scripts/**"] }