Skip to content

Commit

Permalink
Undo exports change. (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
fnando authored Feb 15, 2024
1 parent d32df06 commit 0f3978c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
18 changes: 3 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"author": "Nando Vieira <me@fnando.com>",
"browser": "./dist/browser/index.js",
"dependencies": {
"bignumber.js": "*",
"lodash": "*",
Expand Down Expand Up @@ -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/**/*",
Expand All @@ -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",
Expand All @@ -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"
}

0 comments on commit 0f3978c

Please sign in to comment.