Skip to content

fix: use builder bob to make outputs & fix package entry #194

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
merged 1 commit into from
Dec 15, 2024
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
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"]
}