Skip to content

Commit

Permalink
Build using bob
Browse files Browse the repository at this point in the history
  • Loading branch information
janicduplessis committed Aug 27, 2019
1 parent c94dc4f commit 3ddfc2a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
2 changes: 1 addition & 1 deletion example/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
} from 'react-native/Libraries/NewAppScreen';

// import { SafeAreaProvider, useSafeArea } from 'react-native-safe-area-context'; in your app.
import { SafeAreaProvider, useSafeArea } from '..';
import { SafeAreaProvider, useSafeArea } from '../src';

type ForceInsets = 'always' | 'never';

Expand Down
26 changes: 22 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
"name": "react-native-safe-area-context",
"version": "0.3.1",
"description": "A flexible way to handle safe area, also works on Android and web.",
"main": "src/index",
"module": "src/index",
"main": "lib/commonjs/index.js",
"module": "lib/module/index.js",
"react-native": "src/index.tsx",
"types": "lib/typescript/src/index.d.ts",
"sideEffects": false,
"files": [
"/src",
"/lib",
"/android",
"!/android/build",
"/ios",
"/src",
"/*.podspec"
],
"author": "Janic Duplessis <[email protected]>",
Expand All @@ -23,7 +26,8 @@
"test": "yarn validate:prettier && yarn validate:eslint && yarn validate:typescript",
"validate:eslint": "eslint \"src/**/*.{js,ts,tsx}\" \"example/**/*.{js,ts,tsx}\"",
"validate:typescript": "tsc --project ./ --noEmit",
"validate:prettier": "prettier \"src/**/*.{js,ts,tsx}\" \"example/**/*.{js,ts,tsx}\" --check"
"validate:prettier": "prettier \"src/**/*.{js,ts,tsx}\" \"example/**/*.{js,ts,tsx}\" --check",
"prepare": "bob build"
},
"keywords": [
"react-native",
Expand Down Expand Up @@ -58,5 +62,19 @@
"repository": {
"type": "git",
"url": "https://github.com/th3rdwave/react-native-safe-area-context.git"
},
"jest": {
"modulePathIgnorePatterns": [
"<rootDir>/lib/"
]
},
"@react-native-community/bob": {
"source": "src",
"output": "lib",
"targets": [
"commonjs",
"module",
"typescript"
]
}
}

0 comments on commit 3ddfc2a

Please sign in to comment.