diff --git a/lib/useOnyx.ts b/lib/useOnyx.ts index 15ccc06c3..701e3ac48 100644 --- a/lib/useOnyx.ts +++ b/lib/useOnyx.ts @@ -144,7 +144,7 @@ function useOnyx>( // in `getSnapshot()` to be satisfied several times. const isFirstConnectionRef = useRef(true); - // Indicates if the hook is connecting to a Onyx key. + // Indicates if the hook is connecting to an Onyx key. const isConnectingRef = useRef(false); // Stores the `onStoreChange()` function, which can be used to trigger a `getSnapshot()` update when desired. diff --git a/package.json b/package.json index ec00fe850..91d83bfe8 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,8 @@ "README.md", "LICENSE.md" ], - "main": "lib/index.ts", + "main": "dist/index.js", + "types": "dist/index.d.ts", "scripts": { "lint": "eslint .", "typecheck": "tsc --noEmit",