zile 0.0.12 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -243,6 +243,182 @@ exports[`'/basic-object-exports': Cli.run > link > output 1`] = `
243
243
 
244
244
  exports[`'/basic-object-exports': Cli.run > link > types-target 1`] = `"../index.ts"`;
245
245
 
246
+ exports[`'/dts-exports': Cli.run > default > main 1`] = `
247
+ "export const foo = 'bar';
248
+ //# sourceMappingURL=index.js.map"
249
+ `;
250
+
251
+ exports[`'/dts-exports': Cli.run > default > output 1`] = `
252
+ "{
253
+ "name": "dts-exports",
254
+ "version": "0.0.0",
255
+ "type": "module",
256
+ "main": "./dist/index.js",
257
+ "exports": {
258
+ ".": {
259
+ "src": "./src/index.ts",
260
+ "types": "./dist/index.d.ts",
261
+ "default": "./dist/index.js"
262
+ },
263
+ "./globals": {
264
+ "types": "./dist/globals.d.ts",
265
+ "src": "./src/globals.d.ts"
266
+ }
267
+ },
268
+ "sideEffects": false,
269
+ "module": "./dist/index.js",
270
+ "types": "./dist/index.d.ts"
271
+ }
272
+
273
+
274
+
275
+ ├── dist
276
+ │ ├── globals.d.ts
277
+ │ ├── index.d.ts
278
+ │ ├── index.d.ts.map
279
+ │ ├── index.js
280
+ │ └── index.js.map
281
+ ├── src
282
+ │ ├── globals.d.ts
283
+ │ └── index.ts
284
+ ├── package.json
285
+ └── tsconfig.json
286
+ "
287
+ `;
288
+
289
+ exports[`'/dts-exports': Cli.run > default > types 1`] = `
290
+ "export declare const foo = "bar";
291
+ //# sourceMappingURL=index.d.ts.map"
292
+ `;
293
+
294
+ exports[`'/dts-exports': Cli.run > link > main-target 1`] = `"../src/index.ts"`;
295
+
296
+ exports[`'/dts-exports': Cli.run > link > output 1`] = `
297
+ "{
298
+ "name": "dts-exports",
299
+ "version": "0.0.0",
300
+ "type": "module",
301
+ "main": "./dist/index.js",
302
+ "exports": {
303
+ ".": {
304
+ "src": "./src/index.ts",
305
+ "types": "./dist/index.d.ts",
306
+ "default": "./dist/index.js"
307
+ },
308
+ "./globals": {
309
+ "types": "./dist/globals.d.ts",
310
+ "src": "./src/globals.d.ts"
311
+ }
312
+ },
313
+ "sideEffects": false,
314
+ "module": "./dist/index.js",
315
+ "types": "./dist/index.d.ts"
316
+ }
317
+
318
+
319
+
320
+ ├── dist
321
+ │ ├── globals.d.ts -> ../src/globals.d.ts
322
+ │ ├── index.d.ts -> ../src/index.ts
323
+ │ └── index.js -> ../src/index.ts
324
+ ├── src
325
+ │ ├── globals.d.ts
326
+ │ └── index.ts
327
+ ├── package.json
328
+ └── tsconfig.json
329
+ "
330
+ `;
331
+
332
+ exports[`'/dts-exports': Cli.run > link > types-target 1`] = `"../src/index.ts"`;
333
+
334
+ exports[`'/dts-exports-object': Cli.run > default > main 1`] = `
335
+ "export const foo = 'bar';
336
+ //# sourceMappingURL=index.js.map"
337
+ `;
338
+
339
+ exports[`'/dts-exports-object': Cli.run > default > output 1`] = `
340
+ "{
341
+ "name": "dts-exports-object",
342
+ "version": "0.0.0",
343
+ "type": "module",
344
+ "main": "./dist/index.js",
345
+ "exports": {
346
+ ".": {
347
+ "src": "./src/index.ts",
348
+ "types": "./dist/index.d.ts",
349
+ "default": "./dist/index.js"
350
+ },
351
+ "./globals": {
352
+ "types": "./dist/globals.d.ts",
353
+ "src": "./src/globals.d.ts"
354
+ }
355
+ },
356
+ "sideEffects": false,
357
+ "module": "./dist/index.js",
358
+ "types": "./dist/index.d.ts"
359
+ }
360
+
361
+
362
+
363
+ ├── dist
364
+ │ ├── globals.d.ts
365
+ │ ├── index.d.ts
366
+ │ ├── index.d.ts.map
367
+ │ ├── index.js
368
+ │ └── index.js.map
369
+ ├── src
370
+ │ ├── globals.d.ts
371
+ │ └── index.ts
372
+ ├── package.json
373
+ └── tsconfig.json
374
+ "
375
+ `;
376
+
377
+ exports[`'/dts-exports-object': Cli.run > default > types 1`] = `
378
+ "export declare const foo = "bar";
379
+ //# sourceMappingURL=index.d.ts.map"
380
+ `;
381
+
382
+ exports[`'/dts-exports-object': Cli.run > link > main-target 1`] = `"../src/index.ts"`;
383
+
384
+ exports[`'/dts-exports-object': Cli.run > link > output 1`] = `
385
+ "{
386
+ "name": "dts-exports-object",
387
+ "version": "0.0.0",
388
+ "type": "module",
389
+ "main": "./dist/index.js",
390
+ "exports": {
391
+ ".": {
392
+ "src": "./src/index.ts",
393
+ "types": "./dist/index.d.ts",
394
+ "default": "./dist/index.js"
395
+ },
396
+ "./globals": {
397
+ "types": "./dist/globals.d.ts",
398
+ "src": "./src/globals.d.ts"
399
+ }
400
+ },
401
+ "sideEffects": false,
402
+ "module": "./dist/index.js",
403
+ "types": "./dist/index.d.ts"
404
+ }
405
+
406
+
407
+
408
+ ├── dist
409
+ │ ├── globals.d.ts -> ../src/globals.d.ts
410
+ │ ├── index.d.ts -> ../src/index.ts
411
+ │ └── index.js -> ../src/index.ts
412
+ ├── src
413
+ │ ├── globals.d.ts
414
+ │ └── index.ts
415
+ ├── package.json
416
+ └── tsconfig.json
417
+ "
418
+ `;
419
+
420
+ exports[`'/dts-exports-object': Cli.run > link > types-target 1`] = `"../src/index.ts"`;
421
+
246
422
  exports[`'/multiple-entrypoint': Cli.run > default > main 1`] = `
247
423
  "import { bar as bar1, foo as foo1 } from './foo.js';
248
424
  export function foo(options = {}) {
@@ -501,6 +501,436 @@ exports[`'/basic-object-exports': Package.build > link > result 1`] = `
501
501
 
502
502
  exports[`'/basic-object-exports': Package.build > link > types-target 1`] = `"../index.ts"`;
503
503
 
504
+ exports[`'/dts-exports': Package.build > default > check 1`] = `
505
+ {
506
+ "output": {
507
+ "attw": "
508
+ dts-exports v0.0.0
509
+
510
+ (ignoring resolutions: 'node10', 'node16-cjs')
511
+
512
+ (ignored per resolution) ⚠️ A require call resolved to an ESM JavaScript file, which is an error in Node and some bundlers. CommonJS consumers will need to use a dynamic import. https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/CJSResolvesToESM.md
513
+
514
+ (ignored per resolution) 💀 Import failed to resolve to type declarations or JavaScript files. https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/NoResolution.md
515
+
516
+
517
+ "dts-exports"
518
+
519
+ node16 (from ESM): 🟢 (ESM)
520
+ bundler: 🟢
521
+ node10: (ignored) 🟢
522
+ node16 (from CJS): (ignored) ⚠️ ESM (dynamic import only)
523
+
524
+ ***********************************
525
+
526
+ "dts-exports/globals"
527
+
528
+ node16 (from ESM): 🟢 (ESM)
529
+ bundler: 🟢
530
+ node10: (ignored) 💀 Resolution failed
531
+ node16 (from CJS): (ignored) ⚠️ ESM (dynamic import only)
532
+
533
+ ***********************************
534
+ ",
535
+ "publint": "Running publint v0.3.14 for dts-exports...
536
+ Packing files with \`bun pack\`...
537
+ Linting...
538
+ All good!
539
+ ",
540
+ },
541
+ }
542
+ `;
543
+
544
+ exports[`'/dts-exports': Package.build > default > main 1`] = `
545
+ "export const foo = 'bar';
546
+ //# sourceMappingURL=index.js.map"
547
+ `;
548
+
549
+ exports[`'/dts-exports': Package.build > default > output 1`] = `
550
+ "{
551
+ "name": "dts-exports",
552
+ "version": "0.0.0",
553
+ "type": "module",
554
+ "main": "./dist/index.js",
555
+ "exports": {
556
+ ".": {
557
+ "src": "./src/index.ts",
558
+ "types": "./dist/index.d.ts",
559
+ "default": "./dist/index.js"
560
+ },
561
+ "./globals": {
562
+ "types": "./dist/globals.d.ts",
563
+ "src": "./src/globals.d.ts"
564
+ }
565
+ },
566
+ "sideEffects": false,
567
+ "module": "./dist/index.js",
568
+ "types": "./dist/index.d.ts"
569
+ }
570
+
571
+
572
+
573
+ ├── dist
574
+ │ ├── globals.d.ts
575
+ │ ├── index.d.ts
576
+ │ ├── index.d.ts.map
577
+ │ ├── index.js
578
+ │ └── index.js.map
579
+ ├── src
580
+ │ ├── globals.d.ts
581
+ │ └── index.ts
582
+ ├── package.json
583
+ └── tsconfig.json
584
+ "
585
+ `;
586
+
587
+ exports[`'/dts-exports': Package.build > default > result 1`] = `
588
+ {
589
+ "packageJson": {
590
+ "exports": {
591
+ ".": {
592
+ "default": "./dist/index.js",
593
+ "src": "./src/index.ts",
594
+ "types": "./dist/index.d.ts",
595
+ },
596
+ "./globals": {
597
+ "src": "./src/globals.d.ts",
598
+ "types": "./dist/globals.d.ts",
599
+ },
600
+ },
601
+ "main": "./dist/index.js",
602
+ "module": "./dist/index.js",
603
+ "name": "dts-exports",
604
+ "sideEffects": false,
605
+ "type": "module",
606
+ "types": "./dist/index.d.ts",
607
+ "version": "0.0.0",
608
+ },
609
+ "tsConfig": {
610
+ "compilerOptions": {
611
+ "composite": false,
612
+ "declaration": true,
613
+ "declarationDir": undefined,
614
+ "declarationMap": true,
615
+ "emitDeclarationOnly": false,
616
+ "esModuleInterop": true,
617
+ "isolatedModules": true,
618
+ "module": "nodenext",
619
+ "moduleDetection": "force",
620
+ "moduleResolution": "nodenext",
621
+ "noEmit": false,
622
+ "outDir": "/repos/dts-exports/dist",
623
+ "skipLibCheck": true,
624
+ "sourceMap": true,
625
+ "strict": true,
626
+ "target": "es2021",
627
+ "verbatimModuleSyntax": true,
628
+ },
629
+ "exclude": [],
630
+ "include": [
631
+ "/repos/dts-exports/src/index.ts",
632
+ ],
633
+ },
634
+ }
635
+ `;
636
+
637
+ exports[`'/dts-exports': Package.build > default > types 1`] = `
638
+ "export declare const foo = "bar";
639
+ //# sourceMappingURL=index.d.ts.map"
640
+ `;
641
+
642
+ exports[`'/dts-exports': Package.build > link > main-target 1`] = `"../src/index.ts"`;
643
+
644
+ exports[`'/dts-exports': Package.build > link > output 1`] = `
645
+ "{
646
+ "name": "dts-exports",
647
+ "version": "0.0.0",
648
+ "type": "module",
649
+ "main": "./dist/index.js",
650
+ "exports": {
651
+ ".": {
652
+ "src": "./src/index.ts",
653
+ "types": "./dist/index.d.ts",
654
+ "default": "./dist/index.js"
655
+ },
656
+ "./globals": {
657
+ "types": "./dist/globals.d.ts",
658
+ "src": "./src/globals.d.ts"
659
+ }
660
+ },
661
+ "sideEffects": false,
662
+ "module": "./dist/index.js",
663
+ "types": "./dist/index.d.ts"
664
+ }
665
+
666
+
667
+
668
+ ├── dist
669
+ │ ├── globals.d.ts -> ../src/globals.d.ts
670
+ │ ├── index.d.ts -> ../src/index.ts
671
+ │ └── index.js -> ../src/index.ts
672
+ ├── src
673
+ │ ├── globals.d.ts
674
+ │ └── index.ts
675
+ ├── package.json
676
+ └── tsconfig.json
677
+ "
678
+ `;
679
+
680
+ exports[`'/dts-exports': Package.build > link > result 1`] = `
681
+ {
682
+ "packageJson": {
683
+ "exports": {
684
+ ".": {
685
+ "default": "./dist/index.js",
686
+ "src": "./src/index.ts",
687
+ "types": "./dist/index.d.ts",
688
+ },
689
+ "./globals": {
690
+ "src": "./src/globals.d.ts",
691
+ "types": "./dist/globals.d.ts",
692
+ },
693
+ },
694
+ "main": "./dist/index.js",
695
+ "module": "./dist/index.js",
696
+ "name": "dts-exports",
697
+ "sideEffects": false,
698
+ "type": "module",
699
+ "types": "./dist/index.d.ts",
700
+ "version": "0.0.0",
701
+ },
702
+ "tsConfig": {
703
+ "compilerOptions": {
704
+ "isolatedModules": true,
705
+ "module": "nodenext",
706
+ "moduleDetection": "force",
707
+ "moduleResolution": "nodenext",
708
+ "noEmit": true,
709
+ "skipLibCheck": true,
710
+ "strict": true,
711
+ "verbatimModuleSyntax": true,
712
+ },
713
+ },
714
+ }
715
+ `;
716
+
717
+ exports[`'/dts-exports': Package.build > link > types-target 1`] = `"../src/index.ts"`;
718
+
719
+ exports[`'/dts-exports-object': Package.build > default > check 1`] = `
720
+ {
721
+ "output": {
722
+ "attw": "
723
+ dts-exports-object v0.0.0
724
+
725
+ (ignoring resolutions: 'node10', 'node16-cjs')
726
+
727
+ (ignored per resolution) ⚠️ A require call resolved to an ESM JavaScript file, which is an error in Node and some bundlers. CommonJS consumers will need to use a dynamic import. https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/CJSResolvesToESM.md
728
+
729
+ (ignored per resolution) 💀 Import failed to resolve to type declarations or JavaScript files. https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/NoResolution.md
730
+
731
+
732
+ "dts-exports-object"
733
+
734
+ node16 (from ESM): 🟢 (ESM)
735
+ bundler: 🟢
736
+ node10: (ignored) 🟢
737
+ node16 (from CJS): (ignored) ⚠️ ESM (dynamic import only)
738
+
739
+ ***********************************
740
+
741
+ "dts-exports-object/globals"
742
+
743
+ node16 (from ESM): 🟢 (ESM)
744
+ bundler: 🟢
745
+ node10: (ignored) 💀 Resolution failed
746
+ node16 (from CJS): (ignored) ⚠️ ESM (dynamic import only)
747
+
748
+ ***********************************
749
+ ",
750
+ "publint": "Running publint v0.3.14 for dts-exports-object...
751
+ Packing files with \`bun pack\`...
752
+ Linting...
753
+ All good!
754
+ ",
755
+ },
756
+ }
757
+ `;
758
+
759
+ exports[`'/dts-exports-object': Package.build > default > main 1`] = `
760
+ "export const foo = 'bar';
761
+ //# sourceMappingURL=index.js.map"
762
+ `;
763
+
764
+ exports[`'/dts-exports-object': Package.build > default > output 1`] = `
765
+ "{
766
+ "name": "dts-exports-object",
767
+ "version": "0.0.0",
768
+ "type": "module",
769
+ "main": "./dist/index.js",
770
+ "exports": {
771
+ ".": {
772
+ "src": "./src/index.ts",
773
+ "types": "./dist/index.d.ts",
774
+ "default": "./dist/index.js"
775
+ },
776
+ "./globals": {
777
+ "types": "./dist/globals.d.ts",
778
+ "src": "./src/globals.d.ts"
779
+ }
780
+ },
781
+ "sideEffects": false,
782
+ "module": "./dist/index.js",
783
+ "types": "./dist/index.d.ts"
784
+ }
785
+
786
+
787
+
788
+ ├── dist
789
+ │ ├── globals.d.ts
790
+ │ ├── index.d.ts
791
+ │ ├── index.d.ts.map
792
+ │ ├── index.js
793
+ │ └── index.js.map
794
+ ├── src
795
+ │ ├── globals.d.ts
796
+ │ └── index.ts
797
+ ├── package.json
798
+ └── tsconfig.json
799
+ "
800
+ `;
801
+
802
+ exports[`'/dts-exports-object': Package.build > default > result 1`] = `
803
+ {
804
+ "packageJson": {
805
+ "exports": {
806
+ ".": {
807
+ "default": "./dist/index.js",
808
+ "src": "./src/index.ts",
809
+ "types": "./dist/index.d.ts",
810
+ },
811
+ "./globals": {
812
+ "src": "./src/globals.d.ts",
813
+ "types": "./dist/globals.d.ts",
814
+ },
815
+ },
816
+ "main": "./dist/index.js",
817
+ "module": "./dist/index.js",
818
+ "name": "dts-exports-object",
819
+ "sideEffects": false,
820
+ "type": "module",
821
+ "types": "./dist/index.d.ts",
822
+ "version": "0.0.0",
823
+ },
824
+ "tsConfig": {
825
+ "compilerOptions": {
826
+ "composite": false,
827
+ "declaration": true,
828
+ "declarationDir": undefined,
829
+ "declarationMap": true,
830
+ "emitDeclarationOnly": false,
831
+ "esModuleInterop": true,
832
+ "isolatedModules": true,
833
+ "module": "nodenext",
834
+ "moduleDetection": "force",
835
+ "moduleResolution": "nodenext",
836
+ "noEmit": false,
837
+ "outDir": "/repos/dts-exports-object/dist",
838
+ "skipLibCheck": true,
839
+ "sourceMap": true,
840
+ "strict": true,
841
+ "target": "es2021",
842
+ "verbatimModuleSyntax": true,
843
+ },
844
+ "exclude": [],
845
+ "include": [
846
+ "/repos/dts-exports-object/src/index.ts",
847
+ ],
848
+ },
849
+ }
850
+ `;
851
+
852
+ exports[`'/dts-exports-object': Package.build > default > types 1`] = `
853
+ "export declare const foo = "bar";
854
+ //# sourceMappingURL=index.d.ts.map"
855
+ `;
856
+
857
+ exports[`'/dts-exports-object': Package.build > link > main-target 1`] = `"../src/index.ts"`;
858
+
859
+ exports[`'/dts-exports-object': Package.build > link > output 1`] = `
860
+ "{
861
+ "name": "dts-exports-object",
862
+ "version": "0.0.0",
863
+ "type": "module",
864
+ "main": "./dist/index.js",
865
+ "exports": {
866
+ ".": {
867
+ "src": "./src/index.ts",
868
+ "types": "./dist/index.d.ts",
869
+ "default": "./dist/index.js"
870
+ },
871
+ "./globals": {
872
+ "types": "./dist/globals.d.ts",
873
+ "src": "./src/globals.d.ts"
874
+ }
875
+ },
876
+ "sideEffects": false,
877
+ "module": "./dist/index.js",
878
+ "types": "./dist/index.d.ts"
879
+ }
880
+
881
+
882
+
883
+ ├── dist
884
+ │ ├── globals.d.ts -> ../src/globals.d.ts
885
+ │ ├── index.d.ts -> ../src/index.ts
886
+ │ └── index.js -> ../src/index.ts
887
+ ├── src
888
+ │ ├── globals.d.ts
889
+ │ └── index.ts
890
+ ├── package.json
891
+ └── tsconfig.json
892
+ "
893
+ `;
894
+
895
+ exports[`'/dts-exports-object': Package.build > link > result 1`] = `
896
+ {
897
+ "packageJson": {
898
+ "exports": {
899
+ ".": {
900
+ "default": "./dist/index.js",
901
+ "src": "./src/index.ts",
902
+ "types": "./dist/index.d.ts",
903
+ },
904
+ "./globals": {
905
+ "src": "./src/globals.d.ts",
906
+ "types": "./dist/globals.d.ts",
907
+ },
908
+ },
909
+ "main": "./dist/index.js",
910
+ "module": "./dist/index.js",
911
+ "name": "dts-exports-object",
912
+ "sideEffects": false,
913
+ "type": "module",
914
+ "types": "./dist/index.d.ts",
915
+ "version": "0.0.0",
916
+ },
917
+ "tsConfig": {
918
+ "compilerOptions": {
919
+ "isolatedModules": true,
920
+ "module": "nodenext",
921
+ "moduleDetection": "force",
922
+ "moduleResolution": "nodenext",
923
+ "noEmit": true,
924
+ "skipLibCheck": true,
925
+ "strict": true,
926
+ "verbatimModuleSyntax": true,
927
+ },
928
+ },
929
+ }
930
+ `;
931
+
932
+ exports[`'/dts-exports-object': Package.build > link > types-target 1`] = `"../src/index.ts"`;
933
+
504
934
  exports[`'/error-bin-object-not-exists': Package.build > default > error 1`] = `[Error: \`./non-existent-cli.ts\` does not exist on \`package.json#bin.cli\`]`;
505
935
 
506
936
  exports[`'/error-bin-string-not-exists': Package.build > default > error 1`] = `[Error: \`./non-existent.ts\` does not exist on \`package.json#bin\`]`;