Debian Codegraph @

tap-snapshots/test/build.ts.test.cjs

raw
1 /* IMPORTANT
2 * This snapshot file is auto-generated, but designed for humans.
3 * It should be checked into source control and tracked carefully.
4 * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5 * Make sure to inspect the output below. Do not ignore changes!
6 */
7 'use strict'
8 exports[`test/build.ts > TAP > build both > must match snapshot 1`] = `
9 Array [
10 Array [
11 "self-link.link",
12 Array [
13 Object {
14 "tshy": Object {
15 "dialects": Array [
16 "esm",
17 "commonjs",
18 ],
19 "exports": Object {
20 ".": "./src/index.ts",
21 "./package.json": "./package.json",
22 },
23 },
24 },
25 "src",
26 ],
27 ],
28 Array [
29 "imports.link",
30 Array [
31 Object {
32 "tshy": Object {
33 "dialects": Array [
34 "esm",
35 "commonjs",
36 ],
37 "exports": Object {
38 ".": "./src/index.ts",
39 "./package.json": "./package.json",
40 },
41 },
42 },
43 "src",
44 ],
45 ],
46 Array [
47 "imports.unlink",
48 Array [
49 Object {
50 "tshy": Object {
51 "dialects": Array [
52 "esm",
53 "commonjs",
54 ],
55 "exports": Object {
56 ".": "./src/index.ts",
57 "./package.json": "./package.json",
58 },
59 },
60 },
61 "src",
62 ],
63 ],
64 Array [
65 "self-link.unlink",
66 Array [
67 Object {
68 "tshy": Object {
69 "dialects": Array [
70 "esm",
71 "commonjs",
72 ],
73 "exports": Object {
74 ".": "./src/index.ts",
75 "./package.json": "./package.json",
76 },
77 },
78 },
79 "src",
80 ],
81 ],
82 Array [
83 "self-link.link",
84 Array [
85 Object {
86 "tshy": Object {
87 "dialects": Array [
88 "esm",
89 "commonjs",
90 ],
91 "exports": Object {
92 ".": "./src/index.ts",
93 "./package.json": "./package.json",
94 },
95 },
96 },
97 "dist",
98 ],
99 ],
100 Array [
101 "self-link.link",
102 Array [
103 Object {
104 "tshy": Object {
105 "dialects": Array [
106 "esm",
107 "commonjs",
108 ],
109 "exports": Object {
110 ".": "./src/index.ts",
111 "./package.json": "./package.json",
112 },
113 },
114 },
115 "src",
116 ],
117 ],
118 Array [
119 "imports.link",
120 Array [
121 Object {
122 "tshy": Object {
123 "dialects": Array [
124 "esm",
125 "commonjs",
126 ],
127 "exports": Object {
128 ".": "./src/index.ts",
129 "./package.json": "./package.json",
130 },
131 },
132 },
133 "src",
134 ],
135 ],
136 Array [
137 "imports.unlink",
138 Array [
139 Object {
140 "tshy": Object {
141 "dialects": Array [
142 "esm",
143 "commonjs",
144 ],
145 "exports": Object {
146 ".": "./src/index.ts",
147 "./package.json": "./package.json",
148 },
149 },
150 },
151 "src",
152 ],
153 ],
154 Array [
155 "self-link.unlink",
156 Array [
157 Object {
158 "tshy": Object {
159 "dialects": Array [
160 "esm",
161 "commonjs",
162 ],
163 "exports": Object {
164 ".": "./src/index.ts",
165 "./package.json": "./package.json",
166 },
167 },
168 },
169 "src",
170 ],
171 ],
172 Array [
173 "self-link.link",
174 Array [
175 Object {
176 "tshy": Object {
177 "dialects": Array [
178 "esm",
179 "commonjs",
180 ],
181 "exports": Object {
182 ".": "./src/index.ts",
183 "./package.json": "./package.json",
184 },
185 },
186 },
187 "dist",
188 ],
189 ],
190 Array [
191 "self-link.link",
192 Array [
193 Object {
194 "tshy": Object {
195 "dialects": Array [
196 "esm",
197 "commonjs",
198 ],
199 "exports": Object {
200 ".": "./src/index.ts",
201 "./package.json": "./package.json",
202 },
203 },
204 },
205 "src",
206 ],
207 ],
208 Array [
209 "imports.link",
210 Array [
211 Object {
212 "tshy": Object {
213 "dialects": Array [
214 "esm",
215 "commonjs",
216 ],
217 "exports": Object {
218 ".": "./src/index.ts",
219 "./package.json": "./package.json",
220 },
221 },
222 },
223 "src",
224 ],
225 ],
226 Array [
227 "imports.unlink",
228 Array [
229 Object {
230 "tshy": Object {
231 "dialects": Array [
232 "esm",
233 "commonjs",
234 ],
235 "exports": Object {
236 ".": "./src/index.ts",
237 "./package.json": "./package.json",
238 },
239 },
240 },
241 "src",
242 ],
243 ],
244 Array [
245 "self-link.unlink",
246 Array [
247 Object {
248 "tshy": Object {
249 "dialects": Array [
250 "esm",
251 "commonjs",
252 ],
253 "exports": Object {
254 ".": "./src/index.ts",
255 "./package.json": "./package.json",
256 },
257 },
258 },
259 "src",
260 ],
261 ],
262 Array [
263 "self-link.link",
264 Array [
265 Object {
266 "tshy": Object {
267 "dialects": Array [
268 "esm",
269 "commonjs",
270 ],
271 "exports": Object {
272 ".": "./src/index.ts",
273 "./package.json": "./package.json",
274 },
275 },
276 },
277 "dist",
278 ],
279 ],
280 Array [
281 "self-link.link",
282 Array [
283 Object {
284 "tshy": Object {
285 "dialects": Array [
286 "esm",
287 "commonjs",
288 ],
289 "exports": Object {
290 ".": "./src/index.ts",
291 "./package.json": "./package.json",
292 },
293 },
294 },
295 "src",
296 ],
297 ],
298 Array [
299 "imports.link",
300 Array [
301 Object {
302 "tshy": Object {
303 "dialects": Array [
304 "esm",
305 "commonjs",
306 ],
307 "exports": Object {
308 ".": "./src/index.ts",
309 "./package.json": "./package.json",
310 },
311 },
312 },
313 "src",
314 ],
315 ],
316 Array [
317 "imports.unlink",
318 Array [
319 Object {
320 "tshy": Object {
321 "dialects": Array [
322 "esm",
323 "commonjs",
324 ],
325 "exports": Object {
326 ".": "./src/index.ts",
327 "./package.json": "./package.json",
328 },
329 },
330 },
331 "src",
332 ],
333 ],
334 Array [
335 "self-link.unlink",
336 Array [
337 Object {
338 "tshy": Object {
339 "dialects": Array [
340 "esm",
341 "commonjs",
342 ],
343 "exports": Object {
344 ".": "./src/index.ts",
345 "./package.json": "./package.json",
346 },
347 },
348 },
349 "src",
350 ],
351 ],
352 Array [
353 "self-link.link",
354 Array [
355 Object {
356 "tshy": Object {
357 "dialects": Array [
358 "esm",
359 "commonjs",
360 ],
361 "exports": Object {
362 ".": "./src/index.ts",
363 "./package.json": "./package.json",
364 },
365 },
366 },
367 "dist",
368 ],
369 ],
370 Array [
371 "self-link.link",
372 Array [
373 Object {
374 "tshy": Object {
375 "dialects": Array [
376 "esm",
377 "commonjs",
378 ],
379 "exports": Object {
380 ".": "./src/index.ts",
381 "./package.json": "./package.json",
382 },
383 },
384 },
385 "src",
386 ],
387 ],
388 Array [
389 "imports.link",
390 Array [
391 Object {
392 "tshy": Object {
393 "dialects": Array [
394 "esm",
395 "commonjs",
396 ],
397 "exports": Object {
398 ".": "./src/index.ts",
399 "./package.json": "./package.json",
400 },
401 },
402 },
403 "src",
404 ],
405 ],
406 Array [
407 "imports.unlink",
408 Array [
409 Object {
410 "tshy": Object {
411 "dialects": Array [
412 "esm",
413 "commonjs",
414 ],
415 "exports": Object {
416 ".": "./src/index.ts",
417 "./package.json": "./package.json",
418 },
419 },
420 },
421 "src",
422 ],
423 ],
424 Array [
425 "self-link.unlink",
426 Array [
427 Object {
428 "tshy": Object {
429 "dialects": Array [
430 "esm",
431 "commonjs",
432 ],
433 "exports": Object {
434 ".": "./src/index.ts",
435 "./package.json": "./package.json",
436 },
437 },
438 },
439 "src",
440 ],
441 ],
442 Array [
443 "self-link.link",
444 Array [
445 Object {
446 "tshy": Object {
447 "dialects": Array [
448 "esm",
449 "commonjs",
450 ],
451 "exports": Object {
452 ".": "./src/index.ts",
453 "./package.json": "./package.json",
454 },
455 },
456 },
457 "dist",
458 ],
459 ],
460 Array [
461 "self-link.link",
462 Array [
463 Object {
464 "tshy": Object {
465 "dialects": Array [
466 "esm",
467 "commonjs",
468 ],
469 "exports": Object {
470 ".": "./src/index.ts",
471 "./package.json": "./package.json",
472 },
473 },
474 },
475 "src",
476 ],
477 ],
478 Array [
479 "imports.link",
480 Array [
481 Object {
482 "tshy": Object {
483 "dialects": Array [
484 "esm",
485 "commonjs",
486 ],
487 "exports": Object {
488 ".": "./src/index.ts",
489 "./package.json": "./package.json",
490 },
491 },
492 },
493 "src",
494 ],
495 ],
496 Array [
497 "imports.unlink",
498 Array [
499 Object {
500 "tshy": Object {
501 "dialects": Array [
502 "esm",
503 "commonjs",
504 ],
505 "exports": Object {
506 ".": "./src/index.ts",
507 "./package.json": "./package.json",
508 },
509 },
510 },
511 "src",
512 ],
513 ],
514 Array [
515 "self-link.unlink",
516 Array [
517 Object {
518 "tshy": Object {
519 "dialects": Array [
520 "esm",
521 "commonjs",
522 ],
523 "exports": Object {
524 ".": "./src/index.ts",
525 "./package.json": "./package.json",
526 },
527 },
528 },
529 "src",
530 ],
531 ],
532 Array [
533 "self-link.link",
534 Array [
535 Object {
536 "tshy": Object {
537 "dialects": Array [
538 "esm",
539 "commonjs",
540 ],
541 "exports": Object {
542 ".": "./src/index.ts",
543 "./package.json": "./package.json",
544 },
545 },
546 },
547 "dist",
548 ],
549 ],
550 Array [
551 "self-link.link",
552 Array [
553 Object {
554 "tshy": Object {
555 "dialects": Array [
556 "esm",
557 "commonjs",
558 ],
559 "exports": Object {
560 ".": "./src/index.ts",
561 "./package.json": "./package.json",
562 },
563 },
564 },
565 "src",
566 ],
567 ],
568 Array [
569 "imports.link",
570 Array [
571 Object {
572 "tshy": Object {
573 "dialects": Array [
574 "esm",
575 "commonjs",
576 ],
577 "exports": Object {
578 ".": "./src/index.ts",
579 "./package.json": "./package.json",
580 },
581 },
582 },
583 "src",
584 ],
585 ],
586 Array [
587 "imports.unlink",
588 Array [
589 Object {
590 "tshy": Object {
591 "dialects": Array [
592 "esm",
593 "commonjs",
594 ],
595 "exports": Object {
596 ".": "./src/index.ts",
597 "./package.json": "./package.json",
598 },
599 },
600 },
601 "src",
602 ],
603 ],
604 Array [
605 "self-link.unlink",
606 Array [
607 Object {
608 "tshy": Object {
609 "dialects": Array [
610 "esm",
611 "commonjs",
612 ],
613 "exports": Object {
614 ".": "./src/index.ts",
615 "./package.json": "./package.json",
616 },
617 },
618 },
619 "src",
620 ],
621 ],
622 Array [
623 "self-link.link",
624 Array [
625 Object {
626 "tshy": Object {
627 "dialects": Array [
628 "esm",
629 "commonjs",
630 ],
631 "exports": Object {
632 ".": "./src/index.ts",
633 "./package.json": "./package.json",
634 },
635 },
636 },
637 "dist",
638 ],
639 ],
640 ]
641 `
642
643 exports[`test/build.ts > TAP > build commonjs only > must match snapshot 1`] = `
644 Array [
645 Array [
646 "self-link.link",
647 Array [
648 Object {
649 "tshy": Object {
650 "dialects": Array [
651 "commonjs",
652 ],
653 "exports": Object {
654 ".": "./src/index.ts",
655 "./package.json": "./package.json",
656 },
657 },
658 },
659 "src",
660 ],
661 ],
662 Array [
663 "imports.link",
664 Array [
665 Object {
666 "tshy": Object {
667 "dialects": Array [
668 "commonjs",
669 ],
670 "exports": Object {
671 ".": "./src/index.ts",
672 "./package.json": "./package.json",
673 },
674 },
675 },
676 "src",
677 ],
678 ],
679 Array [
680 "imports.unlink",
681 Array [
682 Object {
683 "tshy": Object {
684 "dialects": Array [
685 "commonjs",
686 ],
687 "exports": Object {
688 ".": "./src/index.ts",
689 "./package.json": "./package.json",
690 },
691 },
692 },
693 "src",
694 ],
695 ],
696 Array [
697 "self-link.unlink",
698 Array [
699 Object {
700 "tshy": Object {
701 "dialects": Array [
702 "commonjs",
703 ],
704 "exports": Object {
705 ".": "./src/index.ts",
706 "./package.json": "./package.json",
707 },
708 },
709 },
710 "src",
711 ],
712 ],
713 Array [
714 "self-link.link",
715 Array [
716 Object {
717 "tshy": Object {
718 "dialects": Array [
719 "commonjs",
720 ],
721 "exports": Object {
722 ".": "./src/index.ts",
723 "./package.json": "./package.json",
724 },
725 },
726 },
727 "dist",
728 ],
729 ],
730 Array [
731 "self-link.link",
732 Array [
733 Object {
734 "tshy": Object {
735 "dialects": Array [
736 "commonjs",
737 ],
738 "exports": Object {
739 ".": "./src/index.ts",
740 "./package.json": "./package.json",
741 },
742 },
743 },
744 "src",
745 ],
746 ],
747 Array [
748 "imports.link",
749 Array [
750 Object {
751 "tshy": Object {
752 "dialects": Array [
753 "commonjs",
754 ],
755 "exports": Object {
756 ".": "./src/index.ts",
757 "./package.json": "./package.json",
758 },
759 },
760 },
761 "src",
762 ],
763 ],
764 Array [
765 "imports.unlink",
766 Array [
767 Object {
768 "tshy": Object {
769 "dialects": Array [
770 "commonjs",
771 ],
772 "exports": Object {
773 ".": "./src/index.ts",
774 "./package.json": "./package.json",
775 },
776 },
777 },
778 "src",
779 ],
780 ],
781 Array [
782 "self-link.unlink",
783 Array [
784 Object {
785 "tshy": Object {
786 "dialects": Array [
787 "commonjs",
788 ],
789 "exports": Object {
790 ".": "./src/index.ts",
791 "./package.json": "./package.json",
792 },
793 },
794 },
795 "src",
796 ],
797 ],
798 Array [
799 "self-link.link",
800 Array [
801 Object {
802 "tshy": Object {
803 "dialects": Array [
804 "commonjs",
805 ],
806 "exports": Object {
807 ".": "./src/index.ts",
808 "./package.json": "./package.json",
809 },
810 },
811 },
812 "dist",
813 ],
814 ],
815 Array [
816 "self-link.link",
817 Array [
818 Object {
819 "tshy": Object {
820 "dialects": Array [
821 "commonjs",
822 ],
823 "exports": Object {
824 ".": "./src/index.ts",
825 "./package.json": "./package.json",
826 },
827 },
828 },
829 "src",
830 ],
831 ],
832 Array [
833 "imports.link",
834 Array [
835 Object {
836 "tshy": Object {
837 "dialects": Array [
838 "commonjs",
839 ],
840 "exports": Object {
841 ".": "./src/index.ts",
842 "./package.json": "./package.json",
843 },
844 },
845 },
846 "src",
847 ],
848 ],
849 Array [
850 "imports.unlink",
851 Array [
852 Object {
853 "tshy": Object {
854 "dialects": Array [
855 "commonjs",
856 ],
857 "exports": Object {
858 ".": "./src/index.ts",
859 "./package.json": "./package.json",
860 },
861 },
862 },
863 "src",
864 ],
865 ],
866 Array [
867 "self-link.unlink",
868 Array [
869 Object {
870 "tshy": Object {
871 "dialects": Array [
872 "commonjs",
873 ],
874 "exports": Object {
875 ".": "./src/index.ts",
876 "./package.json": "./package.json",
877 },
878 },
879 },
880 "src",
881 ],
882 ],
883 Array [
884 "self-link.link",
885 Array [
886 Object {
887 "tshy": Object {
888 "dialects": Array [
889 "commonjs",
890 ],
891 "exports": Object {
892 ".": "./src/index.ts",
893 "./package.json": "./package.json",
894 },
895 },
896 },
897 "dist",
898 ],
899 ],
900 Array [
901 "self-link.link",
902 Array [
903 Object {
904 "tshy": Object {
905 "dialects": Array [
906 "commonjs",
907 ],
908 "exports": Object {
909 ".": "./src/index.ts",
910 "./package.json": "./package.json",
911 },
912 },
913 },
914 "src",
915 ],
916 ],
917 Array [
918 "imports.link",
919 Array [
920 Object {
921 "tshy": Object {
922 "dialects": Array [
923 "commonjs",
924 ],
925 "exports": Object {
926 ".": "./src/index.ts",
927 "./package.json": "./package.json",
928 },
929 },
930 },
931 "src",
932 ],
933 ],
934 Array [
935 "imports.unlink",
936 Array [
937 Object {
938 "tshy": Object {
939 "dialects": Array [
940 "commonjs",
941 ],
942 "exports": Object {
943 ".": "./src/index.ts",
944 "./package.json": "./package.json",
945 },
946 },
947 },
948 "src",
949 ],
950 ],
951 Array [
952 "self-link.unlink",
953 Array [
954 Object {
955 "tshy": Object {
956 "dialects": Array [
957 "commonjs",
958 ],
959 "exports": Object {
960 ".": "./src/index.ts",
961 "./package.json": "./package.json",
962 },
963 },
964 },
965 "src",
966 ],
967 ],
968 Array [
969 "self-link.link",
970 Array [
971 Object {
972 "tshy": Object {
973 "dialects": Array [
974 "commonjs",
975 ],
976 "exports": Object {
977 ".": "./src/index.ts",
978 "./package.json": "./package.json",
979 },
980 },
981 },
982 "dist",
983 ],
984 ],
985 Array [
986 "self-link.link",
987 Array [
988 Object {
989 "tshy": Object {
990 "dialects": Array [
991 "commonjs",
992 ],
993 "exports": Object {
994 ".": "./src/index.ts",
995 "./package.json": "./package.json",
996 },
997 },
998 },
999 "src",
1000 ],
1001 ],
1002 Array [
1003 "imports.link",
1004 Array [
1005 Object {
1006 "tshy": Object {
1007 "dialects": Array [
1008 "commonjs",
1009 ],
1010 "exports": Object {
1011 ".": "./src/index.ts",
1012 "./package.json": "./package.json",
1013 },
1014 },
1015 },
1016 "src",
1017 ],
1018 ],
1019 Array [
1020 "imports.unlink",
1021 Array [
1022 Object {
1023 "tshy": Object {
1024 "dialects": Array [
1025 "commonjs",
1026 ],
1027 "exports": Object {
1028 ".": "./src/index.ts",
1029 "./package.json": "./package.json",
1030 },
1031 },
1032 },
1033 "src",
1034 ],
1035 ],
1036 Array [
1037 "self-link.unlink",
1038 Array [
1039 Object {
1040 "tshy": Object {
1041 "dialects": Array [
1042 "commonjs",
1043 ],
1044 "exports": Object {
1045 ".": "./src/index.ts",
1046 "./package.json": "./package.json",
1047 },
1048 },
1049 },
1050 "src",
1051 ],
1052 ],
1053 Array [
1054 "self-link.link",
1055 Array [
1056 Object {
1057 "tshy": Object {
1058 "dialects": Array [
1059 "commonjs",
1060 ],
1061 "exports": Object {
1062 ".": "./src/index.ts",
1063 "./package.json": "./package.json",
1064 },
1065 },
1066 },
1067 "dist",
1068 ],
1069 ],
1070 ]
1071 `
1072
1073 exports[`test/build.ts > TAP > build esm only > must match snapshot 1`] = `
1074 Array [
1075 Array [
1076 "self-link.link",
1077 Array [
1078 Object {
1079 "tshy": Object {
1080 "dialects": Array [
1081 "esm",
1082 ],
1083 "exports": Object {
1084 ".": "./src/index.ts",
1085 "./package.json": "./package.json",
1086 },
1087 },
1088 },
1089 "src",
1090 ],
1091 ],
1092 Array [
1093 "imports.link",
1094 Array [
1095 Object {
1096 "tshy": Object {
1097 "dialects": Array [
1098 "esm",
1099 ],
1100 "exports": Object {
1101 ".": "./src/index.ts",
1102 "./package.json": "./package.json",
1103 },
1104 },
1105 },
1106 "src",
1107 ],
1108 ],
1109 Array [
1110 "imports.unlink",
1111 Array [
1112 Object {
1113 "tshy": Object {
1114 "dialects": Array [
1115 "esm",
1116 ],
1117 "exports": Object {
1118 ".": "./src/index.ts",
1119 "./package.json": "./package.json",
1120 },
1121 },
1122 },
1123 "src",
1124 ],
1125 ],
1126 Array [
1127 "self-link.unlink",
1128 Array [
1129 Object {
1130 "tshy": Object {
1131 "dialects": Array [
1132 "esm",
1133 ],
1134 "exports": Object {
1135 ".": "./src/index.ts",
1136 "./package.json": "./package.json",
1137 },
1138 },
1139 },
1140 "src",
1141 ],
1142 ],
1143 Array [
1144 "self-link.link",
1145 Array [
1146 Object {
1147 "tshy": Object {
1148 "dialects": Array [
1149 "esm",
1150 ],
1151 "exports": Object {
1152 ".": "./src/index.ts",
1153 "./package.json": "./package.json",
1154 },
1155 },
1156 },
1157 "dist",
1158 ],
1159 ],
1160 Array [
1161 "self-link.link",
1162 Array [
1163 Object {
1164 "tshy": Object {
1165 "dialects": Array [
1166 "esm",
1167 ],
1168 "exports": Object {
1169 ".": "./src/index.ts",
1170 "./package.json": "./package.json",
1171 },
1172 },
1173 },
1174 "src",
1175 ],
1176 ],
1177 Array [
1178 "imports.link",
1179 Array [
1180 Object {
1181 "tshy": Object {
1182 "dialects": Array [
1183 "esm",
1184 ],
1185 "exports": Object {
1186 ".": "./src/index.ts",
1187 "./package.json": "./package.json",
1188 },
1189 },
1190 },
1191 "src",
1192 ],
1193 ],
1194 Array [
1195 "imports.unlink",
1196 Array [
1197 Object {
1198 "tshy": Object {
1199 "dialects": Array [
1200 "esm",
1201 ],
1202 "exports": Object {
1203 ".": "./src/index.ts",
1204 "./package.json": "./package.json",
1205 },
1206 },
1207 },
1208 "src",
1209 ],
1210 ],
1211 Array [
1212 "self-link.unlink",
1213 Array [
1214 Object {
1215 "tshy": Object {
1216 "dialects": Array [
1217 "esm",
1218 ],
1219 "exports": Object {
1220 ".": "./src/index.ts",
1221 "./package.json": "./package.json",
1222 },
1223 },
1224 },
1225 "src",
1226 ],
1227 ],
1228 Array [
1229 "self-link.link",
1230 Array [
1231 Object {
1232 "tshy": Object {
1233 "dialects": Array [
1234 "esm",
1235 ],
1236 "exports": Object {
1237 ".": "./src/index.ts",
1238 "./package.json": "./package.json",
1239 },
1240 },
1241 },
1242 "dist",
1243 ],
1244 ],
1245 Array [
1246 "self-link.link",
1247 Array [
1248 Object {
1249 "tshy": Object {
1250 "dialects": Array [
1251 "esm",
1252 ],
1253 "exports": Object {
1254 ".": "./src/index.ts",
1255 "./package.json": "./package.json",
1256 },
1257 },
1258 },
1259 "src",
1260 ],
1261 ],
1262 Array [
1263 "imports.link",
1264 Array [
1265 Object {
1266 "tshy": Object {
1267 "dialects": Array [
1268 "esm",
1269 ],
1270 "exports": Object {
1271 ".": "./src/index.ts",
1272 "./package.json": "./package.json",
1273 },
1274 },
1275 },
1276 "src",
1277 ],
1278 ],
1279 Array [
1280 "imports.unlink",
1281 Array [
1282 Object {
1283 "tshy": Object {
1284 "dialects": Array [
1285 "esm",
1286 ],
1287 "exports": Object {
1288 ".": "./src/index.ts",
1289 "./package.json": "./package.json",
1290 },
1291 },
1292 },
1293 "src",
1294 ],
1295 ],
1296 Array [
1297 "self-link.unlink",
1298 Array [
1299 Object {
1300 "tshy": Object {
1301 "dialects": Array [
1302 "esm",
1303 ],
1304 "exports": Object {
1305 ".": "./src/index.ts",
1306 "./package.json": "./package.json",
1307 },
1308 },
1309 },
1310 "src",
1311 ],
1312 ],
1313 Array [
1314 "self-link.link",
1315 Array [
1316 Object {
1317 "tshy": Object {
1318 "dialects": Array [
1319 "esm",
1320 ],
1321 "exports": Object {
1322 ".": "./src/index.ts",
1323 "./package.json": "./package.json",
1324 },
1325 },
1326 },
1327 "dist",
1328 ],
1329 ],
1330 Array [
1331 "self-link.link",
1332 Array [
1333 Object {
1334 "tshy": Object {
1335 "dialects": Array [
1336 "esm",
1337 ],
1338 "exports": Object {
1339 ".": "./src/index.ts",
1340 "./package.json": "./package.json",
1341 },
1342 },
1343 },
1344 "src",
1345 ],
1346 ],
1347 Array [
1348 "imports.link",
1349 Array [
1350 Object {
1351 "tshy": Object {
1352 "dialects": Array [
1353 "esm",
1354 ],
1355 "exports": Object {
1356 ".": "./src/index.ts",
1357 "./package.json": "./package.json",
1358 },
1359 },
1360 },
1361 "src",
1362 ],
1363 ],
1364 Array [
1365 "imports.unlink",
1366 Array [
1367 Object {
1368 "tshy": Object {
1369 "dialects": Array [
1370 "esm",
1371 ],
1372 "exports": Object {
1373 ".": "./src/index.ts",
1374 "./package.json": "./package.json",
1375 },
1376 },
1377 },
1378 "src",
1379 ],
1380 ],
1381 Array [
1382 "self-link.unlink",
1383 Array [
1384 Object {
1385 "tshy": Object {
1386 "dialects": Array [
1387 "esm",
1388 ],
1389 "exports": Object {
1390 ".": "./src/index.ts",
1391 "./package.json": "./package.json",
1392 },
1393 },
1394 },
1395 "src",
1396 ],
1397 ],
1398 Array [
1399 "self-link.link",
1400 Array [
1401 Object {
1402 "tshy": Object {
1403 "dialects": Array [
1404 "esm",
1405 ],
1406 "exports": Object {
1407 ".": "./src/index.ts",
1408 "./package.json": "./package.json",
1409 },
1410 },
1411 },
1412 "dist",
1413 ],
1414 ],
1415 Array [
1416 "self-link.link",
1417 Array [
1418 Object {
1419 "tshy": Object {
1420 "dialects": Array [
1421 "esm",
1422 ],
1423 "exports": Object {
1424 ".": "./src/index.ts",
1425 "./package.json": "./package.json",
1426 },
1427 },
1428 },
1429 "src",
1430 ],
1431 ],
1432 Array [
1433 "imports.link",
1434 Array [
1435 Object {
1436 "tshy": Object {
1437 "dialects": Array [
1438 "esm",
1439 ],
1440 "exports": Object {
1441 ".": "./src/index.ts",
1442 "./package.json": "./package.json",
1443 },
1444 },
1445 },
1446 "src",
1447 ],
1448 ],
1449 Array [
1450 "imports.unlink",
1451 Array [
1452 Object {
1453 "tshy": Object {
1454 "dialects": Array [
1455 "esm",
1456 ],
1457 "exports": Object {
1458 ".": "./src/index.ts",
1459 "./package.json": "./package.json",
1460 },
1461 },
1462 },
1463 "src",
1464 ],
1465 ],
1466 Array [
1467 "self-link.unlink",
1468 Array [
1469 Object {
1470 "tshy": Object {
1471 "dialects": Array [
1472 "esm",
1473 ],
1474 "exports": Object {
1475 ".": "./src/index.ts",
1476 "./package.json": "./package.json",
1477 },
1478 },
1479 },
1480 "src",
1481 ],
1482 ],
1483 Array [
1484 "self-link.link",
1485 Array [
1486 Object {
1487 "tshy": Object {
1488 "dialects": Array [
1489 "esm",
1490 ],
1491 "exports": Object {
1492 ".": "./src/index.ts",
1493 "./package.json": "./package.json",
1494 },
1495 },
1496 },
1497 "dist",
1498 ],
1499 ],
1500 Array [
1501 "self-link.link",
1502 Array [
1503 Object {
1504 "tshy": Object {
1505 "dialects": Array [
1506 "esm",
1507 ],
1508 "exports": Object {
1509 ".": "./src/index.ts",
1510 "./package.json": "./package.json",
1511 },
1512 },
1513 },
1514 "src",
1515 ],
1516 ],
1517 Array [
1518 "imports.link",
1519 Array [
1520 Object {
1521 "tshy": Object {
1522 "dialects": Array [
1523 "esm",
1524 ],
1525 "exports": Object {
1526 ".": "./src/index.ts",
1527 "./package.json": "./package.json",
1528 },
1529 },
1530 },
1531 "src",
1532 ],
1533 ],
1534 Array [
1535 "imports.unlink",
1536 Array [
1537 Object {
1538 "tshy": Object {
1539 "dialects": Array [
1540 "esm",
1541 ],
1542 "exports": Object {
1543 ".": "./src/index.ts",
1544 "./package.json": "./package.json",
1545 },
1546 },
1547 },
1548 "src",
1549 ],
1550 ],
1551 Array [
1552 "self-link.unlink",
1553 Array [
1554 Object {
1555 "tshy": Object {
1556 "dialects": Array [
1557 "esm",
1558 ],
1559 "exports": Object {
1560 ".": "./src/index.ts",
1561 "./package.json": "./package.json",
1562 },
1563 },
1564 },
1565 "src",
1566 ],
1567 ],
1568 Array [
1569 "self-link.link",
1570 Array [
1571 Object {
1572 "tshy": Object {
1573 "dialects": Array [
1574 "esm",
1575 ],
1576 "exports": Object {
1577 ".": "./src/index.ts",
1578 "./package.json": "./package.json",
1579 },
1580 },
1581 },
1582 "dist",
1583 ],
1584 ],
1585 ]
1586 `
1587
1588 exports[`test/build.ts > TAP > default settings > must match snapshot 1`] = `
1589 Array [
1590 Array [
1591 "self-link.link",
1592 Array [
1593 Object {
1594 "tshy": Object {
1595 "exports": Object {
1596 ".": "./src/index.ts",
1597 "./package.json": "./package.json",
1598 },
1599 },
1600 },
1601 "src",
1602 ],
1603 ],
1604 Array [
1605 "imports.link",
1606 Array [
1607 Object {
1608 "tshy": Object {
1609 "exports": Object {
1610 ".": "./src/index.ts",
1611 "./package.json": "./package.json",
1612 },
1613 },
1614 },
1615 "src",
1616 ],
1617 ],
1618 Array [
1619 "imports.unlink",
1620 Array [
1621 Object {
1622 "tshy": Object {
1623 "exports": Object {
1624 ".": "./src/index.ts",
1625 "./package.json": "./package.json",
1626 },
1627 },
1628 },
1629 "src",
1630 ],
1631 ],
1632 Array [
1633 "self-link.unlink",
1634 Array [
1635 Object {
1636 "tshy": Object {
1637 "exports": Object {
1638 ".": "./src/index.ts",
1639 "./package.json": "./package.json",
1640 },
1641 },
1642 },
1643 "src",
1644 ],
1645 ],
1646 Array [
1647 "self-link.link",
1648 Array [
1649 Object {
1650 "tshy": Object {
1651 "exports": Object {
1652 ".": "./src/index.ts",
1653 "./package.json": "./package.json",
1654 },
1655 },
1656 },
1657 "dist",
1658 ],
1659 ],
1660 ]
1661 `
1662
1663 exports[`test/build.ts > TAP > imports linking > basic > must match snapshot 1`] = `
1664 Array [
1665 Array [
1666 "self-link.link",
1667 Array [
1668 Object {
1669 "tshy": Object {
1670 "dialects": Array [
1671 "esm",
1672 "commonjs",
1673 ],
1674 "exports": Object {
1675 ".": "./src/index.ts",
1676 "./package.json": "./package.json",
1677 },
1678 },
1679 },
1680 "src",
1681 ],
1682 ],
1683 Array [
1684 "imports.link",
1685 Array [
1686 Object {
1687 "tshy": Object {
1688 "dialects": Array [
1689 "esm",
1690 "commonjs",
1691 ],
1692 "exports": Object {
1693 ".": "./src/index.ts",
1694 "./package.json": "./package.json",
1695 },
1696 },
1697 },
1698 "src",
1699 ],
1700 ],
1701 Array [
1702 "imports.unlink",
1703 Array [
1704 Object {
1705 "tshy": Object {
1706 "dialects": Array [
1707 "esm",
1708 "commonjs",
1709 ],
1710 "exports": Object {
1711 ".": "./src/index.ts",
1712 "./package.json": "./package.json",
1713 },
1714 },
1715 },
1716 "src",
1717 ],
1718 ],
1719 Array [
1720 "self-link.unlink",
1721 Array [
1722 Object {
1723 "tshy": Object {
1724 "dialects": Array [
1725 "esm",
1726 "commonjs",
1727 ],
1728 "exports": Object {
1729 ".": "./src/index.ts",
1730 "./package.json": "./package.json",
1731 },
1732 },
1733 },
1734 "src",
1735 ],
1736 ],
1737 Array [
1738 "self-link.link",
1739 Array [
1740 Object {
1741 "tshy": Object {
1742 "dialects": Array [
1743 "esm",
1744 "commonjs",
1745 ],
1746 "exports": Object {
1747 ".": "./src/index.ts",
1748 "./package.json": "./package.json",
1749 },
1750 },
1751 },
1752 "dist",
1753 ],
1754 ],
1755 Array [
1756 "self-link.link",
1757 Array [
1758 Object {
1759 "tshy": Object {
1760 "dialects": Array [
1761 "esm",
1762 "commonjs",
1763 ],
1764 "exports": Object {
1765 ".": "./src/index.ts",
1766 "./package.json": "./package.json",
1767 },
1768 },
1769 },
1770 "src",
1771 ],
1772 ],
1773 Array [
1774 "imports.link",
1775 Array [
1776 Object {
1777 "tshy": Object {
1778 "dialects": Array [
1779 "esm",
1780 "commonjs",
1781 ],
1782 "exports": Object {
1783 ".": "./src/index.ts",
1784 "./package.json": "./package.json",
1785 },
1786 },
1787 },
1788 "src",
1789 ],
1790 ],
1791 Array [
1792 "imports.unlink",
1793 Array [
1794 Object {
1795 "tshy": Object {
1796 "dialects": Array [
1797 "esm",
1798 "commonjs",
1799 ],
1800 "exports": Object {
1801 ".": "./src/index.ts",
1802 "./package.json": "./package.json",
1803 },
1804 },
1805 },
1806 "src",
1807 ],
1808 ],
1809 Array [
1810 "self-link.unlink",
1811 Array [
1812 Object {
1813 "tshy": Object {
1814 "dialects": Array [
1815 "esm",
1816 "commonjs",
1817 ],
1818 "exports": Object {
1819 ".": "./src/index.ts",
1820 "./package.json": "./package.json",
1821 },
1822 },
1823 },
1824 "src",
1825 ],
1826 ],
1827 Array [
1828 "self-link.link",
1829 Array [
1830 Object {
1831 "tshy": Object {
1832 "dialects": Array [
1833 "esm",
1834 "commonjs",
1835 ],
1836 "exports": Object {
1837 ".": "./src/index.ts",
1838 "./package.json": "./package.json",
1839 },
1840 },
1841 },
1842 "dist",
1843 ],
1844 ],
1845 Array [
1846 "self-link.link",
1847 Array [
1848 Object {
1849 "tshy": Object {
1850 "dialects": Array [
1851 "esm",
1852 "commonjs",
1853 ],
1854 "exports": Object {
1855 ".": "./src/index.ts",
1856 "./package.json": "./package.json",
1857 },
1858 },
1859 },
1860 "src",
1861 ],
1862 ],
1863 Array [
1864 "imports.link",
1865 Array [
1866 Object {
1867 "tshy": Object {
1868 "dialects": Array [
1869 "esm",
1870 "commonjs",
1871 ],
1872 "exports": Object {
1873 ".": "./src/index.ts",
1874 "./package.json": "./package.json",
1875 },
1876 },
1877 },
1878 "src",
1879 ],
1880 ],
1881 Array [
1882 "imports.unlink",
1883 Array [
1884 Object {
1885 "tshy": Object {
1886 "dialects": Array [
1887 "esm",
1888 "commonjs",
1889 ],
1890 "exports": Object {
1891 ".": "./src/index.ts",
1892 "./package.json": "./package.json",
1893 },
1894 },
1895 },
1896 "src",
1897 ],
1898 ],
1899 Array [
1900 "self-link.unlink",
1901 Array [
1902 Object {
1903 "tshy": Object {
1904 "dialects": Array [
1905 "esm",
1906 "commonjs",
1907 ],
1908 "exports": Object {
1909 ".": "./src/index.ts",
1910 "./package.json": "./package.json",
1911 },
1912 },
1913 },
1914 "src",
1915 ],
1916 ],
1917 Array [
1918 "self-link.link",
1919 Array [
1920 Object {
1921 "tshy": Object {
1922 "dialects": Array [
1923 "esm",
1924 "commonjs",
1925 ],
1926 "exports": Object {
1927 ".": "./src/index.ts",
1928 "./package.json": "./package.json",
1929 },
1930 },
1931 },
1932 "dist",
1933 ],
1934 ],
1935 Array [
1936 "self-link.link",
1937 Array [
1938 Object {
1939 "tshy": Object {
1940 "dialects": Array [
1941 "esm",
1942 "commonjs",
1943 ],
1944 "exports": Object {
1945 ".": "./src/index.ts",
1946 "./package.json": "./package.json",
1947 },
1948 },
1949 },
1950 "src",
1951 ],
1952 ],
1953 Array [
1954 "imports.link",
1955 Array [
1956 Object {
1957 "tshy": Object {
1958 "dialects": Array [
1959 "esm",
1960 "commonjs",
1961 ],
1962 "exports": Object {
1963 ".": "./src/index.ts",
1964 "./package.json": "./package.json",
1965 },
1966 },
1967 },
1968 "src",
1969 ],
1970 ],
1971 Array [
1972 "imports.unlink",
1973 Array [
1974 Object {
1975 "tshy": Object {
1976 "dialects": Array [
1977 "esm",
1978 "commonjs",
1979 ],
1980 "exports": Object {
1981 ".": "./src/index.ts",
1982 "./package.json": "./package.json",
1983 },
1984 },
1985 },
1986 "src",
1987 ],
1988 ],
1989 Array [
1990 "self-link.unlink",
1991 Array [
1992 Object {
1993 "tshy": Object {
1994 "dialects": Array [
1995 "esm",
1996 "commonjs",
1997 ],
1998 "exports": Object {
1999 ".": "./src/index.ts",
2000 "./package.json": "./package.json",
2001 },
2002 },
2003 },
2004 "src",
2005 ],
2006 ],
2007 Array [
2008 "self-link.link",
2009 Array [
2010 Object {
2011 "tshy": Object {
2012 "dialects": Array [
2013 "esm",
2014 "commonjs",
2015 ],
2016 "exports": Object {
2017 ".": "./src/index.ts",
2018 "./package.json": "./package.json",
2019 },
2020 },
2021 },
2022 "dist",
2023 ],
2024 ],
2025 Array [
2026 "self-link.link",
2027 Array [
2028 Object {
2029 "tshy": Object {
2030 "dialects": Array [
2031 "esm",
2032 "commonjs",
2033 ],
2034 "exports": Object {
2035 ".": "./src/index.ts",
2036 "./package.json": "./package.json",
2037 },
2038 },
2039 },
2040 "src",
2041 ],
2042 ],
2043 Array [
2044 "imports.link",
2045 Array [
2046 Object {
2047 "tshy": Object {
2048 "dialects": Array [
2049 "esm",
2050 "commonjs",
2051 ],
2052 "exports": Object {
2053 ".": "./src/index.ts",
2054 "./package.json": "./package.json",
2055 },
2056 },
2057 },
2058 "src",
2059 ],
2060 ],
2061 Array [
2062 "imports.unlink",
2063 Array [
2064 Object {
2065 "tshy": Object {
2066 "dialects": Array [
2067 "esm",
2068 "commonjs",
2069 ],
2070 "exports": Object {
2071 ".": "./src/index.ts",
2072 "./package.json": "./package.json",
2073 },
2074 },
2075 },
2076 "src",
2077 ],
2078 ],
2079 Array [
2080 "self-link.unlink",
2081 Array [
2082 Object {
2083 "tshy": Object {
2084 "dialects": Array [
2085 "esm",
2086 "commonjs",
2087 ],
2088 "exports": Object {
2089 ".": "./src/index.ts",
2090 "./package.json": "./package.json",
2091 },
2092 },
2093 },
2094 "src",
2095 ],
2096 ],
2097 Array [
2098 "self-link.link",
2099 Array [
2100 Object {
2101 "tshy": Object {
2102 "dialects": Array [
2103 "esm",
2104 "commonjs",
2105 ],
2106 "exports": Object {
2107 ".": "./src/index.ts",
2108 "./package.json": "./package.json",
2109 },
2110 },
2111 },
2112 "dist",
2113 ],
2114 ],
2115 Array [
2116 "self-link.link",
2117 Array [
2118 Object {
2119 "tshy": Object {
2120 "dialects": Array [
2121 "esm",
2122 "commonjs",
2123 ],
2124 "exports": Object {
2125 ".": "./src/index.ts",
2126 "./package.json": "./package.json",
2127 },
2128 },
2129 },
2130 "src",
2131 ],
2132 ],
2133 Array [
2134 "imports.link",
2135 Array [
2136 Object {
2137 "tshy": Object {
2138 "dialects": Array [
2139 "esm",
2140 "commonjs",
2141 ],
2142 "exports": Object {
2143 ".": "./src/index.ts",
2144 "./package.json": "./package.json",
2145 },
2146 },
2147 },
2148 "src",
2149 ],
2150 ],
2151 Array [
2152 "imports.unlink",
2153 Array [
2154 Object {
2155 "tshy": Object {
2156 "dialects": Array [
2157 "esm",
2158 "commonjs",
2159 ],
2160 "exports": Object {
2161 ".": "./src/index.ts",
2162 "./package.json": "./package.json",
2163 },
2164 },
2165 },
2166 "src",
2167 ],
2168 ],
2169 Array [
2170 "self-link.unlink",
2171 Array [
2172 Object {
2173 "tshy": Object {
2174 "dialects": Array [
2175 "esm",
2176 "commonjs",
2177 ],
2178 "exports": Object {
2179 ".": "./src/index.ts",
2180 "./package.json": "./package.json",
2181 },
2182 },
2183 },
2184 "src",
2185 ],
2186 ],
2187 Array [
2188 "self-link.link",
2189 Array [
2190 Object {
2191 "tshy": Object {
2192 "dialects": Array [
2193 "esm",
2194 "commonjs",
2195 ],
2196 "exports": Object {
2197 ".": "./src/index.ts",
2198 "./package.json": "./package.json",
2199 },
2200 },
2201 },
2202 "dist",
2203 ],
2204 ],
2205 Array [
2206 "self-link.link",
2207 Array [
2208 Object {
2209 "tshy": Object {
2210 "dialects": Array [
2211 "esm",
2212 "commonjs",
2213 ],
2214 "exports": Object {
2215 ".": "./src/index.ts",
2216 "./package.json": "./package.json",
2217 },
2218 },
2219 },
2220 "src",
2221 ],
2222 ],
2223 Array [
2224 "imports.link",
2225 Array [
2226 Object {
2227 "tshy": Object {
2228 "dialects": Array [
2229 "esm",
2230 "commonjs",
2231 ],
2232 "exports": Object {
2233 ".": "./src/index.ts",
2234 "./package.json": "./package.json",
2235 },
2236 },
2237 },
2238 "src",
2239 ],
2240 ],
2241 Array [
2242 "imports.unlink",
2243 Array [
2244 Object {
2245 "tshy": Object {
2246 "dialects": Array [
2247 "esm",
2248 "commonjs",
2249 ],
2250 "exports": Object {
2251 ".": "./src/index.ts",
2252 "./package.json": "./package.json",
2253 },
2254 },
2255 },
2256 "src",
2257 ],
2258 ],
2259 Array [
2260 "self-link.unlink",
2261 Array [
2262 Object {
2263 "tshy": Object {
2264 "dialects": Array [
2265 "esm",
2266 "commonjs",
2267 ],
2268 "exports": Object {
2269 ".": "./src/index.ts",
2270 "./package.json": "./package.json",
2271 },
2272 },
2273 },
2274 "src",
2275 ],
2276 ],
2277 Array [
2278 "self-link.link",
2279 Array [
2280 Object {
2281 "tshy": Object {
2282 "dialects": Array [
2283 "esm",
2284 "commonjs",
2285 ],
2286 "exports": Object {
2287 ".": "./src/index.ts",
2288 "./package.json": "./package.json",
2289 },
2290 },
2291 },
2292 "dist",
2293 ],
2294 ],
2295 Array [
2296 "self-link.link",
2297 Array [
2298 Object {
2299 "imports": Object {
2300 "#foo": Object {
2301 "default": "./lib/foo-browser.js",
2302 "import": Array [
2303 Object {
2304 "types": "./lib/foo.d.mts",
2305 },
2306 "./lib/foo-import.mjs",
2307 ],
2308 "node": Object {
2309 "import": Array [
2310 Object {
2311 "types": "./lib/foo.d.mts",
2312 },
2313 "./lib/foo-node.mjs",
2314 ],
2315 "require": Array [
2316 Object {
2317 "types": "./lib/foo.d.cts",
2318 },
2319 "./lib/foo-node.cjs",
2320 ],
2321 },
2322 "require": Array [
2323 Object {
2324 "types": "./lib/foo.d.cts",
2325 },
2326 "./lib/foo-require.cjs",
2327 ],
2328 "types": "./lib/foo-global.d.ts",
2329 },
2330 "#fs": "node:fs",
2331 "#ri": "resolve-import",
2332 "#root": "./root.mjs",
2333 "#xp": "xyz/package.json",
2334 },
2335 "name": "@my/package",
2336 "scripts": Object {
2337 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
2338 },
2339 "tshy": Object {
2340 "exports": Object {
2341 ".": "./src/index.ts",
2342 "./foo": Object {
2343 "default": "./lib/foo-browser.js",
2344 "import": Array [
2345 Object {
2346 "types": "./lib/foo.d.mts",
2347 },
2348 "./lib/foo-import.mjs",
2349 ],
2350 "node": Object {
2351 "import": Array [
2352 Object {
2353 "types": "./lib/foo.d.mts",
2354 },
2355 "./lib/foo-node.mjs",
2356 ],
2357 "require": Array [
2358 Object {
2359 "types": "./lib/foo.d.cts",
2360 },
2361 "./lib/foo-node.cjs",
2362 ],
2363 },
2364 "require": Array [
2365 Object {
2366 "types": "./lib/foo.d.cts",
2367 },
2368 "./lib/foo-require.cjs",
2369 ],
2370 "types": "./lib/foo-global.d.ts",
2371 },
2372 "./package.json": "./package.json",
2373 },
2374 },
2375 "type": "module",
2376 },
2377 "src",
2378 ],
2379 ],
2380 Array [
2381 "imports.link",
2382 Array [
2383 Object {
2384 "imports": Object {
2385 "#foo": Object {
2386 "default": "./lib/foo-browser.js",
2387 "import": Array [
2388 Object {
2389 "types": "./lib/foo.d.mts",
2390 },
2391 "./lib/foo-import.mjs",
2392 ],
2393 "node": Object {
2394 "import": Array [
2395 Object {
2396 "types": "./lib/foo.d.mts",
2397 },
2398 "./lib/foo-node.mjs",
2399 ],
2400 "require": Array [
2401 Object {
2402 "types": "./lib/foo.d.cts",
2403 },
2404 "./lib/foo-node.cjs",
2405 ],
2406 },
2407 "require": Array [
2408 Object {
2409 "types": "./lib/foo.d.cts",
2410 },
2411 "./lib/foo-require.cjs",
2412 ],
2413 "types": "./lib/foo-global.d.ts",
2414 },
2415 "#fs": "node:fs",
2416 "#ri": "resolve-import",
2417 "#root": "./root.mjs",
2418 "#xp": "xyz/package.json",
2419 },
2420 "name": "@my/package",
2421 "scripts": Object {
2422 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
2423 },
2424 "tshy": Object {
2425 "exports": Object {
2426 ".": "./src/index.ts",
2427 "./foo": Object {
2428 "default": "./lib/foo-browser.js",
2429 "import": Array [
2430 Object {
2431 "types": "./lib/foo.d.mts",
2432 },
2433 "./lib/foo-import.mjs",
2434 ],
2435 "node": Object {
2436 "import": Array [
2437 Object {
2438 "types": "./lib/foo.d.mts",
2439 },
2440 "./lib/foo-node.mjs",
2441 ],
2442 "require": Array [
2443 Object {
2444 "types": "./lib/foo.d.cts",
2445 },
2446 "./lib/foo-node.cjs",
2447 ],
2448 },
2449 "require": Array [
2450 Object {
2451 "types": "./lib/foo.d.cts",
2452 },
2453 "./lib/foo-require.cjs",
2454 ],
2455 "types": "./lib/foo-global.d.ts",
2456 },
2457 "./package.json": "./package.json",
2458 },
2459 },
2460 "type": "module",
2461 },
2462 "src",
2463 ],
2464 ],
2465 Array [
2466 "imports.unlink",
2467 Array [
2468 Object {
2469 "imports": Object {
2470 "#foo": Object {
2471 "default": "./lib/foo-browser.js",
2472 "import": Array [
2473 Object {
2474 "types": "./lib/foo.d.mts",
2475 },
2476 "./lib/foo-import.mjs",
2477 ],
2478 "node": Object {
2479 "import": Array [
2480 Object {
2481 "types": "./lib/foo.d.mts",
2482 },
2483 "./lib/foo-node.mjs",
2484 ],
2485 "require": Array [
2486 Object {
2487 "types": "./lib/foo.d.cts",
2488 },
2489 "./lib/foo-node.cjs",
2490 ],
2491 },
2492 "require": Array [
2493 Object {
2494 "types": "./lib/foo.d.cts",
2495 },
2496 "./lib/foo-require.cjs",
2497 ],
2498 "types": "./lib/foo-global.d.ts",
2499 },
2500 "#fs": "node:fs",
2501 "#ri": "resolve-import",
2502 "#root": "./root.mjs",
2503 "#xp": "xyz/package.json",
2504 },
2505 "name": "@my/package",
2506 "scripts": Object {
2507 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
2508 },
2509 "tshy": Object {
2510 "exports": Object {
2511 ".": "./src/index.ts",
2512 "./foo": Object {
2513 "default": "./lib/foo-browser.js",
2514 "import": Array [
2515 Object {
2516 "types": "./lib/foo.d.mts",
2517 },
2518 "./lib/foo-import.mjs",
2519 ],
2520 "node": Object {
2521 "import": Array [
2522 Object {
2523 "types": "./lib/foo.d.mts",
2524 },
2525 "./lib/foo-node.mjs",
2526 ],
2527 "require": Array [
2528 Object {
2529 "types": "./lib/foo.d.cts",
2530 },
2531 "./lib/foo-node.cjs",
2532 ],
2533 },
2534 "require": Array [
2535 Object {
2536 "types": "./lib/foo.d.cts",
2537 },
2538 "./lib/foo-require.cjs",
2539 ],
2540 "types": "./lib/foo-global.d.ts",
2541 },
2542 "./package.json": "./package.json",
2543 },
2544 },
2545 "type": "module",
2546 },
2547 "src",
2548 ],
2549 ],
2550 Array [
2551 "self-link.unlink",
2552 Array [
2553 Object {
2554 "imports": Object {
2555 "#foo": Object {
2556 "default": "./lib/foo-browser.js",
2557 "import": Array [
2558 Object {
2559 "types": "./lib/foo.d.mts",
2560 },
2561 "./lib/foo-import.mjs",
2562 ],
2563 "node": Object {
2564 "import": Array [
2565 Object {
2566 "types": "./lib/foo.d.mts",
2567 },
2568 "./lib/foo-node.mjs",
2569 ],
2570 "require": Array [
2571 Object {
2572 "types": "./lib/foo.d.cts",
2573 },
2574 "./lib/foo-node.cjs",
2575 ],
2576 },
2577 "require": Array [
2578 Object {
2579 "types": "./lib/foo.d.cts",
2580 },
2581 "./lib/foo-require.cjs",
2582 ],
2583 "types": "./lib/foo-global.d.ts",
2584 },
2585 "#fs": "node:fs",
2586 "#ri": "resolve-import",
2587 "#root": "./root.mjs",
2588 "#xp": "xyz/package.json",
2589 },
2590 "name": "@my/package",
2591 "scripts": Object {
2592 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
2593 },
2594 "tshy": Object {
2595 "exports": Object {
2596 ".": "./src/index.ts",
2597 "./foo": Object {
2598 "default": "./lib/foo-browser.js",
2599 "import": Array [
2600 Object {
2601 "types": "./lib/foo.d.mts",
2602 },
2603 "./lib/foo-import.mjs",
2604 ],
2605 "node": Object {
2606 "import": Array [
2607 Object {
2608 "types": "./lib/foo.d.mts",
2609 },
2610 "./lib/foo-node.mjs",
2611 ],
2612 "require": Array [
2613 Object {
2614 "types": "./lib/foo.d.cts",
2615 },
2616 "./lib/foo-node.cjs",
2617 ],
2618 },
2619 "require": Array [
2620 Object {
2621 "types": "./lib/foo.d.cts",
2622 },
2623 "./lib/foo-require.cjs",
2624 ],
2625 "types": "./lib/foo-global.d.ts",
2626 },
2627 "./package.json": "./package.json",
2628 },
2629 },
2630 "type": "module",
2631 },
2632 "src",
2633 ],
2634 ],
2635 Array [
2636 "self-link.link",
2637 Array [
2638 Object {
2639 "imports": Object {
2640 "#foo": Object {
2641 "default": "./lib/foo-browser.js",
2642 "import": Array [
2643 Object {
2644 "types": "./lib/foo.d.mts",
2645 },
2646 "./lib/foo-import.mjs",
2647 ],
2648 "node": Object {
2649 "import": Array [
2650 Object {
2651 "types": "./lib/foo.d.mts",
2652 },
2653 "./lib/foo-node.mjs",
2654 ],
2655 "require": Array [
2656 Object {
2657 "types": "./lib/foo.d.cts",
2658 },
2659 "./lib/foo-node.cjs",
2660 ],
2661 },
2662 "require": Array [
2663 Object {
2664 "types": "./lib/foo.d.cts",
2665 },
2666 "./lib/foo-require.cjs",
2667 ],
2668 "types": "./lib/foo-global.d.ts",
2669 },
2670 "#fs": "node:fs",
2671 "#ri": "resolve-import",
2672 "#root": "./root.mjs",
2673 "#xp": "xyz/package.json",
2674 },
2675 "name": "@my/package",
2676 "scripts": Object {
2677 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
2678 },
2679 "tshy": Object {
2680 "exports": Object {
2681 ".": "./src/index.ts",
2682 "./foo": Object {
2683 "default": "./lib/foo-browser.js",
2684 "import": Array [
2685 Object {
2686 "types": "./lib/foo.d.mts",
2687 },
2688 "./lib/foo-import.mjs",
2689 ],
2690 "node": Object {
2691 "import": Array [
2692 Object {
2693 "types": "./lib/foo.d.mts",
2694 },
2695 "./lib/foo-node.mjs",
2696 ],
2697 "require": Array [
2698 Object {
2699 "types": "./lib/foo.d.cts",
2700 },
2701 "./lib/foo-node.cjs",
2702 ],
2703 },
2704 "require": Array [
2705 Object {
2706 "types": "./lib/foo.d.cts",
2707 },
2708 "./lib/foo-require.cjs",
2709 ],
2710 "types": "./lib/foo-global.d.ts",
2711 },
2712 "./package.json": "./package.json",
2713 },
2714 },
2715 "type": "module",
2716 },
2717 "dist",
2718 ],
2719 ],
2720 Array [
2721 "imports.link",
2722 Array [
2723 Object {
2724 "imports": Object {
2725 "#foo": Object {
2726 "default": "./lib/foo-browser.js",
2727 "import": Array [
2728 Object {
2729 "types": "./lib/foo.d.mts",
2730 },
2731 "./lib/foo-import.mjs",
2732 ],
2733 "node": Object {
2734 "import": Array [
2735 Object {
2736 "types": "./lib/foo.d.mts",
2737 },
2738 "./lib/foo-node.mjs",
2739 ],
2740 "require": Array [
2741 Object {
2742 "types": "./lib/foo.d.cts",
2743 },
2744 "./lib/foo-node.cjs",
2745 ],
2746 },
2747 "require": Array [
2748 Object {
2749 "types": "./lib/foo.d.cts",
2750 },
2751 "./lib/foo-require.cjs",
2752 ],
2753 "types": "./lib/foo-global.d.ts",
2754 },
2755 "#fs": "node:fs",
2756 "#ri": "resolve-import",
2757 "#root": "./root.mjs",
2758 "#xp": "xyz/package.json",
2759 },
2760 "name": "@my/package",
2761 "scripts": Object {
2762 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
2763 },
2764 "tshy": Object {
2765 "exports": Object {
2766 ".": "./src/index.ts",
2767 "./foo": Object {
2768 "default": "./lib/foo-browser.js",
2769 "import": Array [
2770 Object {
2771 "types": "./lib/foo.d.mts",
2772 },
2773 "./lib/foo-import.mjs",
2774 ],
2775 "node": Object {
2776 "import": Array [
2777 Object {
2778 "types": "./lib/foo.d.mts",
2779 },
2780 "./lib/foo-node.mjs",
2781 ],
2782 "require": Array [
2783 Object {
2784 "types": "./lib/foo.d.cts",
2785 },
2786 "./lib/foo-node.cjs",
2787 ],
2788 },
2789 "require": Array [
2790 Object {
2791 "types": "./lib/foo.d.cts",
2792 },
2793 "./lib/foo-require.cjs",
2794 ],
2795 "types": "./lib/foo-global.d.ts",
2796 },
2797 "./package.json": "./package.json",
2798 },
2799 },
2800 "type": "module",
2801 },
2802 "dist/commonjs",
2803 true,
2804 ],
2805 ],
2806 Array [
2807 "imports.link",
2808 Array [
2809 Object {
2810 "imports": Object {
2811 "#foo": Object {
2812 "default": "./lib/foo-browser.js",
2813 "import": Array [
2814 Object {
2815 "types": "./lib/foo.d.mts",
2816 },
2817 "./lib/foo-import.mjs",
2818 ],
2819 "node": Object {
2820 "import": Array [
2821 Object {
2822 "types": "./lib/foo.d.mts",
2823 },
2824 "./lib/foo-node.mjs",
2825 ],
2826 "require": Array [
2827 Object {
2828 "types": "./lib/foo.d.cts",
2829 },
2830 "./lib/foo-node.cjs",
2831 ],
2832 },
2833 "require": Array [
2834 Object {
2835 "types": "./lib/foo.d.cts",
2836 },
2837 "./lib/foo-require.cjs",
2838 ],
2839 "types": "./lib/foo-global.d.ts",
2840 },
2841 "#fs": "node:fs",
2842 "#ri": "resolve-import",
2843 "#root": "./root.mjs",
2844 "#xp": "xyz/package.json",
2845 },
2846 "name": "@my/package",
2847 "scripts": Object {
2848 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
2849 },
2850 "tshy": Object {
2851 "exports": Object {
2852 ".": "./src/index.ts",
2853 "./foo": Object {
2854 "default": "./lib/foo-browser.js",
2855 "import": Array [
2856 Object {
2857 "types": "./lib/foo.d.mts",
2858 },
2859 "./lib/foo-import.mjs",
2860 ],
2861 "node": Object {
2862 "import": Array [
2863 Object {
2864 "types": "./lib/foo.d.mts",
2865 },
2866 "./lib/foo-node.mjs",
2867 ],
2868 "require": Array [
2869 Object {
2870 "types": "./lib/foo.d.cts",
2871 },
2872 "./lib/foo-node.cjs",
2873 ],
2874 },
2875 "require": Array [
2876 Object {
2877 "types": "./lib/foo.d.cts",
2878 },
2879 "./lib/foo-require.cjs",
2880 ],
2881 "types": "./lib/foo-global.d.ts",
2882 },
2883 "./package.json": "./package.json",
2884 },
2885 },
2886 "type": "module",
2887 },
2888 "dist/esm",
2889 true,
2890 ],
2891 ],
2892 Array [
2893 "imports.save",
2894 Array [
2895 "dist/.tshy-link-imports.mjs",
2896 ],
2897 ],
2898 Array [
2899 "self-link.link",
2900 Array [
2901 Object {
2902 "exports": Object {
2903 ".": Object {
2904 "import": Object {
2905 "default": "./dist/esm/index.js",
2906 "types": "./dist/esm/index.d.ts",
2907 },
2908 "require": Object {
2909 "default": "./dist/commonjs/index.js",
2910 "types": "./dist/commonjs/index.d.ts",
2911 },
2912 },
2913 "./foo": Object {
2914 "default": "./lib/foo-browser.js",
2915 "import": Array [
2916 Object {
2917 "types": "./lib/foo.d.mts",
2918 },
2919 "./lib/foo-import.mjs",
2920 ],
2921 "node": Object {
2922 "import": Array [
2923 Object {
2924 "types": "./lib/foo.d.mts",
2925 },
2926 "./lib/foo-node.mjs",
2927 ],
2928 "require": Array [
2929 Object {
2930 "types": "./lib/foo.d.cts",
2931 },
2932 "./lib/foo-node.cjs",
2933 ],
2934 },
2935 "require": Array [
2936 Object {
2937 "types": "./lib/foo.d.cts",
2938 },
2939 "./lib/foo-require.cjs",
2940 ],
2941 "types": "./lib/foo-global.d.ts",
2942 },
2943 "./package.json": "./package.json",
2944 },
2945 "imports": Object {
2946 "#c/*": "./lib/*.cjs",
2947 "#foo": Object {
2948 "default": "./lib/foo-browser.js",
2949 "import": Array [
2950 Object {
2951 "types": "./lib/foo.d.mts",
2952 },
2953 "./lib/foo-import.mjs",
2954 ],
2955 "node": Object {
2956 "import": Array [
2957 Object {
2958 "types": "./lib/foo.d.mts",
2959 },
2960 "./lib/foo-node.mjs",
2961 ],
2962 "require": Array [
2963 Object {
2964 "types": "./lib/foo.d.cts",
2965 },
2966 "./lib/foo-node.cjs",
2967 ],
2968 },
2969 "require": Array [
2970 Object {
2971 "types": "./lib/foo.d.cts",
2972 },
2973 "./lib/foo-require.cjs",
2974 ],
2975 "types": "./lib/foo-global.d.ts",
2976 },
2977 "#fs": "node:fs",
2978 "#m/*": "./lib/*.mjs",
2979 "#ri": "resolve-import",
2980 "#ri/*": "resolve-import/*",
2981 "#root": "./root.mjs",
2982 "#xp": "xyz/package.json",
2983 },
2984 "name": "@my/package",
2985 "scripts": Object {
2986 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
2987 },
2988 "tshy": Object {
2989 "exports": Object {
2990 ".": "./src/index.ts",
2991 "./foo": Object {
2992 "default": "./lib/foo-browser.js",
2993 "import": Array [
2994 Object {
2995 "types": "./lib/foo.d.mts",
2996 },
2997 "./lib/foo-import.mjs",
2998 ],
2999 "node": Object {
3000 "import": Array [
3001 Object {
3002 "types": "./lib/foo.d.mts",
3003 },
3004 "./lib/foo-node.mjs",
3005 ],
3006 "require": Array [
3007 Object {
3008 "types": "./lib/foo.d.cts",
3009 },
3010 "./lib/foo-node.cjs",
3011 ],
3012 },
3013 "require": Array [
3014 Object {
3015 "types": "./lib/foo.d.cts",
3016 },
3017 "./lib/foo-require.cjs",
3018 ],
3019 "types": "./lib/foo-global.d.ts",
3020 },
3021 "./package.json": "./package.json",
3022 },
3023 },
3024 "type": "module",
3025 },
3026 "src",
3027 ],
3028 ],
3029 Array [
3030 "imports.link",
3031 Array [
3032 Object {
3033 "exports": Object {
3034 ".": Object {
3035 "import": Object {
3036 "default": "./dist/esm/index.js",
3037 "types": "./dist/esm/index.d.ts",
3038 },
3039 "require": Object {
3040 "default": "./dist/commonjs/index.js",
3041 "types": "./dist/commonjs/index.d.ts",
3042 },
3043 },
3044 "./foo": Object {
3045 "default": "./lib/foo-browser.js",
3046 "import": Array [
3047 Object {
3048 "types": "./lib/foo.d.mts",
3049 },
3050 "./lib/foo-import.mjs",
3051 ],
3052 "node": Object {
3053 "import": Array [
3054 Object {
3055 "types": "./lib/foo.d.mts",
3056 },
3057 "./lib/foo-node.mjs",
3058 ],
3059 "require": Array [
3060 Object {
3061 "types": "./lib/foo.d.cts",
3062 },
3063 "./lib/foo-node.cjs",
3064 ],
3065 },
3066 "require": Array [
3067 Object {
3068 "types": "./lib/foo.d.cts",
3069 },
3070 "./lib/foo-require.cjs",
3071 ],
3072 "types": "./lib/foo-global.d.ts",
3073 },
3074 "./package.json": "./package.json",
3075 },
3076 "imports": Object {
3077 "#c/*": "./lib/*.cjs",
3078 "#foo": Object {
3079 "default": "./lib/foo-browser.js",
3080 "import": Array [
3081 Object {
3082 "types": "./lib/foo.d.mts",
3083 },
3084 "./lib/foo-import.mjs",
3085 ],
3086 "node": Object {
3087 "import": Array [
3088 Object {
3089 "types": "./lib/foo.d.mts",
3090 },
3091 "./lib/foo-node.mjs",
3092 ],
3093 "require": Array [
3094 Object {
3095 "types": "./lib/foo.d.cts",
3096 },
3097 "./lib/foo-node.cjs",
3098 ],
3099 },
3100 "require": Array [
3101 Object {
3102 "types": "./lib/foo.d.cts",
3103 },
3104 "./lib/foo-require.cjs",
3105 ],
3106 "types": "./lib/foo-global.d.ts",
3107 },
3108 "#fs": "node:fs",
3109 "#m/*": "./lib/*.mjs",
3110 "#ri": "resolve-import",
3111 "#ri/*": "resolve-import/*",
3112 "#root": "./root.mjs",
3113 "#xp": "xyz/package.json",
3114 },
3115 "name": "@my/package",
3116 "scripts": Object {
3117 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
3118 },
3119 "tshy": Object {
3120 "exports": Object {
3121 ".": "./src/index.ts",
3122 "./foo": Object {
3123 "default": "./lib/foo-browser.js",
3124 "import": Array [
3125 Object {
3126 "types": "./lib/foo.d.mts",
3127 },
3128 "./lib/foo-import.mjs",
3129 ],
3130 "node": Object {
3131 "import": Array [
3132 Object {
3133 "types": "./lib/foo.d.mts",
3134 },
3135 "./lib/foo-node.mjs",
3136 ],
3137 "require": Array [
3138 Object {
3139 "types": "./lib/foo.d.cts",
3140 },
3141 "./lib/foo-node.cjs",
3142 ],
3143 },
3144 "require": Array [
3145 Object {
3146 "types": "./lib/foo.d.cts",
3147 },
3148 "./lib/foo-require.cjs",
3149 ],
3150 "types": "./lib/foo-global.d.ts",
3151 },
3152 "./package.json": "./package.json",
3153 },
3154 },
3155 "type": "module",
3156 },
3157 "src",
3158 ],
3159 ],
3160 Array [
3161 "imports.unlink",
3162 Array [
3163 Object {
3164 "exports": Object {
3165 ".": Object {
3166 "import": Object {
3167 "default": "./dist/esm/index.js",
3168 "types": "./dist/esm/index.d.ts",
3169 },
3170 "require": Object {
3171 "default": "./dist/commonjs/index.js",
3172 "types": "./dist/commonjs/index.d.ts",
3173 },
3174 },
3175 "./foo": Object {
3176 "default": "./lib/foo-browser.js",
3177 "import": Array [
3178 Object {
3179 "types": "./lib/foo.d.mts",
3180 },
3181 "./lib/foo-import.mjs",
3182 ],
3183 "node": Object {
3184 "import": Array [
3185 Object {
3186 "types": "./lib/foo.d.mts",
3187 },
3188 "./lib/foo-node.mjs",
3189 ],
3190 "require": Array [
3191 Object {
3192 "types": "./lib/foo.d.cts",
3193 },
3194 "./lib/foo-node.cjs",
3195 ],
3196 },
3197 "require": Array [
3198 Object {
3199 "types": "./lib/foo.d.cts",
3200 },
3201 "./lib/foo-require.cjs",
3202 ],
3203 "types": "./lib/foo-global.d.ts",
3204 },
3205 "./package.json": "./package.json",
3206 },
3207 "imports": Object {
3208 "#c/*": "./lib/*.cjs",
3209 "#foo": Object {
3210 "default": "./lib/foo-browser.js",
3211 "import": Array [
3212 Object {
3213 "types": "./lib/foo.d.mts",
3214 },
3215 "./lib/foo-import.mjs",
3216 ],
3217 "node": Object {
3218 "import": Array [
3219 Object {
3220 "types": "./lib/foo.d.mts",
3221 },
3222 "./lib/foo-node.mjs",
3223 ],
3224 "require": Array [
3225 Object {
3226 "types": "./lib/foo.d.cts",
3227 },
3228 "./lib/foo-node.cjs",
3229 ],
3230 },
3231 "require": Array [
3232 Object {
3233 "types": "./lib/foo.d.cts",
3234 },
3235 "./lib/foo-require.cjs",
3236 ],
3237 "types": "./lib/foo-global.d.ts",
3238 },
3239 "#fs": "node:fs",
3240 "#m/*": "./lib/*.mjs",
3241 "#ri": "resolve-import",
3242 "#ri/*": "resolve-import/*",
3243 "#root": "./root.mjs",
3244 "#xp": "xyz/package.json",
3245 },
3246 "name": "@my/package",
3247 "scripts": Object {
3248 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
3249 },
3250 "tshy": Object {
3251 "exports": Object {
3252 ".": "./src/index.ts",
3253 "./foo": Object {
3254 "default": "./lib/foo-browser.js",
3255 "import": Array [
3256 Object {
3257 "types": "./lib/foo.d.mts",
3258 },
3259 "./lib/foo-import.mjs",
3260 ],
3261 "node": Object {
3262 "import": Array [
3263 Object {
3264 "types": "./lib/foo.d.mts",
3265 },
3266 "./lib/foo-node.mjs",
3267 ],
3268 "require": Array [
3269 Object {
3270 "types": "./lib/foo.d.cts",
3271 },
3272 "./lib/foo-node.cjs",
3273 ],
3274 },
3275 "require": Array [
3276 Object {
3277 "types": "./lib/foo.d.cts",
3278 },
3279 "./lib/foo-require.cjs",
3280 ],
3281 "types": "./lib/foo-global.d.ts",
3282 },
3283 "./package.json": "./package.json",
3284 },
3285 },
3286 "type": "module",
3287 },
3288 "src",
3289 ],
3290 ],
3291 Array [
3292 "self-link.unlink",
3293 Array [
3294 Object {
3295 "exports": Object {
3296 ".": Object {
3297 "import": Object {
3298 "default": "./dist/esm/index.js",
3299 "types": "./dist/esm/index.d.ts",
3300 },
3301 "require": Object {
3302 "default": "./dist/commonjs/index.js",
3303 "types": "./dist/commonjs/index.d.ts",
3304 },
3305 },
3306 "./foo": Object {
3307 "default": "./lib/foo-browser.js",
3308 "import": Array [
3309 Object {
3310 "types": "./lib/foo.d.mts",
3311 },
3312 "./lib/foo-import.mjs",
3313 ],
3314 "node": Object {
3315 "import": Array [
3316 Object {
3317 "types": "./lib/foo.d.mts",
3318 },
3319 "./lib/foo-node.mjs",
3320 ],
3321 "require": Array [
3322 Object {
3323 "types": "./lib/foo.d.cts",
3324 },
3325 "./lib/foo-node.cjs",
3326 ],
3327 },
3328 "require": Array [
3329 Object {
3330 "types": "./lib/foo.d.cts",
3331 },
3332 "./lib/foo-require.cjs",
3333 ],
3334 "types": "./lib/foo-global.d.ts",
3335 },
3336 "./package.json": "./package.json",
3337 },
3338 "imports": Object {
3339 "#c/*": "./lib/*.cjs",
3340 "#foo": Object {
3341 "default": "./lib/foo-browser.js",
3342 "import": Array [
3343 Object {
3344 "types": "./lib/foo.d.mts",
3345 },
3346 "./lib/foo-import.mjs",
3347 ],
3348 "node": Object {
3349 "import": Array [
3350 Object {
3351 "types": "./lib/foo.d.mts",
3352 },
3353 "./lib/foo-node.mjs",
3354 ],
3355 "require": Array [
3356 Object {
3357 "types": "./lib/foo.d.cts",
3358 },
3359 "./lib/foo-node.cjs",
3360 ],
3361 },
3362 "require": Array [
3363 Object {
3364 "types": "./lib/foo.d.cts",
3365 },
3366 "./lib/foo-require.cjs",
3367 ],
3368 "types": "./lib/foo-global.d.ts",
3369 },
3370 "#fs": "node:fs",
3371 "#m/*": "./lib/*.mjs",
3372 "#ri": "resolve-import",
3373 "#ri/*": "resolve-import/*",
3374 "#root": "./root.mjs",
3375 "#xp": "xyz/package.json",
3376 },
3377 "name": "@my/package",
3378 "scripts": Object {
3379 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
3380 },
3381 "tshy": Object {
3382 "exports": Object {
3383 ".": "./src/index.ts",
3384 "./foo": Object {
3385 "default": "./lib/foo-browser.js",
3386 "import": Array [
3387 Object {
3388 "types": "./lib/foo.d.mts",
3389 },
3390 "./lib/foo-import.mjs",
3391 ],
3392 "node": Object {
3393 "import": Array [
3394 Object {
3395 "types": "./lib/foo.d.mts",
3396 },
3397 "./lib/foo-node.mjs",
3398 ],
3399 "require": Array [
3400 Object {
3401 "types": "./lib/foo.d.cts",
3402 },
3403 "./lib/foo-node.cjs",
3404 ],
3405 },
3406 "require": Array [
3407 Object {
3408 "types": "./lib/foo.d.cts",
3409 },
3410 "./lib/foo-require.cjs",
3411 ],
3412 "types": "./lib/foo-global.d.ts",
3413 },
3414 "./package.json": "./package.json",
3415 },
3416 },
3417 "type": "module",
3418 },
3419 "src",
3420 ],
3421 ],
3422 Array [
3423 "self-link.link",
3424 Array [
3425 Object {
3426 "exports": Object {
3427 ".": Object {
3428 "import": Object {
3429 "default": "./dist/esm/index.js",
3430 "types": "./dist/esm/index.d.ts",
3431 },
3432 "require": Object {
3433 "default": "./dist/commonjs/index.js",
3434 "types": "./dist/commonjs/index.d.ts",
3435 },
3436 },
3437 "./foo": Object {
3438 "default": "./lib/foo-browser.js",
3439 "import": Array [
3440 Object {
3441 "types": "./lib/foo.d.mts",
3442 },
3443 "./lib/foo-import.mjs",
3444 ],
3445 "node": Object {
3446 "import": Array [
3447 Object {
3448 "types": "./lib/foo.d.mts",
3449 },
3450 "./lib/foo-node.mjs",
3451 ],
3452 "require": Array [
3453 Object {
3454 "types": "./lib/foo.d.cts",
3455 },
3456 "./lib/foo-node.cjs",
3457 ],
3458 },
3459 "require": Array [
3460 Object {
3461 "types": "./lib/foo.d.cts",
3462 },
3463 "./lib/foo-require.cjs",
3464 ],
3465 "types": "./lib/foo-global.d.ts",
3466 },
3467 "./package.json": "./package.json",
3468 },
3469 "imports": Object {
3470 "#c/*": "./lib/*.cjs",
3471 "#foo": Object {
3472 "default": "./lib/foo-browser.js",
3473 "import": Array [
3474 Object {
3475 "types": "./lib/foo.d.mts",
3476 },
3477 "./lib/foo-import.mjs",
3478 ],
3479 "node": Object {
3480 "import": Array [
3481 Object {
3482 "types": "./lib/foo.d.mts",
3483 },
3484 "./lib/foo-node.mjs",
3485 ],
3486 "require": Array [
3487 Object {
3488 "types": "./lib/foo.d.cts",
3489 },
3490 "./lib/foo-node.cjs",
3491 ],
3492 },
3493 "require": Array [
3494 Object {
3495 "types": "./lib/foo.d.cts",
3496 },
3497 "./lib/foo-require.cjs",
3498 ],
3499 "types": "./lib/foo-global.d.ts",
3500 },
3501 "#fs": "node:fs",
3502 "#m/*": "./lib/*.mjs",
3503 "#ri": "resolve-import",
3504 "#ri/*": "resolve-import/*",
3505 "#root": "./root.mjs",
3506 "#xp": "xyz/package.json",
3507 },
3508 "name": "@my/package",
3509 "scripts": Object {
3510 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
3511 },
3512 "tshy": Object {
3513 "exports": Object {
3514 ".": "./src/index.ts",
3515 "./foo": Object {
3516 "default": "./lib/foo-browser.js",
3517 "import": Array [
3518 Object {
3519 "types": "./lib/foo.d.mts",
3520 },
3521 "./lib/foo-import.mjs",
3522 ],
3523 "node": Object {
3524 "import": Array [
3525 Object {
3526 "types": "./lib/foo.d.mts",
3527 },
3528 "./lib/foo-node.mjs",
3529 ],
3530 "require": Array [
3531 Object {
3532 "types": "./lib/foo.d.cts",
3533 },
3534 "./lib/foo-node.cjs",
3535 ],
3536 },
3537 "require": Array [
3538 Object {
3539 "types": "./lib/foo.d.cts",
3540 },
3541 "./lib/foo-require.cjs",
3542 ],
3543 "types": "./lib/foo-global.d.ts",
3544 },
3545 "./package.json": "./package.json",
3546 },
3547 },
3548 "type": "module",
3549 },
3550 "dist",
3551 ],
3552 ],
3553 Array [
3554 "imports.link",
3555 Array [
3556 Object {
3557 "exports": Object {
3558 ".": Object {
3559 "import": Object {
3560 "default": "./dist/esm/index.js",
3561 "types": "./dist/esm/index.d.ts",
3562 },
3563 "require": Object {
3564 "default": "./dist/commonjs/index.js",
3565 "types": "./dist/commonjs/index.d.ts",
3566 },
3567 },
3568 "./foo": Object {
3569 "default": "./lib/foo-browser.js",
3570 "import": Array [
3571 Object {
3572 "types": "./lib/foo.d.mts",
3573 },
3574 "./lib/foo-import.mjs",
3575 ],
3576 "node": Object {
3577 "import": Array [
3578 Object {
3579 "types": "./lib/foo.d.mts",
3580 },
3581 "./lib/foo-node.mjs",
3582 ],
3583 "require": Array [
3584 Object {
3585 "types": "./lib/foo.d.cts",
3586 },
3587 "./lib/foo-node.cjs",
3588 ],
3589 },
3590 "require": Array [
3591 Object {
3592 "types": "./lib/foo.d.cts",
3593 },
3594 "./lib/foo-require.cjs",
3595 ],
3596 "types": "./lib/foo-global.d.ts",
3597 },
3598 "./package.json": "./package.json",
3599 },
3600 "imports": Object {
3601 "#c/*": "./lib/*.cjs",
3602 "#foo": Object {
3603 "default": "./lib/foo-browser.js",
3604 "import": Array [
3605 Object {
3606 "types": "./lib/foo.d.mts",
3607 },
3608 "./lib/foo-import.mjs",
3609 ],
3610 "node": Object {
3611 "import": Array [
3612 Object {
3613 "types": "./lib/foo.d.mts",
3614 },
3615 "./lib/foo-node.mjs",
3616 ],
3617 "require": Array [
3618 Object {
3619 "types": "./lib/foo.d.cts",
3620 },
3621 "./lib/foo-node.cjs",
3622 ],
3623 },
3624 "require": Array [
3625 Object {
3626 "types": "./lib/foo.d.cts",
3627 },
3628 "./lib/foo-require.cjs",
3629 ],
3630 "types": "./lib/foo-global.d.ts",
3631 },
3632 "#fs": "node:fs",
3633 "#m/*": "./lib/*.mjs",
3634 "#ri": "resolve-import",
3635 "#ri/*": "resolve-import/*",
3636 "#root": "./root.mjs",
3637 "#xp": "xyz/package.json",
3638 },
3639 "name": "@my/package",
3640 "scripts": Object {
3641 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
3642 },
3643 "tshy": Object {
3644 "exports": Object {
3645 ".": "./src/index.ts",
3646 "./foo": Object {
3647 "default": "./lib/foo-browser.js",
3648 "import": Array [
3649 Object {
3650 "types": "./lib/foo.d.mts",
3651 },
3652 "./lib/foo-import.mjs",
3653 ],
3654 "node": Object {
3655 "import": Array [
3656 Object {
3657 "types": "./lib/foo.d.mts",
3658 },
3659 "./lib/foo-node.mjs",
3660 ],
3661 "require": Array [
3662 Object {
3663 "types": "./lib/foo.d.cts",
3664 },
3665 "./lib/foo-node.cjs",
3666 ],
3667 },
3668 "require": Array [
3669 Object {
3670 "types": "./lib/foo.d.cts",
3671 },
3672 "./lib/foo-require.cjs",
3673 ],
3674 "types": "./lib/foo-global.d.ts",
3675 },
3676 "./package.json": "./package.json",
3677 },
3678 },
3679 "type": "module",
3680 },
3681 "dist/commonjs",
3682 true,
3683 ],
3684 ],
3685 Array [
3686 "imports.link",
3687 Array [
3688 Object {
3689 "exports": Object {
3690 ".": Object {
3691 "import": Object {
3692 "default": "./dist/esm/index.js",
3693 "types": "./dist/esm/index.d.ts",
3694 },
3695 "require": Object {
3696 "default": "./dist/commonjs/index.js",
3697 "types": "./dist/commonjs/index.d.ts",
3698 },
3699 },
3700 "./foo": Object {
3701 "default": "./lib/foo-browser.js",
3702 "import": Array [
3703 Object {
3704 "types": "./lib/foo.d.mts",
3705 },
3706 "./lib/foo-import.mjs",
3707 ],
3708 "node": Object {
3709 "import": Array [
3710 Object {
3711 "types": "./lib/foo.d.mts",
3712 },
3713 "./lib/foo-node.mjs",
3714 ],
3715 "require": Array [
3716 Object {
3717 "types": "./lib/foo.d.cts",
3718 },
3719 "./lib/foo-node.cjs",
3720 ],
3721 },
3722 "require": Array [
3723 Object {
3724 "types": "./lib/foo.d.cts",
3725 },
3726 "./lib/foo-require.cjs",
3727 ],
3728 "types": "./lib/foo-global.d.ts",
3729 },
3730 "./package.json": "./package.json",
3731 },
3732 "imports": Object {
3733 "#c/*": "./lib/*.cjs",
3734 "#foo": Object {
3735 "default": "./lib/foo-browser.js",
3736 "import": Array [
3737 Object {
3738 "types": "./lib/foo.d.mts",
3739 },
3740 "./lib/foo-import.mjs",
3741 ],
3742 "node": Object {
3743 "import": Array [
3744 Object {
3745 "types": "./lib/foo.d.mts",
3746 },
3747 "./lib/foo-node.mjs",
3748 ],
3749 "require": Array [
3750 Object {
3751 "types": "./lib/foo.d.cts",
3752 },
3753 "./lib/foo-node.cjs",
3754 ],
3755 },
3756 "require": Array [
3757 Object {
3758 "types": "./lib/foo.d.cts",
3759 },
3760 "./lib/foo-require.cjs",
3761 ],
3762 "types": "./lib/foo-global.d.ts",
3763 },
3764 "#fs": "node:fs",
3765 "#m/*": "./lib/*.mjs",
3766 "#ri": "resolve-import",
3767 "#ri/*": "resolve-import/*",
3768 "#root": "./root.mjs",
3769 "#xp": "xyz/package.json",
3770 },
3771 "name": "@my/package",
3772 "scripts": Object {
3773 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
3774 },
3775 "tshy": Object {
3776 "exports": Object {
3777 ".": "./src/index.ts",
3778 "./foo": Object {
3779 "default": "./lib/foo-browser.js",
3780 "import": Array [
3781 Object {
3782 "types": "./lib/foo.d.mts",
3783 },
3784 "./lib/foo-import.mjs",
3785 ],
3786 "node": Object {
3787 "import": Array [
3788 Object {
3789 "types": "./lib/foo.d.mts",
3790 },
3791 "./lib/foo-node.mjs",
3792 ],
3793 "require": Array [
3794 Object {
3795 "types": "./lib/foo.d.cts",
3796 },
3797 "./lib/foo-node.cjs",
3798 ],
3799 },
3800 "require": Array [
3801 Object {
3802 "types": "./lib/foo.d.cts",
3803 },
3804 "./lib/foo-require.cjs",
3805 ],
3806 "types": "./lib/foo-global.d.ts",
3807 },
3808 "./package.json": "./package.json",
3809 },
3810 },
3811 "type": "module",
3812 },
3813 "dist/esm",
3814 true,
3815 ],
3816 ],
3817 Array [
3818 "imports.save",
3819 Array [
3820 "dist/.tshy-link-imports.mjs",
3821 ],
3822 ],
3823 Array [
3824 "self-link.link",
3825 Array [
3826 Object {
3827 "name": "@my/package",
3828 "tshy": Object {
3829 "exports": Object {
3830 ".": "./src/index.ts",
3831 "./package.json": "./package.json",
3832 },
3833 },
3834 "type": "module",
3835 },
3836 "src",
3837 ],
3838 ],
3839 Array [
3840 "imports.link",
3841 Array [
3842 Object {
3843 "name": "@my/package",
3844 "tshy": Object {
3845 "exports": Object {
3846 ".": "./src/index.ts",
3847 "./package.json": "./package.json",
3848 },
3849 },
3850 "type": "module",
3851 },
3852 "src",
3853 ],
3854 ],
3855 Array [
3856 "imports.unlink",
3857 Array [
3858 Object {
3859 "name": "@my/package",
3860 "tshy": Object {
3861 "exports": Object {
3862 ".": "./src/index.ts",
3863 "./package.json": "./package.json",
3864 },
3865 },
3866 "type": "module",
3867 },
3868 "src",
3869 ],
3870 ],
3871 Array [
3872 "self-link.unlink",
3873 Array [
3874 Object {
3875 "name": "@my/package",
3876 "tshy": Object {
3877 "exports": Object {
3878 ".": "./src/index.ts",
3879 "./package.json": "./package.json",
3880 },
3881 },
3882 "type": "module",
3883 },
3884 "src",
3885 ],
3886 ],
3887 Array [
3888 "self-link.link",
3889 Array [
3890 Object {
3891 "name": "@my/package",
3892 "tshy": Object {
3893 "exports": Object {
3894 ".": "./src/index.ts",
3895 "./package.json": "./package.json",
3896 },
3897 },
3898 "type": "module",
3899 },
3900 "dist",
3901 ],
3902 ],
3903 ]
3904 `
3905
3906 exports[`test/build.ts > TAP > imports linking > imports > must match snapshot 1`] = `
3907 Array [
3908 Array [
3909 "self-link.link",
3910 Array [
3911 Object {
3912 "tshy": Object {
3913 "dialects": Array [
3914 "esm",
3915 "commonjs",
3916 ],
3917 "exports": Object {
3918 ".": "./src/index.ts",
3919 "./package.json": "./package.json",
3920 },
3921 },
3922 },
3923 "src",
3924 ],
3925 ],
3926 Array [
3927 "imports.link",
3928 Array [
3929 Object {
3930 "tshy": Object {
3931 "dialects": Array [
3932 "esm",
3933 "commonjs",
3934 ],
3935 "exports": Object {
3936 ".": "./src/index.ts",
3937 "./package.json": "./package.json",
3938 },
3939 },
3940 },
3941 "src",
3942 ],
3943 ],
3944 Array [
3945 "imports.unlink",
3946 Array [
3947 Object {
3948 "tshy": Object {
3949 "dialects": Array [
3950 "esm",
3951 "commonjs",
3952 ],
3953 "exports": Object {
3954 ".": "./src/index.ts",
3955 "./package.json": "./package.json",
3956 },
3957 },
3958 },
3959 "src",
3960 ],
3961 ],
3962 Array [
3963 "self-link.unlink",
3964 Array [
3965 Object {
3966 "tshy": Object {
3967 "dialects": Array [
3968 "esm",
3969 "commonjs",
3970 ],
3971 "exports": Object {
3972 ".": "./src/index.ts",
3973 "./package.json": "./package.json",
3974 },
3975 },
3976 },
3977 "src",
3978 ],
3979 ],
3980 Array [
3981 "self-link.link",
3982 Array [
3983 Object {
3984 "tshy": Object {
3985 "dialects": Array [
3986 "esm",
3987 "commonjs",
3988 ],
3989 "exports": Object {
3990 ".": "./src/index.ts",
3991 "./package.json": "./package.json",
3992 },
3993 },
3994 },
3995 "dist",
3996 ],
3997 ],
3998 Array [
3999 "self-link.link",
4000 Array [
4001 Object {
4002 "tshy": Object {
4003 "dialects": Array [
4004 "esm",
4005 "commonjs",
4006 ],
4007 "exports": Object {
4008 ".": "./src/index.ts",
4009 "./package.json": "./package.json",
4010 },
4011 },
4012 },
4013 "src",
4014 ],
4015 ],
4016 Array [
4017 "imports.link",
4018 Array [
4019 Object {
4020 "tshy": Object {
4021 "dialects": Array [
4022 "esm",
4023 "commonjs",
4024 ],
4025 "exports": Object {
4026 ".": "./src/index.ts",
4027 "./package.json": "./package.json",
4028 },
4029 },
4030 },
4031 "src",
4032 ],
4033 ],
4034 Array [
4035 "imports.unlink",
4036 Array [
4037 Object {
4038 "tshy": Object {
4039 "dialects": Array [
4040 "esm",
4041 "commonjs",
4042 ],
4043 "exports": Object {
4044 ".": "./src/index.ts",
4045 "./package.json": "./package.json",
4046 },
4047 },
4048 },
4049 "src",
4050 ],
4051 ],
4052 Array [
4053 "self-link.unlink",
4054 Array [
4055 Object {
4056 "tshy": Object {
4057 "dialects": Array [
4058 "esm",
4059 "commonjs",
4060 ],
4061 "exports": Object {
4062 ".": "./src/index.ts",
4063 "./package.json": "./package.json",
4064 },
4065 },
4066 },
4067 "src",
4068 ],
4069 ],
4070 Array [
4071 "self-link.link",
4072 Array [
4073 Object {
4074 "tshy": Object {
4075 "dialects": Array [
4076 "esm",
4077 "commonjs",
4078 ],
4079 "exports": Object {
4080 ".": "./src/index.ts",
4081 "./package.json": "./package.json",
4082 },
4083 },
4084 },
4085 "dist",
4086 ],
4087 ],
4088 Array [
4089 "self-link.link",
4090 Array [
4091 Object {
4092 "tshy": Object {
4093 "dialects": Array [
4094 "esm",
4095 "commonjs",
4096 ],
4097 "exports": Object {
4098 ".": "./src/index.ts",
4099 "./package.json": "./package.json",
4100 },
4101 },
4102 },
4103 "src",
4104 ],
4105 ],
4106 Array [
4107 "imports.link",
4108 Array [
4109 Object {
4110 "tshy": Object {
4111 "dialects": Array [
4112 "esm",
4113 "commonjs",
4114 ],
4115 "exports": Object {
4116 ".": "./src/index.ts",
4117 "./package.json": "./package.json",
4118 },
4119 },
4120 },
4121 "src",
4122 ],
4123 ],
4124 Array [
4125 "imports.unlink",
4126 Array [
4127 Object {
4128 "tshy": Object {
4129 "dialects": Array [
4130 "esm",
4131 "commonjs",
4132 ],
4133 "exports": Object {
4134 ".": "./src/index.ts",
4135 "./package.json": "./package.json",
4136 },
4137 },
4138 },
4139 "src",
4140 ],
4141 ],
4142 Array [
4143 "self-link.unlink",
4144 Array [
4145 Object {
4146 "tshy": Object {
4147 "dialects": Array [
4148 "esm",
4149 "commonjs",
4150 ],
4151 "exports": Object {
4152 ".": "./src/index.ts",
4153 "./package.json": "./package.json",
4154 },
4155 },
4156 },
4157 "src",
4158 ],
4159 ],
4160 Array [
4161 "self-link.link",
4162 Array [
4163 Object {
4164 "tshy": Object {
4165 "dialects": Array [
4166 "esm",
4167 "commonjs",
4168 ],
4169 "exports": Object {
4170 ".": "./src/index.ts",
4171 "./package.json": "./package.json",
4172 },
4173 },
4174 },
4175 "dist",
4176 ],
4177 ],
4178 Array [
4179 "self-link.link",
4180 Array [
4181 Object {
4182 "tshy": Object {
4183 "dialects": Array [
4184 "esm",
4185 "commonjs",
4186 ],
4187 "exports": Object {
4188 ".": "./src/index.ts",
4189 "./package.json": "./package.json",
4190 },
4191 },
4192 },
4193 "src",
4194 ],
4195 ],
4196 Array [
4197 "imports.link",
4198 Array [
4199 Object {
4200 "tshy": Object {
4201 "dialects": Array [
4202 "esm",
4203 "commonjs",
4204 ],
4205 "exports": Object {
4206 ".": "./src/index.ts",
4207 "./package.json": "./package.json",
4208 },
4209 },
4210 },
4211 "src",
4212 ],
4213 ],
4214 Array [
4215 "imports.unlink",
4216 Array [
4217 Object {
4218 "tshy": Object {
4219 "dialects": Array [
4220 "esm",
4221 "commonjs",
4222 ],
4223 "exports": Object {
4224 ".": "./src/index.ts",
4225 "./package.json": "./package.json",
4226 },
4227 },
4228 },
4229 "src",
4230 ],
4231 ],
4232 Array [
4233 "self-link.unlink",
4234 Array [
4235 Object {
4236 "tshy": Object {
4237 "dialects": Array [
4238 "esm",
4239 "commonjs",
4240 ],
4241 "exports": Object {
4242 ".": "./src/index.ts",
4243 "./package.json": "./package.json",
4244 },
4245 },
4246 },
4247 "src",
4248 ],
4249 ],
4250 Array [
4251 "self-link.link",
4252 Array [
4253 Object {
4254 "tshy": Object {
4255 "dialects": Array [
4256 "esm",
4257 "commonjs",
4258 ],
4259 "exports": Object {
4260 ".": "./src/index.ts",
4261 "./package.json": "./package.json",
4262 },
4263 },
4264 },
4265 "dist",
4266 ],
4267 ],
4268 Array [
4269 "self-link.link",
4270 Array [
4271 Object {
4272 "tshy": Object {
4273 "dialects": Array [
4274 "esm",
4275 "commonjs",
4276 ],
4277 "exports": Object {
4278 ".": "./src/index.ts",
4279 "./package.json": "./package.json",
4280 },
4281 },
4282 },
4283 "src",
4284 ],
4285 ],
4286 Array [
4287 "imports.link",
4288 Array [
4289 Object {
4290 "tshy": Object {
4291 "dialects": Array [
4292 "esm",
4293 "commonjs",
4294 ],
4295 "exports": Object {
4296 ".": "./src/index.ts",
4297 "./package.json": "./package.json",
4298 },
4299 },
4300 },
4301 "src",
4302 ],
4303 ],
4304 Array [
4305 "imports.unlink",
4306 Array [
4307 Object {
4308 "tshy": Object {
4309 "dialects": Array [
4310 "esm",
4311 "commonjs",
4312 ],
4313 "exports": Object {
4314 ".": "./src/index.ts",
4315 "./package.json": "./package.json",
4316 },
4317 },
4318 },
4319 "src",
4320 ],
4321 ],
4322 Array [
4323 "self-link.unlink",
4324 Array [
4325 Object {
4326 "tshy": Object {
4327 "dialects": Array [
4328 "esm",
4329 "commonjs",
4330 ],
4331 "exports": Object {
4332 ".": "./src/index.ts",
4333 "./package.json": "./package.json",
4334 },
4335 },
4336 },
4337 "src",
4338 ],
4339 ],
4340 Array [
4341 "self-link.link",
4342 Array [
4343 Object {
4344 "tshy": Object {
4345 "dialects": Array [
4346 "esm",
4347 "commonjs",
4348 ],
4349 "exports": Object {
4350 ".": "./src/index.ts",
4351 "./package.json": "./package.json",
4352 },
4353 },
4354 },
4355 "dist",
4356 ],
4357 ],
4358 Array [
4359 "self-link.link",
4360 Array [
4361 Object {
4362 "tshy": Object {
4363 "dialects": Array [
4364 "esm",
4365 "commonjs",
4366 ],
4367 "exports": Object {
4368 ".": "./src/index.ts",
4369 "./package.json": "./package.json",
4370 },
4371 },
4372 },
4373 "src",
4374 ],
4375 ],
4376 Array [
4377 "imports.link",
4378 Array [
4379 Object {
4380 "tshy": Object {
4381 "dialects": Array [
4382 "esm",
4383 "commonjs",
4384 ],
4385 "exports": Object {
4386 ".": "./src/index.ts",
4387 "./package.json": "./package.json",
4388 },
4389 },
4390 },
4391 "src",
4392 ],
4393 ],
4394 Array [
4395 "imports.unlink",
4396 Array [
4397 Object {
4398 "tshy": Object {
4399 "dialects": Array [
4400 "esm",
4401 "commonjs",
4402 ],
4403 "exports": Object {
4404 ".": "./src/index.ts",
4405 "./package.json": "./package.json",
4406 },
4407 },
4408 },
4409 "src",
4410 ],
4411 ],
4412 Array [
4413 "self-link.unlink",
4414 Array [
4415 Object {
4416 "tshy": Object {
4417 "dialects": Array [
4418 "esm",
4419 "commonjs",
4420 ],
4421 "exports": Object {
4422 ".": "./src/index.ts",
4423 "./package.json": "./package.json",
4424 },
4425 },
4426 },
4427 "src",
4428 ],
4429 ],
4430 Array [
4431 "self-link.link",
4432 Array [
4433 Object {
4434 "tshy": Object {
4435 "dialects": Array [
4436 "esm",
4437 "commonjs",
4438 ],
4439 "exports": Object {
4440 ".": "./src/index.ts",
4441 "./package.json": "./package.json",
4442 },
4443 },
4444 },
4445 "dist",
4446 ],
4447 ],
4448 Array [
4449 "self-link.link",
4450 Array [
4451 Object {
4452 "tshy": Object {
4453 "dialects": Array [
4454 "esm",
4455 "commonjs",
4456 ],
4457 "exports": Object {
4458 ".": "./src/index.ts",
4459 "./package.json": "./package.json",
4460 },
4461 },
4462 },
4463 "src",
4464 ],
4465 ],
4466 Array [
4467 "imports.link",
4468 Array [
4469 Object {
4470 "tshy": Object {
4471 "dialects": Array [
4472 "esm",
4473 "commonjs",
4474 ],
4475 "exports": Object {
4476 ".": "./src/index.ts",
4477 "./package.json": "./package.json",
4478 },
4479 },
4480 },
4481 "src",
4482 ],
4483 ],
4484 Array [
4485 "imports.unlink",
4486 Array [
4487 Object {
4488 "tshy": Object {
4489 "dialects": Array [
4490 "esm",
4491 "commonjs",
4492 ],
4493 "exports": Object {
4494 ".": "./src/index.ts",
4495 "./package.json": "./package.json",
4496 },
4497 },
4498 },
4499 "src",
4500 ],
4501 ],
4502 Array [
4503 "self-link.unlink",
4504 Array [
4505 Object {
4506 "tshy": Object {
4507 "dialects": Array [
4508 "esm",
4509 "commonjs",
4510 ],
4511 "exports": Object {
4512 ".": "./src/index.ts",
4513 "./package.json": "./package.json",
4514 },
4515 },
4516 },
4517 "src",
4518 ],
4519 ],
4520 Array [
4521 "self-link.link",
4522 Array [
4523 Object {
4524 "tshy": Object {
4525 "dialects": Array [
4526 "esm",
4527 "commonjs",
4528 ],
4529 "exports": Object {
4530 ".": "./src/index.ts",
4531 "./package.json": "./package.json",
4532 },
4533 },
4534 },
4535 "dist",
4536 ],
4537 ],
4538 Array [
4539 "self-link.link",
4540 Array [
4541 Object {
4542 "imports": Object {
4543 "#foo": Object {
4544 "default": "./lib/foo-browser.js",
4545 "import": Array [
4546 Object {
4547 "types": "./lib/foo.d.mts",
4548 },
4549 "./lib/foo-import.mjs",
4550 ],
4551 "node": Object {
4552 "import": Array [
4553 Object {
4554 "types": "./lib/foo.d.mts",
4555 },
4556 "./lib/foo-node.mjs",
4557 ],
4558 "require": Array [
4559 Object {
4560 "types": "./lib/foo.d.cts",
4561 },
4562 "./lib/foo-node.cjs",
4563 ],
4564 },
4565 "require": Array [
4566 Object {
4567 "types": "./lib/foo.d.cts",
4568 },
4569 "./lib/foo-require.cjs",
4570 ],
4571 "types": "./lib/foo-global.d.ts",
4572 },
4573 "#fs": "node:fs",
4574 "#ri": "resolve-import",
4575 "#root": "./root.mjs",
4576 "#xp": "xyz/package.json",
4577 },
4578 "name": "@my/package",
4579 "scripts": Object {
4580 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
4581 },
4582 "tshy": Object {
4583 "exports": Object {
4584 ".": "./src/index.ts",
4585 "./foo": Object {
4586 "default": "./lib/foo-browser.js",
4587 "import": Array [
4588 Object {
4589 "types": "./lib/foo.d.mts",
4590 },
4591 "./lib/foo-import.mjs",
4592 ],
4593 "node": Object {
4594 "import": Array [
4595 Object {
4596 "types": "./lib/foo.d.mts",
4597 },
4598 "./lib/foo-node.mjs",
4599 ],
4600 "require": Array [
4601 Object {
4602 "types": "./lib/foo.d.cts",
4603 },
4604 "./lib/foo-node.cjs",
4605 ],
4606 },
4607 "require": Array [
4608 Object {
4609 "types": "./lib/foo.d.cts",
4610 },
4611 "./lib/foo-require.cjs",
4612 ],
4613 "types": "./lib/foo-global.d.ts",
4614 },
4615 "./package.json": "./package.json",
4616 },
4617 },
4618 "type": "module",
4619 },
4620 "src",
4621 ],
4622 ],
4623 Array [
4624 "imports.link",
4625 Array [
4626 Object {
4627 "imports": Object {
4628 "#foo": Object {
4629 "default": "./lib/foo-browser.js",
4630 "import": Array [
4631 Object {
4632 "types": "./lib/foo.d.mts",
4633 },
4634 "./lib/foo-import.mjs",
4635 ],
4636 "node": Object {
4637 "import": Array [
4638 Object {
4639 "types": "./lib/foo.d.mts",
4640 },
4641 "./lib/foo-node.mjs",
4642 ],
4643 "require": Array [
4644 Object {
4645 "types": "./lib/foo.d.cts",
4646 },
4647 "./lib/foo-node.cjs",
4648 ],
4649 },
4650 "require": Array [
4651 Object {
4652 "types": "./lib/foo.d.cts",
4653 },
4654 "./lib/foo-require.cjs",
4655 ],
4656 "types": "./lib/foo-global.d.ts",
4657 },
4658 "#fs": "node:fs",
4659 "#ri": "resolve-import",
4660 "#root": "./root.mjs",
4661 "#xp": "xyz/package.json",
4662 },
4663 "name": "@my/package",
4664 "scripts": Object {
4665 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
4666 },
4667 "tshy": Object {
4668 "exports": Object {
4669 ".": "./src/index.ts",
4670 "./foo": Object {
4671 "default": "./lib/foo-browser.js",
4672 "import": Array [
4673 Object {
4674 "types": "./lib/foo.d.mts",
4675 },
4676 "./lib/foo-import.mjs",
4677 ],
4678 "node": Object {
4679 "import": Array [
4680 Object {
4681 "types": "./lib/foo.d.mts",
4682 },
4683 "./lib/foo-node.mjs",
4684 ],
4685 "require": Array [
4686 Object {
4687 "types": "./lib/foo.d.cts",
4688 },
4689 "./lib/foo-node.cjs",
4690 ],
4691 },
4692 "require": Array [
4693 Object {
4694 "types": "./lib/foo.d.cts",
4695 },
4696 "./lib/foo-require.cjs",
4697 ],
4698 "types": "./lib/foo-global.d.ts",
4699 },
4700 "./package.json": "./package.json",
4701 },
4702 },
4703 "type": "module",
4704 },
4705 "src",
4706 ],
4707 ],
4708 Array [
4709 "imports.unlink",
4710 Array [
4711 Object {
4712 "imports": Object {
4713 "#foo": Object {
4714 "default": "./lib/foo-browser.js",
4715 "import": Array [
4716 Object {
4717 "types": "./lib/foo.d.mts",
4718 },
4719 "./lib/foo-import.mjs",
4720 ],
4721 "node": Object {
4722 "import": Array [
4723 Object {
4724 "types": "./lib/foo.d.mts",
4725 },
4726 "./lib/foo-node.mjs",
4727 ],
4728 "require": Array [
4729 Object {
4730 "types": "./lib/foo.d.cts",
4731 },
4732 "./lib/foo-node.cjs",
4733 ],
4734 },
4735 "require": Array [
4736 Object {
4737 "types": "./lib/foo.d.cts",
4738 },
4739 "./lib/foo-require.cjs",
4740 ],
4741 "types": "./lib/foo-global.d.ts",
4742 },
4743 "#fs": "node:fs",
4744 "#ri": "resolve-import",
4745 "#root": "./root.mjs",
4746 "#xp": "xyz/package.json",
4747 },
4748 "name": "@my/package",
4749 "scripts": Object {
4750 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
4751 },
4752 "tshy": Object {
4753 "exports": Object {
4754 ".": "./src/index.ts",
4755 "./foo": Object {
4756 "default": "./lib/foo-browser.js",
4757 "import": Array [
4758 Object {
4759 "types": "./lib/foo.d.mts",
4760 },
4761 "./lib/foo-import.mjs",
4762 ],
4763 "node": Object {
4764 "import": Array [
4765 Object {
4766 "types": "./lib/foo.d.mts",
4767 },
4768 "./lib/foo-node.mjs",
4769 ],
4770 "require": Array [
4771 Object {
4772 "types": "./lib/foo.d.cts",
4773 },
4774 "./lib/foo-node.cjs",
4775 ],
4776 },
4777 "require": Array [
4778 Object {
4779 "types": "./lib/foo.d.cts",
4780 },
4781 "./lib/foo-require.cjs",
4782 ],
4783 "types": "./lib/foo-global.d.ts",
4784 },
4785 "./package.json": "./package.json",
4786 },
4787 },
4788 "type": "module",
4789 },
4790 "src",
4791 ],
4792 ],
4793 Array [
4794 "self-link.unlink",
4795 Array [
4796 Object {
4797 "imports": Object {
4798 "#foo": Object {
4799 "default": "./lib/foo-browser.js",
4800 "import": Array [
4801 Object {
4802 "types": "./lib/foo.d.mts",
4803 },
4804 "./lib/foo-import.mjs",
4805 ],
4806 "node": Object {
4807 "import": Array [
4808 Object {
4809 "types": "./lib/foo.d.mts",
4810 },
4811 "./lib/foo-node.mjs",
4812 ],
4813 "require": Array [
4814 Object {
4815 "types": "./lib/foo.d.cts",
4816 },
4817 "./lib/foo-node.cjs",
4818 ],
4819 },
4820 "require": Array [
4821 Object {
4822 "types": "./lib/foo.d.cts",
4823 },
4824 "./lib/foo-require.cjs",
4825 ],
4826 "types": "./lib/foo-global.d.ts",
4827 },
4828 "#fs": "node:fs",
4829 "#ri": "resolve-import",
4830 "#root": "./root.mjs",
4831 "#xp": "xyz/package.json",
4832 },
4833 "name": "@my/package",
4834 "scripts": Object {
4835 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
4836 },
4837 "tshy": Object {
4838 "exports": Object {
4839 ".": "./src/index.ts",
4840 "./foo": Object {
4841 "default": "./lib/foo-browser.js",
4842 "import": Array [
4843 Object {
4844 "types": "./lib/foo.d.mts",
4845 },
4846 "./lib/foo-import.mjs",
4847 ],
4848 "node": Object {
4849 "import": Array [
4850 Object {
4851 "types": "./lib/foo.d.mts",
4852 },
4853 "./lib/foo-node.mjs",
4854 ],
4855 "require": Array [
4856 Object {
4857 "types": "./lib/foo.d.cts",
4858 },
4859 "./lib/foo-node.cjs",
4860 ],
4861 },
4862 "require": Array [
4863 Object {
4864 "types": "./lib/foo.d.cts",
4865 },
4866 "./lib/foo-require.cjs",
4867 ],
4868 "types": "./lib/foo-global.d.ts",
4869 },
4870 "./package.json": "./package.json",
4871 },
4872 },
4873 "type": "module",
4874 },
4875 "src",
4876 ],
4877 ],
4878 Array [
4879 "self-link.link",
4880 Array [
4881 Object {
4882 "imports": Object {
4883 "#foo": Object {
4884 "default": "./lib/foo-browser.js",
4885 "import": Array [
4886 Object {
4887 "types": "./lib/foo.d.mts",
4888 },
4889 "./lib/foo-import.mjs",
4890 ],
4891 "node": Object {
4892 "import": Array [
4893 Object {
4894 "types": "./lib/foo.d.mts",
4895 },
4896 "./lib/foo-node.mjs",
4897 ],
4898 "require": Array [
4899 Object {
4900 "types": "./lib/foo.d.cts",
4901 },
4902 "./lib/foo-node.cjs",
4903 ],
4904 },
4905 "require": Array [
4906 Object {
4907 "types": "./lib/foo.d.cts",
4908 },
4909 "./lib/foo-require.cjs",
4910 ],
4911 "types": "./lib/foo-global.d.ts",
4912 },
4913 "#fs": "node:fs",
4914 "#ri": "resolve-import",
4915 "#root": "./root.mjs",
4916 "#xp": "xyz/package.json",
4917 },
4918 "name": "@my/package",
4919 "scripts": Object {
4920 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
4921 },
4922 "tshy": Object {
4923 "exports": Object {
4924 ".": "./src/index.ts",
4925 "./foo": Object {
4926 "default": "./lib/foo-browser.js",
4927 "import": Array [
4928 Object {
4929 "types": "./lib/foo.d.mts",
4930 },
4931 "./lib/foo-import.mjs",
4932 ],
4933 "node": Object {
4934 "import": Array [
4935 Object {
4936 "types": "./lib/foo.d.mts",
4937 },
4938 "./lib/foo-node.mjs",
4939 ],
4940 "require": Array [
4941 Object {
4942 "types": "./lib/foo.d.cts",
4943 },
4944 "./lib/foo-node.cjs",
4945 ],
4946 },
4947 "require": Array [
4948 Object {
4949 "types": "./lib/foo.d.cts",
4950 },
4951 "./lib/foo-require.cjs",
4952 ],
4953 "types": "./lib/foo-global.d.ts",
4954 },
4955 "./package.json": "./package.json",
4956 },
4957 },
4958 "type": "module",
4959 },
4960 "dist",
4961 ],
4962 ],
4963 Array [
4964 "imports.link",
4965 Array [
4966 Object {
4967 "imports": Object {
4968 "#foo": Object {
4969 "default": "./lib/foo-browser.js",
4970 "import": Array [
4971 Object {
4972 "types": "./lib/foo.d.mts",
4973 },
4974 "./lib/foo-import.mjs",
4975 ],
4976 "node": Object {
4977 "import": Array [
4978 Object {
4979 "types": "./lib/foo.d.mts",
4980 },
4981 "./lib/foo-node.mjs",
4982 ],
4983 "require": Array [
4984 Object {
4985 "types": "./lib/foo.d.cts",
4986 },
4987 "./lib/foo-node.cjs",
4988 ],
4989 },
4990 "require": Array [
4991 Object {
4992 "types": "./lib/foo.d.cts",
4993 },
4994 "./lib/foo-require.cjs",
4995 ],
4996 "types": "./lib/foo-global.d.ts",
4997 },
4998 "#fs": "node:fs",
4999 "#ri": "resolve-import",
5000 "#root": "./root.mjs",
5001 "#xp": "xyz/package.json",
5002 },
5003 "name": "@my/package",
5004 "scripts": Object {
5005 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
5006 },
5007 "tshy": Object {
5008 "exports": Object {
5009 ".": "./src/index.ts",
5010 "./foo": Object {
5011 "default": "./lib/foo-browser.js",
5012 "import": Array [
5013 Object {
5014 "types": "./lib/foo.d.mts",
5015 },
5016 "./lib/foo-import.mjs",
5017 ],
5018 "node": Object {
5019 "import": Array [
5020 Object {
5021 "types": "./lib/foo.d.mts",
5022 },
5023 "./lib/foo-node.mjs",
5024 ],
5025 "require": Array [
5026 Object {
5027 "types": "./lib/foo.d.cts",
5028 },
5029 "./lib/foo-node.cjs",
5030 ],
5031 },
5032 "require": Array [
5033 Object {
5034 "types": "./lib/foo.d.cts",
5035 },
5036 "./lib/foo-require.cjs",
5037 ],
5038 "types": "./lib/foo-global.d.ts",
5039 },
5040 "./package.json": "./package.json",
5041 },
5042 },
5043 "type": "module",
5044 },
5045 "dist/commonjs",
5046 true,
5047 ],
5048 ],
5049 Array [
5050 "imports.link",
5051 Array [
5052 Object {
5053 "imports": Object {
5054 "#foo": Object {
5055 "default": "./lib/foo-browser.js",
5056 "import": Array [
5057 Object {
5058 "types": "./lib/foo.d.mts",
5059 },
5060 "./lib/foo-import.mjs",
5061 ],
5062 "node": Object {
5063 "import": Array [
5064 Object {
5065 "types": "./lib/foo.d.mts",
5066 },
5067 "./lib/foo-node.mjs",
5068 ],
5069 "require": Array [
5070 Object {
5071 "types": "./lib/foo.d.cts",
5072 },
5073 "./lib/foo-node.cjs",
5074 ],
5075 },
5076 "require": Array [
5077 Object {
5078 "types": "./lib/foo.d.cts",
5079 },
5080 "./lib/foo-require.cjs",
5081 ],
5082 "types": "./lib/foo-global.d.ts",
5083 },
5084 "#fs": "node:fs",
5085 "#ri": "resolve-import",
5086 "#root": "./root.mjs",
5087 "#xp": "xyz/package.json",
5088 },
5089 "name": "@my/package",
5090 "scripts": Object {
5091 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
5092 },
5093 "tshy": Object {
5094 "exports": Object {
5095 ".": "./src/index.ts",
5096 "./foo": Object {
5097 "default": "./lib/foo-browser.js",
5098 "import": Array [
5099 Object {
5100 "types": "./lib/foo.d.mts",
5101 },
5102 "./lib/foo-import.mjs",
5103 ],
5104 "node": Object {
5105 "import": Array [
5106 Object {
5107 "types": "./lib/foo.d.mts",
5108 },
5109 "./lib/foo-node.mjs",
5110 ],
5111 "require": Array [
5112 Object {
5113 "types": "./lib/foo.d.cts",
5114 },
5115 "./lib/foo-node.cjs",
5116 ],
5117 },
5118 "require": Array [
5119 Object {
5120 "types": "./lib/foo.d.cts",
5121 },
5122 "./lib/foo-require.cjs",
5123 ],
5124 "types": "./lib/foo-global.d.ts",
5125 },
5126 "./package.json": "./package.json",
5127 },
5128 },
5129 "type": "module",
5130 },
5131 "dist/esm",
5132 true,
5133 ],
5134 ],
5135 Array [
5136 "imports.save",
5137 Array [
5138 "dist/.tshy-link-imports.mjs",
5139 ],
5140 ],
5141 ]
5142 `
5143
5144 exports[`test/build.ts > TAP > imports linking > imports-with-star > must match snapshot 1`] = `
5145 Array [
5146 Array [
5147 "self-link.link",
5148 Array [
5149 Object {
5150 "tshy": Object {
5151 "dialects": Array [
5152 "esm",
5153 "commonjs",
5154 ],
5155 "exports": Object {
5156 ".": "./src/index.ts",
5157 "./package.json": "./package.json",
5158 },
5159 },
5160 },
5161 "src",
5162 ],
5163 ],
5164 Array [
5165 "imports.link",
5166 Array [
5167 Object {
5168 "tshy": Object {
5169 "dialects": Array [
5170 "esm",
5171 "commonjs",
5172 ],
5173 "exports": Object {
5174 ".": "./src/index.ts",
5175 "./package.json": "./package.json",
5176 },
5177 },
5178 },
5179 "src",
5180 ],
5181 ],
5182 Array [
5183 "imports.unlink",
5184 Array [
5185 Object {
5186 "tshy": Object {
5187 "dialects": Array [
5188 "esm",
5189 "commonjs",
5190 ],
5191 "exports": Object {
5192 ".": "./src/index.ts",
5193 "./package.json": "./package.json",
5194 },
5195 },
5196 },
5197 "src",
5198 ],
5199 ],
5200 Array [
5201 "self-link.unlink",
5202 Array [
5203 Object {
5204 "tshy": Object {
5205 "dialects": Array [
5206 "esm",
5207 "commonjs",
5208 ],
5209 "exports": Object {
5210 ".": "./src/index.ts",
5211 "./package.json": "./package.json",
5212 },
5213 },
5214 },
5215 "src",
5216 ],
5217 ],
5218 Array [
5219 "self-link.link",
5220 Array [
5221 Object {
5222 "tshy": Object {
5223 "dialects": Array [
5224 "esm",
5225 "commonjs",
5226 ],
5227 "exports": Object {
5228 ".": "./src/index.ts",
5229 "./package.json": "./package.json",
5230 },
5231 },
5232 },
5233 "dist",
5234 ],
5235 ],
5236 Array [
5237 "self-link.link",
5238 Array [
5239 Object {
5240 "tshy": Object {
5241 "dialects": Array [
5242 "esm",
5243 "commonjs",
5244 ],
5245 "exports": Object {
5246 ".": "./src/index.ts",
5247 "./package.json": "./package.json",
5248 },
5249 },
5250 },
5251 "src",
5252 ],
5253 ],
5254 Array [
5255 "imports.link",
5256 Array [
5257 Object {
5258 "tshy": Object {
5259 "dialects": Array [
5260 "esm",
5261 "commonjs",
5262 ],
5263 "exports": Object {
5264 ".": "./src/index.ts",
5265 "./package.json": "./package.json",
5266 },
5267 },
5268 },
5269 "src",
5270 ],
5271 ],
5272 Array [
5273 "imports.unlink",
5274 Array [
5275 Object {
5276 "tshy": Object {
5277 "dialects": Array [
5278 "esm",
5279 "commonjs",
5280 ],
5281 "exports": Object {
5282 ".": "./src/index.ts",
5283 "./package.json": "./package.json",
5284 },
5285 },
5286 },
5287 "src",
5288 ],
5289 ],
5290 Array [
5291 "self-link.unlink",
5292 Array [
5293 Object {
5294 "tshy": Object {
5295 "dialects": Array [
5296 "esm",
5297 "commonjs",
5298 ],
5299 "exports": Object {
5300 ".": "./src/index.ts",
5301 "./package.json": "./package.json",
5302 },
5303 },
5304 },
5305 "src",
5306 ],
5307 ],
5308 Array [
5309 "self-link.link",
5310 Array [
5311 Object {
5312 "tshy": Object {
5313 "dialects": Array [
5314 "esm",
5315 "commonjs",
5316 ],
5317 "exports": Object {
5318 ".": "./src/index.ts",
5319 "./package.json": "./package.json",
5320 },
5321 },
5322 },
5323 "dist",
5324 ],
5325 ],
5326 Array [
5327 "self-link.link",
5328 Array [
5329 Object {
5330 "tshy": Object {
5331 "dialects": Array [
5332 "esm",
5333 "commonjs",
5334 ],
5335 "exports": Object {
5336 ".": "./src/index.ts",
5337 "./package.json": "./package.json",
5338 },
5339 },
5340 },
5341 "src",
5342 ],
5343 ],
5344 Array [
5345 "imports.link",
5346 Array [
5347 Object {
5348 "tshy": Object {
5349 "dialects": Array [
5350 "esm",
5351 "commonjs",
5352 ],
5353 "exports": Object {
5354 ".": "./src/index.ts",
5355 "./package.json": "./package.json",
5356 },
5357 },
5358 },
5359 "src",
5360 ],
5361 ],
5362 Array [
5363 "imports.unlink",
5364 Array [
5365 Object {
5366 "tshy": Object {
5367 "dialects": Array [
5368 "esm",
5369 "commonjs",
5370 ],
5371 "exports": Object {
5372 ".": "./src/index.ts",
5373 "./package.json": "./package.json",
5374 },
5375 },
5376 },
5377 "src",
5378 ],
5379 ],
5380 Array [
5381 "self-link.unlink",
5382 Array [
5383 Object {
5384 "tshy": Object {
5385 "dialects": Array [
5386 "esm",
5387 "commonjs",
5388 ],
5389 "exports": Object {
5390 ".": "./src/index.ts",
5391 "./package.json": "./package.json",
5392 },
5393 },
5394 },
5395 "src",
5396 ],
5397 ],
5398 Array [
5399 "self-link.link",
5400 Array [
5401 Object {
5402 "tshy": Object {
5403 "dialects": Array [
5404 "esm",
5405 "commonjs",
5406 ],
5407 "exports": Object {
5408 ".": "./src/index.ts",
5409 "./package.json": "./package.json",
5410 },
5411 },
5412 },
5413 "dist",
5414 ],
5415 ],
5416 Array [
5417 "self-link.link",
5418 Array [
5419 Object {
5420 "tshy": Object {
5421 "dialects": Array [
5422 "esm",
5423 "commonjs",
5424 ],
5425 "exports": Object {
5426 ".": "./src/index.ts",
5427 "./package.json": "./package.json",
5428 },
5429 },
5430 },
5431 "src",
5432 ],
5433 ],
5434 Array [
5435 "imports.link",
5436 Array [
5437 Object {
5438 "tshy": Object {
5439 "dialects": Array [
5440 "esm",
5441 "commonjs",
5442 ],
5443 "exports": Object {
5444 ".": "./src/index.ts",
5445 "./package.json": "./package.json",
5446 },
5447 },
5448 },
5449 "src",
5450 ],
5451 ],
5452 Array [
5453 "imports.unlink",
5454 Array [
5455 Object {
5456 "tshy": Object {
5457 "dialects": Array [
5458 "esm",
5459 "commonjs",
5460 ],
5461 "exports": Object {
5462 ".": "./src/index.ts",
5463 "./package.json": "./package.json",
5464 },
5465 },
5466 },
5467 "src",
5468 ],
5469 ],
5470 Array [
5471 "self-link.unlink",
5472 Array [
5473 Object {
5474 "tshy": Object {
5475 "dialects": Array [
5476 "esm",
5477 "commonjs",
5478 ],
5479 "exports": Object {
5480 ".": "./src/index.ts",
5481 "./package.json": "./package.json",
5482 },
5483 },
5484 },
5485 "src",
5486 ],
5487 ],
5488 Array [
5489 "self-link.link",
5490 Array [
5491 Object {
5492 "tshy": Object {
5493 "dialects": Array [
5494 "esm",
5495 "commonjs",
5496 ],
5497 "exports": Object {
5498 ".": "./src/index.ts",
5499 "./package.json": "./package.json",
5500 },
5501 },
5502 },
5503 "dist",
5504 ],
5505 ],
5506 Array [
5507 "self-link.link",
5508 Array [
5509 Object {
5510 "tshy": Object {
5511 "dialects": Array [
5512 "esm",
5513 "commonjs",
5514 ],
5515 "exports": Object {
5516 ".": "./src/index.ts",
5517 "./package.json": "./package.json",
5518 },
5519 },
5520 },
5521 "src",
5522 ],
5523 ],
5524 Array [
5525 "imports.link",
5526 Array [
5527 Object {
5528 "tshy": Object {
5529 "dialects": Array [
5530 "esm",
5531 "commonjs",
5532 ],
5533 "exports": Object {
5534 ".": "./src/index.ts",
5535 "./package.json": "./package.json",
5536 },
5537 },
5538 },
5539 "src",
5540 ],
5541 ],
5542 Array [
5543 "imports.unlink",
5544 Array [
5545 Object {
5546 "tshy": Object {
5547 "dialects": Array [
5548 "esm",
5549 "commonjs",
5550 ],
5551 "exports": Object {
5552 ".": "./src/index.ts",
5553 "./package.json": "./package.json",
5554 },
5555 },
5556 },
5557 "src",
5558 ],
5559 ],
5560 Array [
5561 "self-link.unlink",
5562 Array [
5563 Object {
5564 "tshy": Object {
5565 "dialects": Array [
5566 "esm",
5567 "commonjs",
5568 ],
5569 "exports": Object {
5570 ".": "./src/index.ts",
5571 "./package.json": "./package.json",
5572 },
5573 },
5574 },
5575 "src",
5576 ],
5577 ],
5578 Array [
5579 "self-link.link",
5580 Array [
5581 Object {
5582 "tshy": Object {
5583 "dialects": Array [
5584 "esm",
5585 "commonjs",
5586 ],
5587 "exports": Object {
5588 ".": "./src/index.ts",
5589 "./package.json": "./package.json",
5590 },
5591 },
5592 },
5593 "dist",
5594 ],
5595 ],
5596 Array [
5597 "self-link.link",
5598 Array [
5599 Object {
5600 "tshy": Object {
5601 "dialects": Array [
5602 "esm",
5603 "commonjs",
5604 ],
5605 "exports": Object {
5606 ".": "./src/index.ts",
5607 "./package.json": "./package.json",
5608 },
5609 },
5610 },
5611 "src",
5612 ],
5613 ],
5614 Array [
5615 "imports.link",
5616 Array [
5617 Object {
5618 "tshy": Object {
5619 "dialects": Array [
5620 "esm",
5621 "commonjs",
5622 ],
5623 "exports": Object {
5624 ".": "./src/index.ts",
5625 "./package.json": "./package.json",
5626 },
5627 },
5628 },
5629 "src",
5630 ],
5631 ],
5632 Array [
5633 "imports.unlink",
5634 Array [
5635 Object {
5636 "tshy": Object {
5637 "dialects": Array [
5638 "esm",
5639 "commonjs",
5640 ],
5641 "exports": Object {
5642 ".": "./src/index.ts",
5643 "./package.json": "./package.json",
5644 },
5645 },
5646 },
5647 "src",
5648 ],
5649 ],
5650 Array [
5651 "self-link.unlink",
5652 Array [
5653 Object {
5654 "tshy": Object {
5655 "dialects": Array [
5656 "esm",
5657 "commonjs",
5658 ],
5659 "exports": Object {
5660 ".": "./src/index.ts",
5661 "./package.json": "./package.json",
5662 },
5663 },
5664 },
5665 "src",
5666 ],
5667 ],
5668 Array [
5669 "self-link.link",
5670 Array [
5671 Object {
5672 "tshy": Object {
5673 "dialects": Array [
5674 "esm",
5675 "commonjs",
5676 ],
5677 "exports": Object {
5678 ".": "./src/index.ts",
5679 "./package.json": "./package.json",
5680 },
5681 },
5682 },
5683 "dist",
5684 ],
5685 ],
5686 Array [
5687 "self-link.link",
5688 Array [
5689 Object {
5690 "tshy": Object {
5691 "dialects": Array [
5692 "esm",
5693 "commonjs",
5694 ],
5695 "exports": Object {
5696 ".": "./src/index.ts",
5697 "./package.json": "./package.json",
5698 },
5699 },
5700 },
5701 "src",
5702 ],
5703 ],
5704 Array [
5705 "imports.link",
5706 Array [
5707 Object {
5708 "tshy": Object {
5709 "dialects": Array [
5710 "esm",
5711 "commonjs",
5712 ],
5713 "exports": Object {
5714 ".": "./src/index.ts",
5715 "./package.json": "./package.json",
5716 },
5717 },
5718 },
5719 "src",
5720 ],
5721 ],
5722 Array [
5723 "imports.unlink",
5724 Array [
5725 Object {
5726 "tshy": Object {
5727 "dialects": Array [
5728 "esm",
5729 "commonjs",
5730 ],
5731 "exports": Object {
5732 ".": "./src/index.ts",
5733 "./package.json": "./package.json",
5734 },
5735 },
5736 },
5737 "src",
5738 ],
5739 ],
5740 Array [
5741 "self-link.unlink",
5742 Array [
5743 Object {
5744 "tshy": Object {
5745 "dialects": Array [
5746 "esm",
5747 "commonjs",
5748 ],
5749 "exports": Object {
5750 ".": "./src/index.ts",
5751 "./package.json": "./package.json",
5752 },
5753 },
5754 },
5755 "src",
5756 ],
5757 ],
5758 Array [
5759 "self-link.link",
5760 Array [
5761 Object {
5762 "tshy": Object {
5763 "dialects": Array [
5764 "esm",
5765 "commonjs",
5766 ],
5767 "exports": Object {
5768 ".": "./src/index.ts",
5769 "./package.json": "./package.json",
5770 },
5771 },
5772 },
5773 "dist",
5774 ],
5775 ],
5776 Array [
5777 "self-link.link",
5778 Array [
5779 Object {
5780 "imports": Object {
5781 "#foo": Object {
5782 "default": "./lib/foo-browser.js",
5783 "import": Array [
5784 Object {
5785 "types": "./lib/foo.d.mts",
5786 },
5787 "./lib/foo-import.mjs",
5788 ],
5789 "node": Object {
5790 "import": Array [
5791 Object {
5792 "types": "./lib/foo.d.mts",
5793 },
5794 "./lib/foo-node.mjs",
5795 ],
5796 "require": Array [
5797 Object {
5798 "types": "./lib/foo.d.cts",
5799 },
5800 "./lib/foo-node.cjs",
5801 ],
5802 },
5803 "require": Array [
5804 Object {
5805 "types": "./lib/foo.d.cts",
5806 },
5807 "./lib/foo-require.cjs",
5808 ],
5809 "types": "./lib/foo-global.d.ts",
5810 },
5811 "#fs": "node:fs",
5812 "#ri": "resolve-import",
5813 "#root": "./root.mjs",
5814 "#xp": "xyz/package.json",
5815 },
5816 "name": "@my/package",
5817 "scripts": Object {
5818 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
5819 },
5820 "tshy": Object {
5821 "exports": Object {
5822 ".": "./src/index.ts",
5823 "./foo": Object {
5824 "default": "./lib/foo-browser.js",
5825 "import": Array [
5826 Object {
5827 "types": "./lib/foo.d.mts",
5828 },
5829 "./lib/foo-import.mjs",
5830 ],
5831 "node": Object {
5832 "import": Array [
5833 Object {
5834 "types": "./lib/foo.d.mts",
5835 },
5836 "./lib/foo-node.mjs",
5837 ],
5838 "require": Array [
5839 Object {
5840 "types": "./lib/foo.d.cts",
5841 },
5842 "./lib/foo-node.cjs",
5843 ],
5844 },
5845 "require": Array [
5846 Object {
5847 "types": "./lib/foo.d.cts",
5848 },
5849 "./lib/foo-require.cjs",
5850 ],
5851 "types": "./lib/foo-global.d.ts",
5852 },
5853 "./package.json": "./package.json",
5854 },
5855 },
5856 "type": "module",
5857 },
5858 "src",
5859 ],
5860 ],
5861 Array [
5862 "imports.link",
5863 Array [
5864 Object {
5865 "imports": Object {
5866 "#foo": Object {
5867 "default": "./lib/foo-browser.js",
5868 "import": Array [
5869 Object {
5870 "types": "./lib/foo.d.mts",
5871 },
5872 "./lib/foo-import.mjs",
5873 ],
5874 "node": Object {
5875 "import": Array [
5876 Object {
5877 "types": "./lib/foo.d.mts",
5878 },
5879 "./lib/foo-node.mjs",
5880 ],
5881 "require": Array [
5882 Object {
5883 "types": "./lib/foo.d.cts",
5884 },
5885 "./lib/foo-node.cjs",
5886 ],
5887 },
5888 "require": Array [
5889 Object {
5890 "types": "./lib/foo.d.cts",
5891 },
5892 "./lib/foo-require.cjs",
5893 ],
5894 "types": "./lib/foo-global.d.ts",
5895 },
5896 "#fs": "node:fs",
5897 "#ri": "resolve-import",
5898 "#root": "./root.mjs",
5899 "#xp": "xyz/package.json",
5900 },
5901 "name": "@my/package",
5902 "scripts": Object {
5903 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
5904 },
5905 "tshy": Object {
5906 "exports": Object {
5907 ".": "./src/index.ts",
5908 "./foo": Object {
5909 "default": "./lib/foo-browser.js",
5910 "import": Array [
5911 Object {
5912 "types": "./lib/foo.d.mts",
5913 },
5914 "./lib/foo-import.mjs",
5915 ],
5916 "node": Object {
5917 "import": Array [
5918 Object {
5919 "types": "./lib/foo.d.mts",
5920 },
5921 "./lib/foo-node.mjs",
5922 ],
5923 "require": Array [
5924 Object {
5925 "types": "./lib/foo.d.cts",
5926 },
5927 "./lib/foo-node.cjs",
5928 ],
5929 },
5930 "require": Array [
5931 Object {
5932 "types": "./lib/foo.d.cts",
5933 },
5934 "./lib/foo-require.cjs",
5935 ],
5936 "types": "./lib/foo-global.d.ts",
5937 },
5938 "./package.json": "./package.json",
5939 },
5940 },
5941 "type": "module",
5942 },
5943 "src",
5944 ],
5945 ],
5946 Array [
5947 "imports.unlink",
5948 Array [
5949 Object {
5950 "imports": Object {
5951 "#foo": Object {
5952 "default": "./lib/foo-browser.js",
5953 "import": Array [
5954 Object {
5955 "types": "./lib/foo.d.mts",
5956 },
5957 "./lib/foo-import.mjs",
5958 ],
5959 "node": Object {
5960 "import": Array [
5961 Object {
5962 "types": "./lib/foo.d.mts",
5963 },
5964 "./lib/foo-node.mjs",
5965 ],
5966 "require": Array [
5967 Object {
5968 "types": "./lib/foo.d.cts",
5969 },
5970 "./lib/foo-node.cjs",
5971 ],
5972 },
5973 "require": Array [
5974 Object {
5975 "types": "./lib/foo.d.cts",
5976 },
5977 "./lib/foo-require.cjs",
5978 ],
5979 "types": "./lib/foo-global.d.ts",
5980 },
5981 "#fs": "node:fs",
5982 "#ri": "resolve-import",
5983 "#root": "./root.mjs",
5984 "#xp": "xyz/package.json",
5985 },
5986 "name": "@my/package",
5987 "scripts": Object {
5988 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
5989 },
5990 "tshy": Object {
5991 "exports": Object {
5992 ".": "./src/index.ts",
5993 "./foo": Object {
5994 "default": "./lib/foo-browser.js",
5995 "import": Array [
5996 Object {
5997 "types": "./lib/foo.d.mts",
5998 },
5999 "./lib/foo-import.mjs",
6000 ],
6001 "node": Object {
6002 "import": Array [
6003 Object {
6004 "types": "./lib/foo.d.mts",
6005 },
6006 "./lib/foo-node.mjs",
6007 ],
6008 "require": Array [
6009 Object {
6010 "types": "./lib/foo.d.cts",
6011 },
6012 "./lib/foo-node.cjs",
6013 ],
6014 },
6015 "require": Array [
6016 Object {
6017 "types": "./lib/foo.d.cts",
6018 },
6019 "./lib/foo-require.cjs",
6020 ],
6021 "types": "./lib/foo-global.d.ts",
6022 },
6023 "./package.json": "./package.json",
6024 },
6025 },
6026 "type": "module",
6027 },
6028 "src",
6029 ],
6030 ],
6031 Array [
6032 "self-link.unlink",
6033 Array [
6034 Object {
6035 "imports": Object {
6036 "#foo": Object {
6037 "default": "./lib/foo-browser.js",
6038 "import": Array [
6039 Object {
6040 "types": "./lib/foo.d.mts",
6041 },
6042 "./lib/foo-import.mjs",
6043 ],
6044 "node": Object {
6045 "import": Array [
6046 Object {
6047 "types": "./lib/foo.d.mts",
6048 },
6049 "./lib/foo-node.mjs",
6050 ],
6051 "require": Array [
6052 Object {
6053 "types": "./lib/foo.d.cts",
6054 },
6055 "./lib/foo-node.cjs",
6056 ],
6057 },
6058 "require": Array [
6059 Object {
6060 "types": "./lib/foo.d.cts",
6061 },
6062 "./lib/foo-require.cjs",
6063 ],
6064 "types": "./lib/foo-global.d.ts",
6065 },
6066 "#fs": "node:fs",
6067 "#ri": "resolve-import",
6068 "#root": "./root.mjs",
6069 "#xp": "xyz/package.json",
6070 },
6071 "name": "@my/package",
6072 "scripts": Object {
6073 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
6074 },
6075 "tshy": Object {
6076 "exports": Object {
6077 ".": "./src/index.ts",
6078 "./foo": Object {
6079 "default": "./lib/foo-browser.js",
6080 "import": Array [
6081 Object {
6082 "types": "./lib/foo.d.mts",
6083 },
6084 "./lib/foo-import.mjs",
6085 ],
6086 "node": Object {
6087 "import": Array [
6088 Object {
6089 "types": "./lib/foo.d.mts",
6090 },
6091 "./lib/foo-node.mjs",
6092 ],
6093 "require": Array [
6094 Object {
6095 "types": "./lib/foo.d.cts",
6096 },
6097 "./lib/foo-node.cjs",
6098 ],
6099 },
6100 "require": Array [
6101 Object {
6102 "types": "./lib/foo.d.cts",
6103 },
6104 "./lib/foo-require.cjs",
6105 ],
6106 "types": "./lib/foo-global.d.ts",
6107 },
6108 "./package.json": "./package.json",
6109 },
6110 },
6111 "type": "module",
6112 },
6113 "src",
6114 ],
6115 ],
6116 Array [
6117 "self-link.link",
6118 Array [
6119 Object {
6120 "imports": Object {
6121 "#foo": Object {
6122 "default": "./lib/foo-browser.js",
6123 "import": Array [
6124 Object {
6125 "types": "./lib/foo.d.mts",
6126 },
6127 "./lib/foo-import.mjs",
6128 ],
6129 "node": Object {
6130 "import": Array [
6131 Object {
6132 "types": "./lib/foo.d.mts",
6133 },
6134 "./lib/foo-node.mjs",
6135 ],
6136 "require": Array [
6137 Object {
6138 "types": "./lib/foo.d.cts",
6139 },
6140 "./lib/foo-node.cjs",
6141 ],
6142 },
6143 "require": Array [
6144 Object {
6145 "types": "./lib/foo.d.cts",
6146 },
6147 "./lib/foo-require.cjs",
6148 ],
6149 "types": "./lib/foo-global.d.ts",
6150 },
6151 "#fs": "node:fs",
6152 "#ri": "resolve-import",
6153 "#root": "./root.mjs",
6154 "#xp": "xyz/package.json",
6155 },
6156 "name": "@my/package",
6157 "scripts": Object {
6158 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
6159 },
6160 "tshy": Object {
6161 "exports": Object {
6162 ".": "./src/index.ts",
6163 "./foo": Object {
6164 "default": "./lib/foo-browser.js",
6165 "import": Array [
6166 Object {
6167 "types": "./lib/foo.d.mts",
6168 },
6169 "./lib/foo-import.mjs",
6170 ],
6171 "node": Object {
6172 "import": Array [
6173 Object {
6174 "types": "./lib/foo.d.mts",
6175 },
6176 "./lib/foo-node.mjs",
6177 ],
6178 "require": Array [
6179 Object {
6180 "types": "./lib/foo.d.cts",
6181 },
6182 "./lib/foo-node.cjs",
6183 ],
6184 },
6185 "require": Array [
6186 Object {
6187 "types": "./lib/foo.d.cts",
6188 },
6189 "./lib/foo-require.cjs",
6190 ],
6191 "types": "./lib/foo-global.d.ts",
6192 },
6193 "./package.json": "./package.json",
6194 },
6195 },
6196 "type": "module",
6197 },
6198 "dist",
6199 ],
6200 ],
6201 Array [
6202 "imports.link",
6203 Array [
6204 Object {
6205 "imports": Object {
6206 "#foo": Object {
6207 "default": "./lib/foo-browser.js",
6208 "import": Array [
6209 Object {
6210 "types": "./lib/foo.d.mts",
6211 },
6212 "./lib/foo-import.mjs",
6213 ],
6214 "node": Object {
6215 "import": Array [
6216 Object {
6217 "types": "./lib/foo.d.mts",
6218 },
6219 "./lib/foo-node.mjs",
6220 ],
6221 "require": Array [
6222 Object {
6223 "types": "./lib/foo.d.cts",
6224 },
6225 "./lib/foo-node.cjs",
6226 ],
6227 },
6228 "require": Array [
6229 Object {
6230 "types": "./lib/foo.d.cts",
6231 },
6232 "./lib/foo-require.cjs",
6233 ],
6234 "types": "./lib/foo-global.d.ts",
6235 },
6236 "#fs": "node:fs",
6237 "#ri": "resolve-import",
6238 "#root": "./root.mjs",
6239 "#xp": "xyz/package.json",
6240 },
6241 "name": "@my/package",
6242 "scripts": Object {
6243 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
6244 },
6245 "tshy": Object {
6246 "exports": Object {
6247 ".": "./src/index.ts",
6248 "./foo": Object {
6249 "default": "./lib/foo-browser.js",
6250 "import": Array [
6251 Object {
6252 "types": "./lib/foo.d.mts",
6253 },
6254 "./lib/foo-import.mjs",
6255 ],
6256 "node": Object {
6257 "import": Array [
6258 Object {
6259 "types": "./lib/foo.d.mts",
6260 },
6261 "./lib/foo-node.mjs",
6262 ],
6263 "require": Array [
6264 Object {
6265 "types": "./lib/foo.d.cts",
6266 },
6267 "./lib/foo-node.cjs",
6268 ],
6269 },
6270 "require": Array [
6271 Object {
6272 "types": "./lib/foo.d.cts",
6273 },
6274 "./lib/foo-require.cjs",
6275 ],
6276 "types": "./lib/foo-global.d.ts",
6277 },
6278 "./package.json": "./package.json",
6279 },
6280 },
6281 "type": "module",
6282 },
6283 "dist/commonjs",
6284 true,
6285 ],
6286 ],
6287 Array [
6288 "imports.link",
6289 Array [
6290 Object {
6291 "imports": Object {
6292 "#foo": Object {
6293 "default": "./lib/foo-browser.js",
6294 "import": Array [
6295 Object {
6296 "types": "./lib/foo.d.mts",
6297 },
6298 "./lib/foo-import.mjs",
6299 ],
6300 "node": Object {
6301 "import": Array [
6302 Object {
6303 "types": "./lib/foo.d.mts",
6304 },
6305 "./lib/foo-node.mjs",
6306 ],
6307 "require": Array [
6308 Object {
6309 "types": "./lib/foo.d.cts",
6310 },
6311 "./lib/foo-node.cjs",
6312 ],
6313 },
6314 "require": Array [
6315 Object {
6316 "types": "./lib/foo.d.cts",
6317 },
6318 "./lib/foo-require.cjs",
6319 ],
6320 "types": "./lib/foo-global.d.ts",
6321 },
6322 "#fs": "node:fs",
6323 "#ri": "resolve-import",
6324 "#root": "./root.mjs",
6325 "#xp": "xyz/package.json",
6326 },
6327 "name": "@my/package",
6328 "scripts": Object {
6329 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
6330 },
6331 "tshy": Object {
6332 "exports": Object {
6333 ".": "./src/index.ts",
6334 "./foo": Object {
6335 "default": "./lib/foo-browser.js",
6336 "import": Array [
6337 Object {
6338 "types": "./lib/foo.d.mts",
6339 },
6340 "./lib/foo-import.mjs",
6341 ],
6342 "node": Object {
6343 "import": Array [
6344 Object {
6345 "types": "./lib/foo.d.mts",
6346 },
6347 "./lib/foo-node.mjs",
6348 ],
6349 "require": Array [
6350 Object {
6351 "types": "./lib/foo.d.cts",
6352 },
6353 "./lib/foo-node.cjs",
6354 ],
6355 },
6356 "require": Array [
6357 Object {
6358 "types": "./lib/foo.d.cts",
6359 },
6360 "./lib/foo-require.cjs",
6361 ],
6362 "types": "./lib/foo-global.d.ts",
6363 },
6364 "./package.json": "./package.json",
6365 },
6366 },
6367 "type": "module",
6368 },
6369 "dist/esm",
6370 true,
6371 ],
6372 ],
6373 Array [
6374 "imports.save",
6375 Array [
6376 "dist/.tshy-link-imports.mjs",
6377 ],
6378 ],
6379 Array [
6380 "self-link.link",
6381 Array [
6382 Object {
6383 "exports": Object {
6384 ".": Object {
6385 "import": Object {
6386 "default": "./dist/esm/index.js",
6387 "types": "./dist/esm/index.d.ts",
6388 },
6389 "require": Object {
6390 "default": "./dist/commonjs/index.js",
6391 "types": "./dist/commonjs/index.d.ts",
6392 },
6393 },
6394 "./foo": Object {
6395 "default": "./lib/foo-browser.js",
6396 "import": Array [
6397 Object {
6398 "types": "./lib/foo.d.mts",
6399 },
6400 "./lib/foo-import.mjs",
6401 ],
6402 "node": Object {
6403 "import": Array [
6404 Object {
6405 "types": "./lib/foo.d.mts",
6406 },
6407 "./lib/foo-node.mjs",
6408 ],
6409 "require": Array [
6410 Object {
6411 "types": "./lib/foo.d.cts",
6412 },
6413 "./lib/foo-node.cjs",
6414 ],
6415 },
6416 "require": Array [
6417 Object {
6418 "types": "./lib/foo.d.cts",
6419 },
6420 "./lib/foo-require.cjs",
6421 ],
6422 "types": "./lib/foo-global.d.ts",
6423 },
6424 "./package.json": "./package.json",
6425 },
6426 "imports": Object {
6427 "#c/*": "./lib/*.cjs",
6428 "#foo": Object {
6429 "default": "./lib/foo-browser.js",
6430 "import": Array [
6431 Object {
6432 "types": "./lib/foo.d.mts",
6433 },
6434 "./lib/foo-import.mjs",
6435 ],
6436 "node": Object {
6437 "import": Array [
6438 Object {
6439 "types": "./lib/foo.d.mts",
6440 },
6441 "./lib/foo-node.mjs",
6442 ],
6443 "require": Array [
6444 Object {
6445 "types": "./lib/foo.d.cts",
6446 },
6447 "./lib/foo-node.cjs",
6448 ],
6449 },
6450 "require": Array [
6451 Object {
6452 "types": "./lib/foo.d.cts",
6453 },
6454 "./lib/foo-require.cjs",
6455 ],
6456 "types": "./lib/foo-global.d.ts",
6457 },
6458 "#fs": "node:fs",
6459 "#m/*": "./lib/*.mjs",
6460 "#ri": "resolve-import",
6461 "#ri/*": "resolve-import/*",
6462 "#root": "./root.mjs",
6463 "#xp": "xyz/package.json",
6464 },
6465 "name": "@my/package",
6466 "scripts": Object {
6467 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
6468 },
6469 "tshy": Object {
6470 "exports": Object {
6471 ".": "./src/index.ts",
6472 "./foo": Object {
6473 "default": "./lib/foo-browser.js",
6474 "import": Array [
6475 Object {
6476 "types": "./lib/foo.d.mts",
6477 },
6478 "./lib/foo-import.mjs",
6479 ],
6480 "node": Object {
6481 "import": Array [
6482 Object {
6483 "types": "./lib/foo.d.mts",
6484 },
6485 "./lib/foo-node.mjs",
6486 ],
6487 "require": Array [
6488 Object {
6489 "types": "./lib/foo.d.cts",
6490 },
6491 "./lib/foo-node.cjs",
6492 ],
6493 },
6494 "require": Array [
6495 Object {
6496 "types": "./lib/foo.d.cts",
6497 },
6498 "./lib/foo-require.cjs",
6499 ],
6500 "types": "./lib/foo-global.d.ts",
6501 },
6502 "./package.json": "./package.json",
6503 },
6504 },
6505 "type": "module",
6506 },
6507 "src",
6508 ],
6509 ],
6510 Array [
6511 "imports.link",
6512 Array [
6513 Object {
6514 "exports": Object {
6515 ".": Object {
6516 "import": Object {
6517 "default": "./dist/esm/index.js",
6518 "types": "./dist/esm/index.d.ts",
6519 },
6520 "require": Object {
6521 "default": "./dist/commonjs/index.js",
6522 "types": "./dist/commonjs/index.d.ts",
6523 },
6524 },
6525 "./foo": Object {
6526 "default": "./lib/foo-browser.js",
6527 "import": Array [
6528 Object {
6529 "types": "./lib/foo.d.mts",
6530 },
6531 "./lib/foo-import.mjs",
6532 ],
6533 "node": Object {
6534 "import": Array [
6535 Object {
6536 "types": "./lib/foo.d.mts",
6537 },
6538 "./lib/foo-node.mjs",
6539 ],
6540 "require": Array [
6541 Object {
6542 "types": "./lib/foo.d.cts",
6543 },
6544 "./lib/foo-node.cjs",
6545 ],
6546 },
6547 "require": Array [
6548 Object {
6549 "types": "./lib/foo.d.cts",
6550 },
6551 "./lib/foo-require.cjs",
6552 ],
6553 "types": "./lib/foo-global.d.ts",
6554 },
6555 "./package.json": "./package.json",
6556 },
6557 "imports": Object {
6558 "#c/*": "./lib/*.cjs",
6559 "#foo": Object {
6560 "default": "./lib/foo-browser.js",
6561 "import": Array [
6562 Object {
6563 "types": "./lib/foo.d.mts",
6564 },
6565 "./lib/foo-import.mjs",
6566 ],
6567 "node": Object {
6568 "import": Array [
6569 Object {
6570 "types": "./lib/foo.d.mts",
6571 },
6572 "./lib/foo-node.mjs",
6573 ],
6574 "require": Array [
6575 Object {
6576 "types": "./lib/foo.d.cts",
6577 },
6578 "./lib/foo-node.cjs",
6579 ],
6580 },
6581 "require": Array [
6582 Object {
6583 "types": "./lib/foo.d.cts",
6584 },
6585 "./lib/foo-require.cjs",
6586 ],
6587 "types": "./lib/foo-global.d.ts",
6588 },
6589 "#fs": "node:fs",
6590 "#m/*": "./lib/*.mjs",
6591 "#ri": "resolve-import",
6592 "#ri/*": "resolve-import/*",
6593 "#root": "./root.mjs",
6594 "#xp": "xyz/package.json",
6595 },
6596 "name": "@my/package",
6597 "scripts": Object {
6598 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
6599 },
6600 "tshy": Object {
6601 "exports": Object {
6602 ".": "./src/index.ts",
6603 "./foo": Object {
6604 "default": "./lib/foo-browser.js",
6605 "import": Array [
6606 Object {
6607 "types": "./lib/foo.d.mts",
6608 },
6609 "./lib/foo-import.mjs",
6610 ],
6611 "node": Object {
6612 "import": Array [
6613 Object {
6614 "types": "./lib/foo.d.mts",
6615 },
6616 "./lib/foo-node.mjs",
6617 ],
6618 "require": Array [
6619 Object {
6620 "types": "./lib/foo.d.cts",
6621 },
6622 "./lib/foo-node.cjs",
6623 ],
6624 },
6625 "require": Array [
6626 Object {
6627 "types": "./lib/foo.d.cts",
6628 },
6629 "./lib/foo-require.cjs",
6630 ],
6631 "types": "./lib/foo-global.d.ts",
6632 },
6633 "./package.json": "./package.json",
6634 },
6635 },
6636 "type": "module",
6637 },
6638 "src",
6639 ],
6640 ],
6641 Array [
6642 "imports.unlink",
6643 Array [
6644 Object {
6645 "exports": Object {
6646 ".": Object {
6647 "import": Object {
6648 "default": "./dist/esm/index.js",
6649 "types": "./dist/esm/index.d.ts",
6650 },
6651 "require": Object {
6652 "default": "./dist/commonjs/index.js",
6653 "types": "./dist/commonjs/index.d.ts",
6654 },
6655 },
6656 "./foo": Object {
6657 "default": "./lib/foo-browser.js",
6658 "import": Array [
6659 Object {
6660 "types": "./lib/foo.d.mts",
6661 },
6662 "./lib/foo-import.mjs",
6663 ],
6664 "node": Object {
6665 "import": Array [
6666 Object {
6667 "types": "./lib/foo.d.mts",
6668 },
6669 "./lib/foo-node.mjs",
6670 ],
6671 "require": Array [
6672 Object {
6673 "types": "./lib/foo.d.cts",
6674 },
6675 "./lib/foo-node.cjs",
6676 ],
6677 },
6678 "require": Array [
6679 Object {
6680 "types": "./lib/foo.d.cts",
6681 },
6682 "./lib/foo-require.cjs",
6683 ],
6684 "types": "./lib/foo-global.d.ts",
6685 },
6686 "./package.json": "./package.json",
6687 },
6688 "imports": Object {
6689 "#c/*": "./lib/*.cjs",
6690 "#foo": Object {
6691 "default": "./lib/foo-browser.js",
6692 "import": Array [
6693 Object {
6694 "types": "./lib/foo.d.mts",
6695 },
6696 "./lib/foo-import.mjs",
6697 ],
6698 "node": Object {
6699 "import": Array [
6700 Object {
6701 "types": "./lib/foo.d.mts",
6702 },
6703 "./lib/foo-node.mjs",
6704 ],
6705 "require": Array [
6706 Object {
6707 "types": "./lib/foo.d.cts",
6708 },
6709 "./lib/foo-node.cjs",
6710 ],
6711 },
6712 "require": Array [
6713 Object {
6714 "types": "./lib/foo.d.cts",
6715 },
6716 "./lib/foo-require.cjs",
6717 ],
6718 "types": "./lib/foo-global.d.ts",
6719 },
6720 "#fs": "node:fs",
6721 "#m/*": "./lib/*.mjs",
6722 "#ri": "resolve-import",
6723 "#ri/*": "resolve-import/*",
6724 "#root": "./root.mjs",
6725 "#xp": "xyz/package.json",
6726 },
6727 "name": "@my/package",
6728 "scripts": Object {
6729 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
6730 },
6731 "tshy": Object {
6732 "exports": Object {
6733 ".": "./src/index.ts",
6734 "./foo": Object {
6735 "default": "./lib/foo-browser.js",
6736 "import": Array [
6737 Object {
6738 "types": "./lib/foo.d.mts",
6739 },
6740 "./lib/foo-import.mjs",
6741 ],
6742 "node": Object {
6743 "import": Array [
6744 Object {
6745 "types": "./lib/foo.d.mts",
6746 },
6747 "./lib/foo-node.mjs",
6748 ],
6749 "require": Array [
6750 Object {
6751 "types": "./lib/foo.d.cts",
6752 },
6753 "./lib/foo-node.cjs",
6754 ],
6755 },
6756 "require": Array [
6757 Object {
6758 "types": "./lib/foo.d.cts",
6759 },
6760 "./lib/foo-require.cjs",
6761 ],
6762 "types": "./lib/foo-global.d.ts",
6763 },
6764 "./package.json": "./package.json",
6765 },
6766 },
6767 "type": "module",
6768 },
6769 "src",
6770 ],
6771 ],
6772 Array [
6773 "self-link.unlink",
6774 Array [
6775 Object {
6776 "exports": Object {
6777 ".": Object {
6778 "import": Object {
6779 "default": "./dist/esm/index.js",
6780 "types": "./dist/esm/index.d.ts",
6781 },
6782 "require": Object {
6783 "default": "./dist/commonjs/index.js",
6784 "types": "./dist/commonjs/index.d.ts",
6785 },
6786 },
6787 "./foo": Object {
6788 "default": "./lib/foo-browser.js",
6789 "import": Array [
6790 Object {
6791 "types": "./lib/foo.d.mts",
6792 },
6793 "./lib/foo-import.mjs",
6794 ],
6795 "node": Object {
6796 "import": Array [
6797 Object {
6798 "types": "./lib/foo.d.mts",
6799 },
6800 "./lib/foo-node.mjs",
6801 ],
6802 "require": Array [
6803 Object {
6804 "types": "./lib/foo.d.cts",
6805 },
6806 "./lib/foo-node.cjs",
6807 ],
6808 },
6809 "require": Array [
6810 Object {
6811 "types": "./lib/foo.d.cts",
6812 },
6813 "./lib/foo-require.cjs",
6814 ],
6815 "types": "./lib/foo-global.d.ts",
6816 },
6817 "./package.json": "./package.json",
6818 },
6819 "imports": Object {
6820 "#c/*": "./lib/*.cjs",
6821 "#foo": Object {
6822 "default": "./lib/foo-browser.js",
6823 "import": Array [
6824 Object {
6825 "types": "./lib/foo.d.mts",
6826 },
6827 "./lib/foo-import.mjs",
6828 ],
6829 "node": Object {
6830 "import": Array [
6831 Object {
6832 "types": "./lib/foo.d.mts",
6833 },
6834 "./lib/foo-node.mjs",
6835 ],
6836 "require": Array [
6837 Object {
6838 "types": "./lib/foo.d.cts",
6839 },
6840 "./lib/foo-node.cjs",
6841 ],
6842 },
6843 "require": Array [
6844 Object {
6845 "types": "./lib/foo.d.cts",
6846 },
6847 "./lib/foo-require.cjs",
6848 ],
6849 "types": "./lib/foo-global.d.ts",
6850 },
6851 "#fs": "node:fs",
6852 "#m/*": "./lib/*.mjs",
6853 "#ri": "resolve-import",
6854 "#ri/*": "resolve-import/*",
6855 "#root": "./root.mjs",
6856 "#xp": "xyz/package.json",
6857 },
6858 "name": "@my/package",
6859 "scripts": Object {
6860 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
6861 },
6862 "tshy": Object {
6863 "exports": Object {
6864 ".": "./src/index.ts",
6865 "./foo": Object {
6866 "default": "./lib/foo-browser.js",
6867 "import": Array [
6868 Object {
6869 "types": "./lib/foo.d.mts",
6870 },
6871 "./lib/foo-import.mjs",
6872 ],
6873 "node": Object {
6874 "import": Array [
6875 Object {
6876 "types": "./lib/foo.d.mts",
6877 },
6878 "./lib/foo-node.mjs",
6879 ],
6880 "require": Array [
6881 Object {
6882 "types": "./lib/foo.d.cts",
6883 },
6884 "./lib/foo-node.cjs",
6885 ],
6886 },
6887 "require": Array [
6888 Object {
6889 "types": "./lib/foo.d.cts",
6890 },
6891 "./lib/foo-require.cjs",
6892 ],
6893 "types": "./lib/foo-global.d.ts",
6894 },
6895 "./package.json": "./package.json",
6896 },
6897 },
6898 "type": "module",
6899 },
6900 "src",
6901 ],
6902 ],
6903 Array [
6904 "self-link.link",
6905 Array [
6906 Object {
6907 "exports": Object {
6908 ".": Object {
6909 "import": Object {
6910 "default": "./dist/esm/index.js",
6911 "types": "./dist/esm/index.d.ts",
6912 },
6913 "require": Object {
6914 "default": "./dist/commonjs/index.js",
6915 "types": "./dist/commonjs/index.d.ts",
6916 },
6917 },
6918 "./foo": Object {
6919 "default": "./lib/foo-browser.js",
6920 "import": Array [
6921 Object {
6922 "types": "./lib/foo.d.mts",
6923 },
6924 "./lib/foo-import.mjs",
6925 ],
6926 "node": Object {
6927 "import": Array [
6928 Object {
6929 "types": "./lib/foo.d.mts",
6930 },
6931 "./lib/foo-node.mjs",
6932 ],
6933 "require": Array [
6934 Object {
6935 "types": "./lib/foo.d.cts",
6936 },
6937 "./lib/foo-node.cjs",
6938 ],
6939 },
6940 "require": Array [
6941 Object {
6942 "types": "./lib/foo.d.cts",
6943 },
6944 "./lib/foo-require.cjs",
6945 ],
6946 "types": "./lib/foo-global.d.ts",
6947 },
6948 "./package.json": "./package.json",
6949 },
6950 "imports": Object {
6951 "#c/*": "./lib/*.cjs",
6952 "#foo": Object {
6953 "default": "./lib/foo-browser.js",
6954 "import": Array [
6955 Object {
6956 "types": "./lib/foo.d.mts",
6957 },
6958 "./lib/foo-import.mjs",
6959 ],
6960 "node": Object {
6961 "import": Array [
6962 Object {
6963 "types": "./lib/foo.d.mts",
6964 },
6965 "./lib/foo-node.mjs",
6966 ],
6967 "require": Array [
6968 Object {
6969 "types": "./lib/foo.d.cts",
6970 },
6971 "./lib/foo-node.cjs",
6972 ],
6973 },
6974 "require": Array [
6975 Object {
6976 "types": "./lib/foo.d.cts",
6977 },
6978 "./lib/foo-require.cjs",
6979 ],
6980 "types": "./lib/foo-global.d.ts",
6981 },
6982 "#fs": "node:fs",
6983 "#m/*": "./lib/*.mjs",
6984 "#ri": "resolve-import",
6985 "#ri/*": "resolve-import/*",
6986 "#root": "./root.mjs",
6987 "#xp": "xyz/package.json",
6988 },
6989 "name": "@my/package",
6990 "scripts": Object {
6991 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
6992 },
6993 "tshy": Object {
6994 "exports": Object {
6995 ".": "./src/index.ts",
6996 "./foo": Object {
6997 "default": "./lib/foo-browser.js",
6998 "import": Array [
6999 Object {
7000 "types": "./lib/foo.d.mts",
7001 },
7002 "./lib/foo-import.mjs",
7003 ],
7004 "node": Object {
7005 "import": Array [
7006 Object {
7007 "types": "./lib/foo.d.mts",
7008 },
7009 "./lib/foo-node.mjs",
7010 ],
7011 "require": Array [
7012 Object {
7013 "types": "./lib/foo.d.cts",
7014 },
7015 "./lib/foo-node.cjs",
7016 ],
7017 },
7018 "require": Array [
7019 Object {
7020 "types": "./lib/foo.d.cts",
7021 },
7022 "./lib/foo-require.cjs",
7023 ],
7024 "types": "./lib/foo-global.d.ts",
7025 },
7026 "./package.json": "./package.json",
7027 },
7028 },
7029 "type": "module",
7030 },
7031 "dist",
7032 ],
7033 ],
7034 Array [
7035 "imports.link",
7036 Array [
7037 Object {
7038 "exports": Object {
7039 ".": Object {
7040 "import": Object {
7041 "default": "./dist/esm/index.js",
7042 "types": "./dist/esm/index.d.ts",
7043 },
7044 "require": Object {
7045 "default": "./dist/commonjs/index.js",
7046 "types": "./dist/commonjs/index.d.ts",
7047 },
7048 },
7049 "./foo": Object {
7050 "default": "./lib/foo-browser.js",
7051 "import": Array [
7052 Object {
7053 "types": "./lib/foo.d.mts",
7054 },
7055 "./lib/foo-import.mjs",
7056 ],
7057 "node": Object {
7058 "import": Array [
7059 Object {
7060 "types": "./lib/foo.d.mts",
7061 },
7062 "./lib/foo-node.mjs",
7063 ],
7064 "require": Array [
7065 Object {
7066 "types": "./lib/foo.d.cts",
7067 },
7068 "./lib/foo-node.cjs",
7069 ],
7070 },
7071 "require": Array [
7072 Object {
7073 "types": "./lib/foo.d.cts",
7074 },
7075 "./lib/foo-require.cjs",
7076 ],
7077 "types": "./lib/foo-global.d.ts",
7078 },
7079 "./package.json": "./package.json",
7080 },
7081 "imports": Object {
7082 "#c/*": "./lib/*.cjs",
7083 "#foo": Object {
7084 "default": "./lib/foo-browser.js",
7085 "import": Array [
7086 Object {
7087 "types": "./lib/foo.d.mts",
7088 },
7089 "./lib/foo-import.mjs",
7090 ],
7091 "node": Object {
7092 "import": Array [
7093 Object {
7094 "types": "./lib/foo.d.mts",
7095 },
7096 "./lib/foo-node.mjs",
7097 ],
7098 "require": Array [
7099 Object {
7100 "types": "./lib/foo.d.cts",
7101 },
7102 "./lib/foo-node.cjs",
7103 ],
7104 },
7105 "require": Array [
7106 Object {
7107 "types": "./lib/foo.d.cts",
7108 },
7109 "./lib/foo-require.cjs",
7110 ],
7111 "types": "./lib/foo-global.d.ts",
7112 },
7113 "#fs": "node:fs",
7114 "#m/*": "./lib/*.mjs",
7115 "#ri": "resolve-import",
7116 "#ri/*": "resolve-import/*",
7117 "#root": "./root.mjs",
7118 "#xp": "xyz/package.json",
7119 },
7120 "name": "@my/package",
7121 "scripts": Object {
7122 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
7123 },
7124 "tshy": Object {
7125 "exports": Object {
7126 ".": "./src/index.ts",
7127 "./foo": Object {
7128 "default": "./lib/foo-browser.js",
7129 "import": Array [
7130 Object {
7131 "types": "./lib/foo.d.mts",
7132 },
7133 "./lib/foo-import.mjs",
7134 ],
7135 "node": Object {
7136 "import": Array [
7137 Object {
7138 "types": "./lib/foo.d.mts",
7139 },
7140 "./lib/foo-node.mjs",
7141 ],
7142 "require": Array [
7143 Object {
7144 "types": "./lib/foo.d.cts",
7145 },
7146 "./lib/foo-node.cjs",
7147 ],
7148 },
7149 "require": Array [
7150 Object {
7151 "types": "./lib/foo.d.cts",
7152 },
7153 "./lib/foo-require.cjs",
7154 ],
7155 "types": "./lib/foo-global.d.ts",
7156 },
7157 "./package.json": "./package.json",
7158 },
7159 },
7160 "type": "module",
7161 },
7162 "dist/commonjs",
7163 true,
7164 ],
7165 ],
7166 Array [
7167 "imports.link",
7168 Array [
7169 Object {
7170 "exports": Object {
7171 ".": Object {
7172 "import": Object {
7173 "default": "./dist/esm/index.js",
7174 "types": "./dist/esm/index.d.ts",
7175 },
7176 "require": Object {
7177 "default": "./dist/commonjs/index.js",
7178 "types": "./dist/commonjs/index.d.ts",
7179 },
7180 },
7181 "./foo": Object {
7182 "default": "./lib/foo-browser.js",
7183 "import": Array [
7184 Object {
7185 "types": "./lib/foo.d.mts",
7186 },
7187 "./lib/foo-import.mjs",
7188 ],
7189 "node": Object {
7190 "import": Array [
7191 Object {
7192 "types": "./lib/foo.d.mts",
7193 },
7194 "./lib/foo-node.mjs",
7195 ],
7196 "require": Array [
7197 Object {
7198 "types": "./lib/foo.d.cts",
7199 },
7200 "./lib/foo-node.cjs",
7201 ],
7202 },
7203 "require": Array [
7204 Object {
7205 "types": "./lib/foo.d.cts",
7206 },
7207 "./lib/foo-require.cjs",
7208 ],
7209 "types": "./lib/foo-global.d.ts",
7210 },
7211 "./package.json": "./package.json",
7212 },
7213 "imports": Object {
7214 "#c/*": "./lib/*.cjs",
7215 "#foo": Object {
7216 "default": "./lib/foo-browser.js",
7217 "import": Array [
7218 Object {
7219 "types": "./lib/foo.d.mts",
7220 },
7221 "./lib/foo-import.mjs",
7222 ],
7223 "node": Object {
7224 "import": Array [
7225 Object {
7226 "types": "./lib/foo.d.mts",
7227 },
7228 "./lib/foo-node.mjs",
7229 ],
7230 "require": Array [
7231 Object {
7232 "types": "./lib/foo.d.cts",
7233 },
7234 "./lib/foo-node.cjs",
7235 ],
7236 },
7237 "require": Array [
7238 Object {
7239 "types": "./lib/foo.d.cts",
7240 },
7241 "./lib/foo-require.cjs",
7242 ],
7243 "types": "./lib/foo-global.d.ts",
7244 },
7245 "#fs": "node:fs",
7246 "#m/*": "./lib/*.mjs",
7247 "#ri": "resolve-import",
7248 "#ri/*": "resolve-import/*",
7249 "#root": "./root.mjs",
7250 "#xp": "xyz/package.json",
7251 },
7252 "name": "@my/package",
7253 "scripts": Object {
7254 "preinstall": "node -e \\"import(process.argv[1]).catch(()=>{})\\" dist/.tshy-link-imports.mjs",
7255 },
7256 "tshy": Object {
7257 "exports": Object {
7258 ".": "./src/index.ts",
7259 "./foo": Object {
7260 "default": "./lib/foo-browser.js",
7261 "import": Array [
7262 Object {
7263 "types": "./lib/foo.d.mts",
7264 },
7265 "./lib/foo-import.mjs",
7266 ],
7267 "node": Object {
7268 "import": Array [
7269 Object {
7270 "types": "./lib/foo.d.mts",
7271 },
7272 "./lib/foo-node.mjs",
7273 ],
7274 "require": Array [
7275 Object {
7276 "types": "./lib/foo.d.cts",
7277 },
7278 "./lib/foo-node.cjs",
7279 ],
7280 },
7281 "require": Array [
7282 Object {
7283 "types": "./lib/foo.d.cts",
7284 },
7285 "./lib/foo-require.cjs",
7286 ],
7287 "types": "./lib/foo-global.d.ts",
7288 },
7289 "./package.json": "./package.json",
7290 },
7291 },
7292 "type": "module",
7293 },
7294 "dist/esm",
7295 true,
7296 ],
7297 ],
7298 Array [
7299 "imports.save",
7300 Array [
7301 "dist/.tshy-link-imports.mjs",
7302 ],
7303 ],
7304 ]
7305 `
7306
7307 exports[`test/build.ts > TAP > liveDev > no envs > must match snapshot 1`] = `
7308 Array [
7309 Array [
7310 "self-link.link",
7311 Array [
7312 Object {
7313 "tshy": Object {
7314 "exports": Object {
7315 ".": "./src/index.ts",
7316 "./package.json": "./package.json",
7317 },
7318 "liveDev": true,
7319 },
7320 },
7321 "src",
7322 ],
7323 ],
7324 Array [
7325 "imports.link",
7326 Array [
7327 Object {
7328 "tshy": Object {
7329 "exports": Object {
7330 ".": "./src/index.ts",
7331 "./package.json": "./package.json",
7332 },
7333 "liveDev": true,
7334 },
7335 },
7336 "src",
7337 ],
7338 ],
7339 Array [
7340 "imports.unlink",
7341 Array [
7342 Object {
7343 "tshy": Object {
7344 "exports": Object {
7345 ".": "./src/index.ts",
7346 "./package.json": "./package.json",
7347 },
7348 "liveDev": true,
7349 },
7350 },
7351 "src",
7352 ],
7353 ],
7354 Array [
7355 "self-link.unlink",
7356 Array [
7357 Object {
7358 "tshy": Object {
7359 "exports": Object {
7360 ".": "./src/index.ts",
7361 "./package.json": "./package.json",
7362 },
7363 "liveDev": true,
7364 },
7365 },
7366 "src",
7367 ],
7368 ],
7369 Array [
7370 "self-link.link",
7371 Array [
7372 Object {
7373 "tshy": Object {
7374 "exports": Object {
7375 ".": "./src/index.ts",
7376 "./package.json": "./package.json",
7377 },
7378 "liveDev": true,
7379 },
7380 },
7381 "dist",
7382 ],
7383 ],
7384 Array [
7385 "self-link.link",
7386 Array [
7387 Object {
7388 "tshy": Object {
7389 "exports": Object {
7390 ".": "./src/index.ts",
7391 "./package.json": "./package.json",
7392 },
7393 "liveDev": true,
7394 },
7395 },
7396 "src",
7397 ],
7398 ],
7399 Array [
7400 "imports.link",
7401 Array [
7402 Object {
7403 "tshy": Object {
7404 "exports": Object {
7405 ".": "./src/index.ts",
7406 "./package.json": "./package.json",
7407 },
7408 "liveDev": true,
7409 },
7410 },
7411 "src",
7412 ],
7413 ],
7414 Array [
7415 "imports.unlink",
7416 Array [
7417 Object {
7418 "tshy": Object {
7419 "exports": Object {
7420 ".": "./src/index.ts",
7421 "./package.json": "./package.json",
7422 },
7423 "liveDev": true,
7424 },
7425 },
7426 "src",
7427 ],
7428 ],
7429 Array [
7430 "self-link.unlink",
7431 Array [
7432 Object {
7433 "tshy": Object {
7434 "exports": Object {
7435 ".": "./src/index.ts",
7436 "./package.json": "./package.json",
7437 },
7438 "liveDev": true,
7439 },
7440 },
7441 "src",
7442 ],
7443 ],
7444 Array [
7445 "self-link.link",
7446 Array [
7447 Object {
7448 "tshy": Object {
7449 "exports": Object {
7450 ".": "./src/index.ts",
7451 "./package.json": "./package.json",
7452 },
7453 "liveDev": true,
7454 },
7455 },
7456 "dist",
7457 ],
7458 ],
7459 ]
7460 `
7461
7462 exports[`test/build.ts > TAP > liveDev > pack > must match snapshot 1`] = `
7463 Array [
7464 Array [
7465 "self-link.link",
7466 Array [
7467 Object {
7468 "tshy": Object {
7469 "exports": Object {
7470 ".": "./src/index.ts",
7471 "./package.json": "./package.json",
7472 },
7473 "liveDev": true,
7474 },
7475 },
7476 "src",
7477 ],
7478 ],
7479 Array [
7480 "imports.link",
7481 Array [
7482 Object {
7483 "tshy": Object {
7484 "exports": Object {
7485 ".": "./src/index.ts",
7486 "./package.json": "./package.json",
7487 },
7488 "liveDev": true,
7489 },
7490 },
7491 "src",
7492 ],
7493 ],
7494 Array [
7495 "imports.unlink",
7496 Array [
7497 Object {
7498 "tshy": Object {
7499 "exports": Object {
7500 ".": "./src/index.ts",
7501 "./package.json": "./package.json",
7502 },
7503 "liveDev": true,
7504 },
7505 },
7506 "src",
7507 ],
7508 ],
7509 Array [
7510 "self-link.unlink",
7511 Array [
7512 Object {
7513 "tshy": Object {
7514 "exports": Object {
7515 ".": "./src/index.ts",
7516 "./package.json": "./package.json",
7517 },
7518 "liveDev": true,
7519 },
7520 },
7521 "src",
7522 ],
7523 ],
7524 Array [
7525 "self-link.link",
7526 Array [
7527 Object {
7528 "tshy": Object {
7529 "exports": Object {
7530 ".": "./src/index.ts",
7531 "./package.json": "./package.json",
7532 },
7533 "liveDev": true,
7534 },
7535 },
7536 "dist",
7537 ],
7538 ],
7539 Array [
7540 "self-link.link",
7541 Array [
7542 Object {
7543 "tshy": Object {
7544 "exports": Object {
7545 ".": "./src/index.ts",
7546 "./package.json": "./package.json",
7547 },
7548 "liveDev": true,
7549 },
7550 },
7551 "src",
7552 ],
7553 ],
7554 Array [
7555 "imports.link",
7556 Array [
7557 Object {
7558 "tshy": Object {
7559 "exports": Object {
7560 ".": "./src/index.ts",
7561 "./package.json": "./package.json",
7562 },
7563 "liveDev": true,
7564 },
7565 },
7566 "src",
7567 ],
7568 ],
7569 Array [
7570 "imports.unlink",
7571 Array [
7572 Object {
7573 "tshy": Object {
7574 "exports": Object {
7575 ".": "./src/index.ts",
7576 "./package.json": "./package.json",
7577 },
7578 "liveDev": true,
7579 },
7580 },
7581 "src",
7582 ],
7583 ],
7584 Array [
7585 "self-link.unlink",
7586 Array [
7587 Object {
7588 "tshy": Object {
7589 "exports": Object {
7590 ".": "./src/index.ts",
7591 "./package.json": "./package.json",
7592 },
7593 "liveDev": true,
7594 },
7595 },
7596 "src",
7597 ],
7598 ],
7599 Array [
7600 "self-link.link",
7601 Array [
7602 Object {
7603 "tshy": Object {
7604 "exports": Object {
7605 ".": "./src/index.ts",
7606 "./package.json": "./package.json",
7607 },
7608 "liveDev": true,
7609 },
7610 },
7611 "dist",
7612 ],
7613 ],
7614 Array [
7615 "self-link.link",
7616 Array [
7617 Object {
7618 "tshy": Object {
7619 "exports": Object {
7620 ".": "./src/index.ts",
7621 "./package.json": "./package.json",
7622 },
7623 "liveDev": true,
7624 },
7625 },
7626 "src",
7627 ],
7628 ],
7629 Array [
7630 "imports.link",
7631 Array [
7632 Object {
7633 "tshy": Object {
7634 "exports": Object {
7635 ".": "./src/index.ts",
7636 "./package.json": "./package.json",
7637 },
7638 "liveDev": true,
7639 },
7640 },
7641 "src",
7642 ],
7643 ],
7644 Array [
7645 "imports.unlink",
7646 Array [
7647 Object {
7648 "tshy": Object {
7649 "exports": Object {
7650 ".": "./src/index.ts",
7651 "./package.json": "./package.json",
7652 },
7653 "liveDev": true,
7654 },
7655 },
7656 "src",
7657 ],
7658 ],
7659 Array [
7660 "self-link.unlink",
7661 Array [
7662 Object {
7663 "tshy": Object {
7664 "exports": Object {
7665 ".": "./src/index.ts",
7666 "./package.json": "./package.json",
7667 },
7668 "liveDev": true,
7669 },
7670 },
7671 "src",
7672 ],
7673 ],
7674 Array [
7675 "self-link.link",
7676 Array [
7677 Object {
7678 "tshy": Object {
7679 "exports": Object {
7680 ".": "./src/index.ts",
7681 "./package.json": "./package.json",
7682 },
7683 "liveDev": true,
7684 },
7685 },
7686 "dist",
7687 ],
7688 ],
7689 ]
7690 `
7691
7692 exports[`test/build.ts > TAP > liveDev > publish > must match snapshot 1`] = `
7693 Array [
7694 Array [
7695 "self-link.link",
7696 Array [
7697 Object {
7698 "tshy": Object {
7699 "exports": Object {
7700 ".": "./src/index.ts",
7701 "./package.json": "./package.json",
7702 },
7703 "liveDev": true,
7704 },
7705 },
7706 "src",
7707 ],
7708 ],
7709 Array [
7710 "imports.link",
7711 Array [
7712 Object {
7713 "tshy": Object {
7714 "exports": Object {
7715 ".": "./src/index.ts",
7716 "./package.json": "./package.json",
7717 },
7718 "liveDev": true,
7719 },
7720 },
7721 "src",
7722 ],
7723 ],
7724 Array [
7725 "imports.unlink",
7726 Array [
7727 Object {
7728 "tshy": Object {
7729 "exports": Object {
7730 ".": "./src/index.ts",
7731 "./package.json": "./package.json",
7732 },
7733 "liveDev": true,
7734 },
7735 },
7736 "src",
7737 ],
7738 ],
7739 Array [
7740 "self-link.unlink",
7741 Array [
7742 Object {
7743 "tshy": Object {
7744 "exports": Object {
7745 ".": "./src/index.ts",
7746 "./package.json": "./package.json",
7747 },
7748 "liveDev": true,
7749 },
7750 },
7751 "src",
7752 ],
7753 ],
7754 Array [
7755 "self-link.link",
7756 Array [
7757 Object {
7758 "tshy": Object {
7759 "exports": Object {
7760 ".": "./src/index.ts",
7761 "./package.json": "./package.json",
7762 },
7763 "liveDev": true,
7764 },
7765 },
7766 "dist",
7767 ],
7768 ],
7769 Array [
7770 "self-link.link",
7771 Array [
7772 Object {
7773 "tshy": Object {
7774 "exports": Object {
7775 ".": "./src/index.ts",
7776 "./package.json": "./package.json",
7777 },
7778 "liveDev": true,
7779 },
7780 },
7781 "src",
7782 ],
7783 ],
7784 Array [
7785 "imports.link",
7786 Array [
7787 Object {
7788 "tshy": Object {
7789 "exports": Object {
7790 ".": "./src/index.ts",
7791 "./package.json": "./package.json",
7792 },
7793 "liveDev": true,
7794 },
7795 },
7796 "src",
7797 ],
7798 ],
7799 Array [
7800 "imports.unlink",
7801 Array [
7802 Object {
7803 "tshy": Object {
7804 "exports": Object {
7805 ".": "./src/index.ts",
7806 "./package.json": "./package.json",
7807 },
7808 "liveDev": true,
7809 },
7810 },
7811 "src",
7812 ],
7813 ],
7814 Array [
7815 "self-link.unlink",
7816 Array [
7817 Object {
7818 "tshy": Object {
7819 "exports": Object {
7820 ".": "./src/index.ts",
7821 "./package.json": "./package.json",
7822 },
7823 "liveDev": true,
7824 },
7825 },
7826 "src",
7827 ],
7828 ],
7829 Array [
7830 "self-link.link",
7831 Array [
7832 Object {
7833 "tshy": Object {
7834 "exports": Object {
7835 ".": "./src/index.ts",
7836 "./package.json": "./package.json",
7837 },
7838 "liveDev": true,
7839 },
7840 },
7841 "dist",
7842 ],
7843 ],
7844 Array [
7845 "self-link.link",
7846 Array [
7847 Object {
7848 "tshy": Object {
7849 "exports": Object {
7850 ".": "./src/index.ts",
7851 "./package.json": "./package.json",
7852 },
7853 "liveDev": true,
7854 },
7855 },
7856 "src",
7857 ],
7858 ],
7859 Array [
7860 "imports.link",
7861 Array [
7862 Object {
7863 "tshy": Object {
7864 "exports": Object {
7865 ".": "./src/index.ts",
7866 "./package.json": "./package.json",
7867 },
7868 "liveDev": true,
7869 },
7870 },
7871 "src",
7872 ],
7873 ],
7874 Array [
7875 "imports.unlink",
7876 Array [
7877 Object {
7878 "tshy": Object {
7879 "exports": Object {
7880 ".": "./src/index.ts",
7881 "./package.json": "./package.json",
7882 },
7883 "liveDev": true,
7884 },
7885 },
7886 "src",
7887 ],
7888 ],
7889 Array [
7890 "self-link.unlink",
7891 Array [
7892 Object {
7893 "tshy": Object {
7894 "exports": Object {
7895 ".": "./src/index.ts",
7896 "./package.json": "./package.json",
7897 },
7898 "liveDev": true,
7899 },
7900 },
7901 "src",
7902 ],
7903 ],
7904 Array [
7905 "self-link.link",
7906 Array [
7907 Object {
7908 "tshy": Object {
7909 "exports": Object {
7910 ".": "./src/index.ts",
7911 "./package.json": "./package.json",
7912 },
7913 "liveDev": true,
7914 },
7915 },
7916 "dist",
7917 ],
7918 ],
7919 Array [
7920 "self-link.link",
7921 Array [
7922 Object {
7923 "tshy": Object {
7924 "exports": Object {
7925 ".": "./src/index.ts",
7926 "./package.json": "./package.json",
7927 },
7928 "liveDev": true,
7929 },
7930 },
7931 "src",
7932 ],
7933 ],
7934 Array [
7935 "imports.link",
7936 Array [
7937 Object {
7938 "tshy": Object {
7939 "exports": Object {
7940 ".": "./src/index.ts",
7941 "./package.json": "./package.json",
7942 },
7943 "liveDev": true,
7944 },
7945 },
7946 "src",
7947 ],
7948 ],
7949 Array [
7950 "imports.unlink",
7951 Array [
7952 Object {
7953 "tshy": Object {
7954 "exports": Object {
7955 ".": "./src/index.ts",
7956 "./package.json": "./package.json",
7957 },
7958 "liveDev": true,
7959 },
7960 },
7961 "src",
7962 ],
7963 ],
7964 Array [
7965 "self-link.unlink",
7966 Array [
7967 Object {
7968 "tshy": Object {
7969 "exports": Object {
7970 ".": "./src/index.ts",
7971 "./package.json": "./package.json",
7972 },
7973 "liveDev": true,
7974 },
7975 },
7976 "src",
7977 ],
7978 ],
7979 Array [
7980 "self-link.link",
7981 Array [
7982 Object {
7983 "tshy": Object {
7984 "exports": Object {
7985 ".": "./src/index.ts",
7986 "./package.json": "./package.json",
7987 },
7988 "liveDev": true,
7989 },
7990 },
7991 "dist",
7992 ],
7993 ],
7994 ]
7995 `