Skip to content

Commit 78c6f96

Browse files
committed
Update registry package.json exports ordering
Reorder exports: main, SCREAMING_SNAKE_CASE, kebab-case, lib, JSON.
1 parent 9f98903 commit 78c6f96

1 file changed

Lines changed: 33 additions & 125 deletions

File tree

registry/package.json

Lines changed: 33 additions & 125 deletions
Original file line numberDiff line numberDiff line change
@@ -86,31 +86,10 @@
8686
"types": "./dist/index.d.ts",
8787
"default": "./dist/index.js"
8888
},
89-
"./extensions.json": "./extensions.json",
9089
"./index": {
9190
"types": "./dist/index.d.ts",
9291
"default": "./dist/index.js"
9392
},
94-
"./lib/abort": {
95-
"types": "./dist/lib/abort.d.ts",
96-
"default": "./dist/lib/abort.js"
97-
},
98-
"./lib/agent": {
99-
"types": "./dist/lib/agent.d.ts",
100-
"default": "./dist/lib/agent.js"
101-
},
102-
"./lib/arrays": {
103-
"types": "./dist/lib/arrays.d.ts",
104-
"default": "./dist/lib/arrays.js"
105-
},
106-
"./lib/bin": {
107-
"types": "./dist/lib/bin.d.ts",
108-
"default": "./dist/lib/bin.js"
109-
},
110-
"./lib/constants": {
111-
"types": "./dist/lib/constants/index.d.ts",
112-
"default": "./dist/lib/constants/index.js"
113-
},
11493
"./lib/constants/ABORT_CONTROLLER": {
11594
"types": "./dist/lib/constants/abort-controller.d.ts",
11695
"default": "./dist/lib/constants/abort-controller.js"
@@ -195,14 +174,6 @@
195174
"types": "./dist/lib/constants/exec-path.d.ts",
196175
"default": "./dist/lib/constants/exec-path.js"
197176
},
198-
"./lib/constants/EXTENSIONS": {
199-
"types": "./dist/lib/constants/EXTENSIONS.d.ts",
200-
"default": "./dist/lib/constants/EXTENSIONS.js"
201-
},
202-
"./lib/constants/EXTENSIONS_JSON": {
203-
"types": "./dist/lib/constants/EXTENSIONS_JSON.d.ts",
204-
"default": "./dist/lib/constants/EXTENSIONS_JSON.js"
205-
},
206177
"./lib/constants/EXT_CJS": {
207178
"types": "./dist/lib/constants/EXT_CJS.d.ts",
208179
"default": "./dist/lib/constants/EXT_CJS.js"
@@ -259,6 +230,14 @@
259230
"types": "./dist/lib/constants/EXT_YML.d.ts",
260231
"default": "./dist/lib/constants/EXT_YML.js"
261232
},
233+
"./lib/constants/EXTENSIONS": {
234+
"types": "./dist/lib/constants/EXTENSIONS.d.ts",
235+
"default": "./dist/lib/constants/EXTENSIONS.js"
236+
},
237+
"./lib/constants/EXTENSIONS_JSON": {
238+
"types": "./dist/lib/constants/EXTENSIONS_JSON.d.ts",
239+
"default": "./dist/lib/constants/EXTENSIONS_JSON.js"
240+
},
262241
"./lib/constants/GET_IPC": {
263242
"types": "./dist/lib/constants/get-ipc.d.ts",
264243
"default": "./dist/lib/constants/get-ipc.js"
@@ -547,10 +526,6 @@
547526
"types": "./dist/lib/constants/SUPPORTS_PROCESS_SEND.d.ts",
548527
"default": "./dist/lib/constants/SUPPORTS_PROCESS_SEND.js"
549528
},
550-
"./lib/constants/TSCONFIG_JSON": {
551-
"types": "./dist/lib/constants/TSCONFIG_JSON.d.ts",
552-
"default": "./dist/lib/constants/TSCONFIG_JSON.js"
553-
},
554529
"./lib/constants/TS_LIBS_AVAILABLE": {
555530
"types": "./dist/lib/constants/ts-libs-available.d.ts",
556531
"default": "./dist/lib/constants/ts-libs-available.js"
@@ -559,6 +534,10 @@
559534
"types": "./dist/lib/constants/ts-types-available.d.ts",
560535
"default": "./dist/lib/constants/ts-types-available.js"
561536
},
537+
"./lib/constants/TSCONFIG_JSON": {
538+
"types": "./dist/lib/constants/TSCONFIG_JSON.d.ts",
539+
"default": "./dist/lib/constants/TSCONFIG_JSON.js"
540+
},
562541
"./lib/constants/UNDEFINED_TOKEN": {
563542
"types": "./dist/lib/constants/UNDEFINED_TOKEN.d.ts",
564543
"default": "./dist/lib/constants/UNDEFINED_TOKEN.js"
@@ -639,10 +618,6 @@
639618
"types": "./dist/lib/constants/AT_LATEST.d.ts",
640619
"default": "./dist/lib/constants/AT_LATEST.js"
641620
},
642-
"./lib/constants/bun": {
643-
"types": "./dist/lib/constants/BUN.d.ts",
644-
"default": "./dist/lib/constants/BUN.js"
645-
},
646621
"./lib/constants/bun-cache-path": {
647622
"types": "./dist/lib/constants/bun-cache-path.d.ts",
648623
"default": "./dist/lib/constants/bun-cache-path.js"
@@ -659,10 +634,6 @@
659634
"types": "./dist/lib/constants/CHANGELOG_MD.d.ts",
660635
"default": "./dist/lib/constants/CHANGELOG_MD.js"
661636
},
662-
"./lib/constants/ci": {
663-
"types": "./dist/lib/constants/CI.d.ts",
664-
"default": "./dist/lib/constants/CI.js"
665-
},
666637
"./lib/constants/column-limit": {
667638
"types": "./dist/lib/constants/COLUMN_LIMIT.d.ts",
668639
"default": "./dist/lib/constants/COLUMN_LIMIT.js"
@@ -671,10 +642,6 @@
671642
"types": "./dist/lib/constants/copy-left-licenses.d.ts",
672643
"default": "./dist/lib/constants/copy-left-licenses.js"
673644
},
674-
"./lib/constants/darwin": {
675-
"types": "./dist/lib/constants/DARWIN.d.ts",
676-
"default": "./dist/lib/constants/DARWIN.js"
677-
},
678645
"./lib/constants/dot-git-dir": {
679646
"types": "./dist/lib/constants/DOT_GIT_DIR.d.ts",
680647
"default": "./dist/lib/constants/DOT_GIT_DIR.js"
@@ -695,18 +662,10 @@
695662
"types": "./dist/lib/constants/EMPTY_VALUE.d.ts",
696663
"default": "./dist/lib/constants/EMPTY_VALUE.js"
697664
},
698-
"./lib/constants/env": {
699-
"types": "./dist/lib/constants/ENV.d.ts",
700-
"default": "./dist/lib/constants/ENV.js"
701-
},
702665
"./lib/constants/eslint-config-js": {
703666
"types": "./dist/lib/constants/ESLINT_CONFIG_JS.d.ts",
704667
"default": "./dist/lib/constants/ESLINT_CONFIG_JS.js"
705668
},
706-
"./lib/constants/esnext": {
707-
"types": "./dist/lib/constants/ESNEXT.d.ts",
708-
"default": "./dist/lib/constants/ESNEXT.js"
709-
},
710669
"./lib/constants/exec-path": {
711670
"types": "./dist/lib/constants/exec-path.d.ts",
712671
"default": "./dist/lib/constants/exec-path.js"
@@ -767,10 +726,6 @@
767726
"types": "./dist/lib/constants/EXT_YML.d.ts",
768727
"default": "./dist/lib/constants/EXT_YML.js"
769728
},
770-
"./lib/constants/extensions": {
771-
"types": "./dist/lib/constants/EXTENSIONS.d.ts",
772-
"default": "./dist/lib/constants/EXTENSIONS.js"
773-
},
774729
"./lib/constants/extensions-json": {
775730
"types": "./dist/lib/constants/EXTENSIONS_JSON.d.ts",
776731
"default": "./dist/lib/constants/EXTENSIONS_JSON.js"
@@ -779,10 +734,6 @@
779734
"types": "./dist/lib/constants/get-ipc.d.ts",
780735
"default": "./dist/lib/constants/get-ipc.js"
781736
},
782-
"./lib/constants/gitignore": {
783-
"types": "./dist/lib/constants/GITIGNORE.d.ts",
784-
"default": "./dist/lib/constants/GITIGNORE.js"
785-
},
786737
"./lib/constants/index": {
787738
"types": "./dist/lib/constants/index.d.ts",
788739
"default": "./dist/lib/constants/index.js"
@@ -807,14 +758,6 @@
807758
"types": "./dist/lib/constants/k-internals-symbol.d.ts",
808759
"default": "./dist/lib/constants/k-internals-symbol.js"
809760
},
810-
"./lib/constants/latest": {
811-
"types": "./dist/lib/constants/LATEST.d.ts",
812-
"default": "./dist/lib/constants/LATEST.js"
813-
},
814-
"./lib/constants/license": {
815-
"types": "./dist/lib/constants/LICENSE.d.ts",
816-
"default": "./dist/lib/constants/LICENSE.js"
817-
},
818761
"./lib/constants/license-glob": {
819762
"types": "./dist/lib/constants/LICENSE_GLOB.d.ts",
820763
"default": "./dist/lib/constants/LICENSE_GLOB.js"
@@ -855,10 +798,6 @@
855798
"types": "./dist/lib/constants/MANIFEST_JSON.d.ts",
856799
"default": "./dist/lib/constants/MANIFEST_JSON.js"
857800
},
858-
"./lib/constants/mit": {
859-
"types": "./dist/lib/constants/MIT.d.ts",
860-
"default": "./dist/lib/constants/MIT.js"
861-
},
862801
"./lib/constants/node-auth-token": {
863802
"types": "./dist/lib/constants/NODE_AUTH_TOKEN.d.ts",
864803
"default": "./dist/lib/constants/NODE_AUTH_TOKEN.js"
@@ -895,10 +834,6 @@
895834
"types": "./dist/lib/constants/node-version.d.ts",
896835
"default": "./dist/lib/constants/node-version.js"
897836
},
898-
"./lib/constants/npm": {
899-
"types": "./dist/lib/constants/NPM.d.ts",
900-
"default": "./dist/lib/constants/NPM.js"
901-
},
902837
"./lib/constants/npm-exec-path": {
903838
"types": "./dist/lib/constants/npm-exec-path.d.ts",
904839
"default": "./dist/lib/constants/npm-exec-path.js"
@@ -919,14 +854,6 @@
919854
"types": "./dist/lib/constants/NPM_SHRINKWRAP_JSON.d.ts",
920855
"default": "./dist/lib/constants/NPM_SHRINKWRAP_JSON.js"
921856
},
922-
"./lib/constants/npx": {
923-
"types": "./dist/lib/constants/NPX.d.ts",
924-
"default": "./dist/lib/constants/NPX.js"
925-
},
926-
"./lib/constants/overrides": {
927-
"types": "./dist/lib/constants/OVERRIDES.d.ts",
928-
"default": "./dist/lib/constants/OVERRIDES.js"
929-
},
930857
"./lib/constants/package-default-node-range": {
931858
"types": "./dist/lib/constants/package-default-node-range.d.ts",
932859
"default": "./dist/lib/constants/package-default-node-range.js"
@@ -963,10 +890,6 @@
963890
"types": "./dist/lib/constants/pacote-cache-path.d.ts",
964891
"default": "./dist/lib/constants/pacote-cache-path.js"
965892
},
966-
"./lib/constants/pnpm": {
967-
"types": "./dist/lib/constants/PNPM.d.ts",
968-
"default": "./dist/lib/constants/PNPM.js"
969-
},
970893
"./lib/constants/pnpm-exec-path": {
971894
"types": "./dist/lib/constants/pnpm-exec-path.d.ts",
972895
"default": "./dist/lib/constants/pnpm-exec-path.js"
@@ -995,18 +918,10 @@
995918
"types": "./dist/lib/constants/README_MD.d.ts",
996919
"default": "./dist/lib/constants/README_MD.js"
997920
},
998-
"./lib/constants/registry": {
999-
"types": "./dist/lib/constants/REGISTRY.d.ts",
1000-
"default": "./dist/lib/constants/REGISTRY.js"
1001-
},
1002921
"./lib/constants/registry-scope-delimiter": {
1003922
"types": "./dist/lib/constants/REGISTRY_SCOPE_DELIMITER.d.ts",
1004923
"default": "./dist/lib/constants/REGISTRY_SCOPE_DELIMITER.js"
1005924
},
1006-
"./lib/constants/resolutions": {
1007-
"types": "./dist/lib/constants/RESOLUTIONS.d.ts",
1008-
"default": "./dist/lib/constants/RESOLUTIONS.js"
1009-
},
1010925
"./lib/constants/socket-github-org": {
1011926
"types": "./dist/lib/constants/SOCKET_GITHUB_ORG.d.ts",
1012927
"default": "./dist/lib/constants/SOCKET_GITHUB_ORG.js"
@@ -1099,26 +1014,6 @@
10991014
"types": "./dist/lib/constants/UNKNOWN_VALUE.d.ts",
11001015
"default": "./dist/lib/constants/UNKNOWN_VALUE.js"
11011016
},
1102-
"./lib/constants/unlicenced": {
1103-
"types": "./dist/lib/constants/UNLICENCED.d.ts",
1104-
"default": "./dist/lib/constants/UNLICENCED.js"
1105-
},
1106-
"./lib/constants/unlicensed": {
1107-
"types": "./dist/lib/constants/UNLICENSED.d.ts",
1108-
"default": "./dist/lib/constants/UNLICENSED.js"
1109-
},
1110-
"./lib/constants/utf8": {
1111-
"types": "./dist/lib/constants/UTF8.d.ts",
1112-
"default": "./dist/lib/constants/UTF8.js"
1113-
},
1114-
"./lib/constants/vitest": {
1115-
"types": "./dist/lib/constants/VITEST.d.ts",
1116-
"default": "./dist/lib/constants/VITEST.js"
1117-
},
1118-
"./lib/constants/vlt": {
1119-
"types": "./dist/lib/constants/VLT.d.ts",
1120-
"default": "./dist/lib/constants/VLT.js"
1121-
},
11221017
"./lib/constants/vlt-cache-path": {
11231018
"types": "./dist/lib/constants/vlt-cache-path.d.ts",
11241019
"default": "./dist/lib/constants/vlt-cache-path.js"
@@ -1127,14 +1022,6 @@
11271022
"types": "./dist/lib/constants/VLT_LOCK_JSON.d.ts",
11281023
"default": "./dist/lib/constants/VLT_LOCK_JSON.js"
11291024
},
1130-
"./lib/constants/win32": {
1131-
"types": "./dist/lib/constants/WIN32.d.ts",
1132-
"default": "./dist/lib/constants/WIN32.js"
1133-
},
1134-
"./lib/constants/yarn": {
1135-
"types": "./dist/lib/constants/YARN.d.ts",
1136-
"default": "./dist/lib/constants/YARN.js"
1137-
},
11381025
"./lib/constants/yarn-berry": {
11391026
"types": "./dist/lib/constants/YARN_BERRY.d.ts",
11401027
"default": "./dist/lib/constants/YARN_BERRY.js"
@@ -1155,6 +1042,26 @@
11551042
"types": "./dist/lib/constants/YARN_LOCK.d.ts",
11561043
"default": "./dist/lib/constants/YARN_LOCK.js"
11571044
},
1045+
"./lib/abort": {
1046+
"types": "./dist/lib/abort.d.ts",
1047+
"default": "./dist/lib/abort.js"
1048+
},
1049+
"./lib/agent": {
1050+
"types": "./dist/lib/agent.d.ts",
1051+
"default": "./dist/lib/agent.js"
1052+
},
1053+
"./lib/arrays": {
1054+
"types": "./dist/lib/arrays.d.ts",
1055+
"default": "./dist/lib/arrays.js"
1056+
},
1057+
"./lib/bin": {
1058+
"types": "./dist/lib/bin.d.ts",
1059+
"default": "./dist/lib/bin.js"
1060+
},
1061+
"./lib/constants": {
1062+
"types": "./dist/lib/constants/index.d.ts",
1063+
"default": "./dist/lib/constants/index.js"
1064+
},
11581065
"./lib/debug": {
11591066
"types": "./dist/lib/debug.d.ts",
11601067
"default": "./dist/lib/debug.js"
@@ -1243,6 +1150,7 @@
12431150
"types": "./dist/lib/words.d.ts",
12441151
"default": "./dist/lib/words.js"
12451152
},
1153+
"./extensions.json": "./extensions.json",
12461154
"./manifest.json": "./manifest.json",
12471155
"./package.json": "./package.json",
12481156
"./tsconfig.json": "./tsconfig.json"

0 commit comments

Comments
 (0)