From 7a3d611250c1e449cc87196894e77c2d8c5e158b Mon Sep 17 00:00:00 2001 From: Mikkel ALMONTE--RINGAUD Date: Wed, 7 Aug 2024 11:34:05 +0200 Subject: [PATCH] fix(pkg): use legacy entrypoints throws an error in react native --- package.json | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index dfe4f2c..34140f3 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,20 @@ "name": "@literate.ink/utilities", "version": "1.0.0", "description": "A general package containing utilities for helping building our libraries.", - "private": false, + "repository": "https://github.com/LiterateInk/Utilities", + "main": "./dist/index.js", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", + "exports": { + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } + }, "scripts": { "build": "tsup", "lint": "tsc" @@ -11,24 +24,11 @@ "dist" ], "author": "LiterateInk (https://github.com/LiterateInk)", - "repository": "https://github.com/LiterateInk/Utilities", "homepage": "https://docs.literate.ink/utilities", "bugs": { "url": "https://github.com/LiterateInk/Utilities/issues" }, "license": "MIT", - "exports": { - ".": { - "import": { - "types": "./dist/index.d.mts", - "default": "./dist/index.mjs" - }, - "require": { - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - } - } - }, "devDependencies": { "@types/node": "^20.14.14", "@types/set-cookie-parser": "^2.4.10",