diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d83361..79998e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,10 @@ Prefix your message with one of the following: All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## Unreleased + +- [Changed] Revert exports change back, as it has caused way too much friction. + ## v4.4.2 - Feb 12, 2024 - [Fixed] Add imports for react-native. diff --git a/package.json b/package.json index fd6ac7e..a92b556 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,5 @@ { "author": "Nando Vieira ", - "browser": "./dist/browser/index.js", "dependencies": { "bignumber.js": "*", "lodash": "*", @@ -28,16 +27,6 @@ "webpack": "*", "webpack-cli": "*" }, - "exports": { - ".": { - "browser": "./dist/browser/index.js", - "import": "./dist/import/index.js", - "react-native": "./dist/require/index.js", - "require": "./dist/require/index.js", - "types": "./typings/index.d.ts" - }, - "./json/*.json": "./json/*.json" - }, "files": [ "dist/**/*", "json/**/*", @@ -48,16 +37,15 @@ "main": "./dist/require/index.js", "module": "./dist/import/index.js", "name": "i18n-js", - "react-native": "./dist/require/index.js", "repository": "https://github.com/fnando/i18n", "scripts": { "build": "yarn clean && yarn build:js && yarn docs", - "build:bignumber": "cp node_modules/bignumber.js/bignumber.mjs dist/import/bignumber.js", "build:browser": "webpack --output-path ./dist/browser/ --output-filename index.js --mode production --entry ./dist/import/index.js --output-library-type var --output-library-name I18n --devtool source-map", "build:import": "tsc --outDir ./dist/import --module ESNext && yarn build:lodash && yarn build:make-plural && yarn build:bignumber", - "build:js": "yarn build:import && yarn build:require && yarn build:browser", "build:lodash": "esbuild --bundle src/lodash.ts --outfile=dist/import/lodash.js", "build:make-plural": "cp node_modules/make-plural/plurals.mjs dist/import/make-plural.js", + "build:bignumber": "cp node_modules/bignumber.js/bignumber.mjs dist/import/bignumber.js", + "build:js": "yarn build:import && yarn build:require && yarn build:browser", "build:require": "tsc --outDir ./dist/require --module commonjs", "clean": "rm -rf ./dist", "docs": "./bin/docs", @@ -67,6 +55,6 @@ "test": "jest --watch --coverage", "test:ci": "jest --ci --coverage --verbose" }, - "types": "./typings/index.d.ts", + "typings": "./typings", "version": "4.4.2" }