From 364a5d72183ed77a4753c97c23a44842ad4ea6a5 Mon Sep 17 00:00:00 2001 From: Carlos Diaz-Padron Date: Thu, 14 Apr 2022 15:01:17 -0400 Subject: [PATCH] fix: include jsx/tsx in build, fix out dir in package.json --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 6a92521a8..6112a593f 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,8 @@ "name": "@testing-library/react-native", "version": "9.1.0", "description": "Simple and complete React Native testing utilities that encourage good testing practices.", - "main": "dist/index.js", - "types": "dist/index.d.ts", + "main": "build/index.js", + "types": "build/index.d.ts", "repository": { "type": "git", "url": "https://www.github.com/callstack/react-native-testing-library.git" @@ -74,7 +74,7 @@ "lint": "eslint src --cache", "release": "release-it", "prepublish": "yarn build", - "build:js": "babel src --out-dir build --extensions \".js,.ts\" --source-maps --ignore \"**/__tests__/**\"", + "build:js": "babel src --out-dir build --extensions \".js,.ts,.jsx,.tsx\" --source-maps --ignore \"**/__tests__/**\"", "build:js:watch": "yarn build:js --watch", "build:ts": "tsc --build tsconfig.release.json", "build:ts:watch": "yarn build:ts --watch --preserveWatchOutput",