Skip to content

Commit

Permalink
feat(@formatjs/intl,@formatjs/fast-memoize,@formatjs/icu-messageforma…
Browse files Browse the repository at this point in the history
…t-parser,@formatjs/intl-displaynames,@formatjs/intl-listformat,intl-messageformat,@formatjs/ecma402-abstract,@formatjs/intl-numberformat,@formatjs/icu-skeleton-parser): Revert esm conditional exports (#4129)

The ESM export chanegs are not properly tested and therefore broke in various scenarios.

Fixes #4128, #4127, #4126

This reverts commit e0d593c.
  • Loading branch information
pyrocat101 committed Jun 12, 2023
1 parent 2b00170 commit 78edf46
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 193 deletions.
8 changes: 0 additions & 8 deletions packages/ecma402-abstract/package.json
Expand Up @@ -29,14 +29,6 @@
"main": "index.js",
"module": "lib/index.js",
"types": "index.d.ts",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./lib/index.js",
"default": "./index.js"
},
"./package.json": "./package.json"
},
"homepage": "https://github.com/formatjs/formatjs",
"license": "MIT",
"gitHead": "a7842673d8ad205171ad7c8cb8bb2f318b427c0c"
Expand Down
9 changes: 0 additions & 9 deletions packages/fast-memoize/package.json
Expand Up @@ -4,15 +4,6 @@
"description": "fork of fast-memoize and support esm",
"main": "index.js",
"module": "lib/index.js",
"types": "index.d.ts",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./lib/index.js",
"default": "./index.js"
},
"./package.json": "./package.json"
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/formatjs/formatjs.git"
Expand Down
23 changes: 0 additions & 23 deletions packages/icu-messageformat-parser/package.json
Expand Up @@ -4,29 +4,6 @@
"main": "index.js",
"module": "lib/index.js",
"types": "index.d.ts",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./lib/index.js",
"default": "./index.js"
},
"./no-parser": {
"types": "./no-parser.d.ts",
"import": "./lib/no-parser.js",
"default": "./no-parser.js"
},
"./printer": {
"types": "./printer.d.ts",
"import": "./lib/printer.js",
"default": "./printer.js"
},
"./manipulator": {
"types": "./manipulator.d.ts",
"import": "./lib/manipulator.js",
"default": "./manipulator.js"
},
"./package.json": "./package.json"
},
"license": "MIT",
"repository": {
"type": "git",
Expand Down
8 changes: 0 additions & 8 deletions packages/icu-skeleton-parser/package.json
Expand Up @@ -4,14 +4,6 @@
"main": "index.js",
"module": "lib/index.js",
"types": "index.d.ts",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./lib/index.js",
"default": "./index.js"
},
"./package.json": "./package.json"
},
"license": "MIT",
"repository": {
"type": "git",
Expand Down
36 changes: 0 additions & 36 deletions packages/intl-datetimeformat/package.json
Expand Up @@ -4,42 +4,6 @@
"description": "Intl.DateTimeFormat polyfill",
"main": "index.js",
"types": "index.d.ts",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./lib/index.js",
"default": "./index.js"
},
"./polyfill": {
"types": "./polyfill.d.ts",
"import": "./lib/polyfill.js",
"default": "./polyfill.js"
},
"./polyfill-force": {
"types": "./polyfill-force.d.ts",
"import": "./lib/polyfill-force.js",
"default": "./polyfill-force.js"
},
"./should-polyfill": {
"types": "./should-polyfill.d.ts",
"import": "./lib/should-polyfill.js",
"default": "./should-polyfill.js"
},
"./locale-data/*": {
"types": "./locale-data/*.d.ts",
"default": "./locale-data/*.js"
},
"./add-all-tz": {
"types": "./add-all-tz.d.ts",
"default": "./add-all-tz.js"
},
"./add-golden-tz": {
"types": "./add-golden-tz.d.ts",
"default": "./add-golden-tz.js"
},
"./polyfill.iife.js": "./polyfill.iife.js",
"./package.json": "./package.json"
},
"repository": {
"type": "git",
"url": "git+https://github.com/formatjs/formatjs.git"
Expand Down
28 changes: 0 additions & 28 deletions packages/intl-displaynames/package.json
Expand Up @@ -16,34 +16,6 @@
"license": "MIT",
"main": "index.js",
"types": "index.d.js",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./lib/index.js",
"default": "./index.js"
},
"./polyfill": {
"types": "./polyfill.d.ts",
"import": "./lib/polyfill.js",
"default": "./polyfill.js"
},
"./polyfill-force": {
"types": "./polyfill-force.d.ts",
"import": "./lib/polyfill-force.js",
"default": "./polyfill-force.js"
},
"./should-polyfill": {
"types": "./should-polyfill.d.ts",
"import": "./lib/should-polyfill.js",
"default": "./should-polyfill.js"
},
"./locale-data/*": {
"types": "./locale-data/*.d.ts",
"default": "./locale-data/*.js"
},
"./polyfill.iife.js": "./polyfill.iife.js",
"./package.json": "./package.json"
},
"repository": {
"type": "git",
"url": "git+https://github.com/formatjs/formatjs.git"
Expand Down
28 changes: 0 additions & 28 deletions packages/intl-listformat/package.json
Expand Up @@ -29,34 +29,6 @@
},
"main": "index.js",
"types": "index.d.ts",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./lib/index.js",
"default": "./index.js"
},
"./polyfill": {
"types": "./polyfill.d.ts",
"import": "./lib/polyfill.js",
"default": "./polyfill.js"
},
"./polyfill-force": {
"types": "./polyfill-force.d.ts",
"import": "./lib/polyfill-force.js",
"default": "./polyfill-force.js"
},
"./should-polyfill": {
"types": "./should-polyfill.d.ts",
"import": "./lib/should-polyfill.js",
"default": "./should-polyfill.js"
},
"./locale-data/*": {
"types": "./locale-data/*.d.ts",
"default": "./locale-data/*.js"
},
"./polyfill.iife.js": "./polyfill.iife.js",
"./package.json": "./package.json"
},
"homepage": "https://github.com/formatjs/formatjs",
"license": "MIT",
"gitHead": "a7842673d8ad205171ad7c8cb8bb2f318b427c0c"
Expand Down
8 changes: 0 additions & 8 deletions packages/intl-localematcher/package.json
Expand Up @@ -17,14 +17,6 @@
"main": "index.js",
"module": "lib/index.js",
"types": "index.d.ts",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./lib/index.js",
"default": "./index.js"
},
"./package.json": "./package.json"
},
"repository": {
"type": "git",
"url": "git+https://github.com/formatjs/formatjs.git"
Expand Down
8 changes: 0 additions & 8 deletions packages/intl-messageformat/package.json
Expand Up @@ -30,14 +30,6 @@
"main": "index.js",
"module": "lib/index.js",
"types": "index.d.ts",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./lib/index.js",
"default": "./index.js"
},
"./package.json": "./package.json"
},
"dependencies": {
"@formatjs/ecma402-abstract": "workspace:*",
"@formatjs/fast-memoize": "workspace:*",
Expand Down
28 changes: 0 additions & 28 deletions packages/intl-numberformat/package.json
Expand Up @@ -17,34 +17,6 @@
"license": "MIT",
"main": "index.js",
"types": "index.d.ts",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./lib/index.js",
"default": "./index.js"
},
"./polyfill": {
"types": "./polyfill.d.ts",
"import": "./lib/polyfill.js",
"default": "./polyfill.js"
},
"./polyfill-force": {
"types": "./polyfill-force.d.ts",
"import": "./lib/polyfill-force.js",
"default": "./polyfill-force.js"
},
"./should-polyfill": {
"types": "./should-polyfill.d.ts",
"import": "./lib/should-polyfill.js",
"default": "./should-polyfill.js"
},
"./locale-data/*": {
"types": "./locale-data/*.d.ts",
"default": "./locale-data/*.js"
},
"./polyfill.iife.js": "./polyfill.iife.js",
"./package.json": "./package.json"
},
"repository": {
"type": "git",
"url": "git+https://github.com/formatjs/formatjs.git"
Expand Down
9 changes: 0 additions & 9 deletions packages/intl/package.json
Expand Up @@ -27,15 +27,6 @@
},
"main": "index.js",
"module": "lib/index.js",
"types": "index.d.ts",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./lib/index.js",
"default": "./index.js"
},
"./package.json": "./package.json"
},
"sideEffects": false,
"dependencies": {
"@formatjs/ecma402-abstract": "workspace:*",
Expand Down

0 comments on commit 78edf46

Please sign in to comment.