Skip to content

chore: include index.ts in src #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions index.js

This file was deleted.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"name": "react-native-hooks",
"version": "0.9.0",
"description": "",
"main": "index.js",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"scripts": {
"prepare":"yarn build",
"build": "yarn tsc",
"release": "release-it",
"test": "echo \"Error: no test specified\" && exit 1"
Expand All @@ -21,7 +23,6 @@
"typescript": "^3.6.4"
},
"files": [
"index.js",
"lib"
]
}
23 changes: 23 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import useDimensions from './useDimensions'
import useAppState from './useAppState'
import useBackHandler from './useBackHandler'
import useCameraRoll from './useCameraRoll'
import useClipboard from './useClipboard'
import useAccessibilityInfo from './useAccessibilityInfo'
import useKeyboard from './useKeyboard'
import useInteractionManager from './useInteractionManager'
import useDeviceOrientation from './useDeviceOrientation'
import useLayout from './useLayout'

export {
useDimensions,
useAppState,
useBackHandler,
useCameraRoll,
useClipboard,
useAccessibilityInfo,
useKeyboard,
useInteractionManager,
useDeviceOrientation,
useLayout
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
"outDir": "./lib", /* Redirect output structure to the directory. */
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
"rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
// "composite": true, /* Enable project compilation */
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
// "removeComments": true, /* Do not emit comments to output. */
Expand Down