From ffffcb10b5c1fbcc402a5fe1f05df072bae59271 Mon Sep 17 00:00:00 2001 From: Fabian Urrutia Date: Thu, 7 Mar 2024 16:13:05 -0300 Subject: [PATCH] fix: Images are added in the build --- index.ts | 7 +++++-- package.json | 5 +++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/index.ts b/index.ts index eefaaab..ba93b2d 100644 --- a/index.ts +++ b/index.ts @@ -13,12 +13,15 @@ import { export { showLocation, getApps, - Popup, + Popup +}; + +export type { GetAppsResponse, MapId, SharedOptions, MapLinkOptions, PopupStyleProp, PopupProps, - DirectionMode, + DirectionMode }; diff --git a/package.json b/package.json index 6f8364a..54e5d51 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-map-link", - "version": "3.0.0", + "version": "3.0.1", "description": "Open the map app of the user's choice with a specific location.", "source": "src/index", "main": "lib/index.js", @@ -9,10 +9,11 @@ "url": "git+https://github.com/includable/react-native-map-link.git" }, "scripts": { - "build": "tsc --project tsconfig.build.json", + "build": "npm run copy-images && tsc --project tsconfig.build.json", "lint": "eslint src --max-warnings=0 && eslint tests --max-warnings=0", "release": "semantic-release", "test": "jest", + "copy-images": "mkdir -p ./lib/images && cp -r ./src/images ./lib", "tscheck": "tsc --noEmit" }, "keywords": [