Skip to content

Commit

Permalink
Merge pull request #194 from jeongshin/fix/bob-build
Browse files Browse the repository at this point in the history
fix: use builder bob to make outputs & fix package entry
  • Loading branch information
baronha authored Dec 15, 2024
2 parents 383fa30 + 8bfa37c commit 48204f1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
26 changes: 20 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "@baronha/react-native-multiple-image-picker",
"version": "2.0.3",
"description": "� react-native-multiple-image-picker enables applications to pick images and videos from multiple smart albums in iOS/Android �",
"main": "lib/index",
"module": "lib/index",
"types": "lib/index.d.ts",
"main": "./lib/commonjs/index.js",
"module": "./lib/module/index.js",
"types": "./lib/typescript/index.d.ts",
"react-native": "src/index",
"source": "src/index",
"files": [
Expand All @@ -27,8 +27,7 @@
"README.md"
],
"scripts": {
"postinstall": "tsc || exit 0;",
"typecheck": "tsc --noEmit",
"typecheck": "tsc --project tsconfig.build.json --noEmit",
"clean": "rm -rf android/build node_modules/**/android/build lib",
"lint": "eslint \"**/*.{js,ts,tsx}\" --fix",
"lint-ci": "eslint \"**/*.{js,ts,tsx}\" -f @jamesacarr/github-actions",
Expand All @@ -37,7 +36,8 @@
"nitro": "yarn nitro-codegen",
"example": "yarn --cwd MultipleImagePickerExample",
"pod": "cd MultipleImagePickerExample && pod-install --quiet",
"bootstrap": "yarn example && yarn && yarn pod"
"bootstrap": "yarn example && yarn && yarn pod",
"prepare": "bob build"
},
"keywords": [
"react-native",
Expand Down Expand Up @@ -109,5 +109,19 @@
"trailingComma": "es5",
"useTabs": false,
"semi": false
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
"targets": [
"commonjs",
"module",
[
"typescript",
{
"project": "tsconfig.build.json"
}
]
]
}
}
3 changes: 1 addition & 2 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

{
"extends": "./tsconfig",
"exclude": ["example"]
"exclude": ["example", "docs"]
}

0 comments on commit 48204f1

Please sign in to comment.