zile 0.0.0 → 0.0.2

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.
@@ -0,0 +1,471 @@
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
+
3
+ exports[`'/basic': Cli.run > default > main 1`] = `
4
+ "import { bar as bar1, foo as foo1 } from './foo.js';
5
+ export function foo(options = {}) {
6
+ foo1(options);
7
+ console.log('Hello, foo!', options.value);
8
+ }
9
+ export function bar(options = {}) {
10
+ bar1(options);
11
+ console.log('Hello, bar!', options.value);
12
+ }
13
+ (function (bar) {
14
+ function baz(options = {}) {
15
+ console.log('Hello, baz!', options.value);
16
+ }
17
+ bar.baz = baz;
18
+ })(bar || (bar = {}));
19
+ //# sourceMappingURL=index.js.map"
20
+ `;
21
+
22
+ exports[`'/basic': Cli.run > default > output 1`] = `
23
+ "{
24
+ "name": "basic",
25
+ "version": "0.0.0",
26
+ "type": "module",
27
+ "bin": {
28
+ "basic": "./dist/cli.js",
29
+ "basic.src": "./cli.ts"
30
+ },
31
+ "main": "./dist/index.js",
32
+ "sideEffects": false,
33
+ "module": "./dist/index.js",
34
+ "types": "./dist/index.d.ts",
35
+ "exports": {
36
+ ".": {
37
+ "src": "./index.ts",
38
+ "types": "./dist/index.d.ts",
39
+ "default": "./dist/index.js"
40
+ }
41
+ }
42
+ }
43
+
44
+
45
+ ├── dist
46
+ │ ├── cli.d.ts
47
+ │ ├── cli.d.ts.map
48
+ │ ├── cli.js
49
+ │ ├── cli.js.map
50
+ │ ├── foo.d.ts
51
+ │ ├── foo.d.ts.map
52
+ │ ├── foo.js
53
+ │ ├── foo.js.map
54
+ │ ├── index.d.ts
55
+ │ ├── index.d.ts.map
56
+ │ ├── index.js
57
+ │ └── index.js.map
58
+ ├── cli.ts
59
+ ├── foo.ts
60
+ ├── index.ts
61
+ ├── package.json
62
+ └── tsconfig.json
63
+ "
64
+ `;
65
+
66
+ exports[`'/basic': Cli.run > default > types 1`] = `
67
+ "export declare function foo(options?: foo.Options): void;
68
+ export declare namespace foo {
69
+ type Options = {
70
+ value?: string | undefined;
71
+ };
72
+ }
73
+ export declare function bar(options?: bar.Options): void;
74
+ export declare namespace bar {
75
+ type Options = {
76
+ value?: string | undefined;
77
+ };
78
+ function baz(options?: Options): void;
79
+ }
80
+ //# sourceMappingURL=index.d.ts.map"
81
+ `;
82
+
83
+ exports[`'/basic': Cli.run > link > main-target 1`] = `"../index.ts"`;
84
+
85
+ exports[`'/basic': Cli.run > link > output 1`] = `
86
+ "{
87
+ "name": "basic",
88
+ "version": "0.0.0",
89
+ "type": "module",
90
+ "bin": {
91
+ "basic": "./dist/cli.js",
92
+ "basic.src": "./cli.ts"
93
+ },
94
+ "main": "./dist/index.js",
95
+ "sideEffects": false,
96
+ "module": "./dist/index.js",
97
+ "types": "./dist/index.d.ts",
98
+ "exports": {
99
+ ".": {
100
+ "src": "./index.ts",
101
+ "types": "./dist/index.d.ts",
102
+ "default": "./dist/index.js"
103
+ }
104
+ }
105
+ }
106
+
107
+
108
+ ├── dist
109
+ │ ├── index.d.ts -> ../index.ts
110
+ │ └── index.js -> ../index.ts
111
+ ├── cli.ts
112
+ ├── foo.ts
113
+ ├── index.ts
114
+ ├── package.json
115
+ └── tsconfig.json
116
+ "
117
+ `;
118
+
119
+ exports[`'/basic': Cli.run > link > types-target 1`] = `"../index.ts"`;
120
+
121
+ exports[`'/basic-object-exports': Cli.run > default > main 1`] = `
122
+ "import { bar as bar1, foo as foo1 } from './foo.js';
123
+ export function foo(options = {}) {
124
+ foo1(options);
125
+ console.log('Hello, foo!', options.value);
126
+ }
127
+ export function bar(options = {}) {
128
+ bar1(options);
129
+ console.log('Hello, bar!', options.value);
130
+ }
131
+ (function (bar) {
132
+ function baz(options = {}) {
133
+ console.log('Hello, baz!', options.value);
134
+ }
135
+ bar.baz = baz;
136
+ })(bar || (bar = {}));
137
+ //# sourceMappingURL=index.js.map"
138
+ `;
139
+
140
+ exports[`'/basic-object-exports': Cli.run > default > output 1`] = `
141
+ "{
142
+ "name": "basic",
143
+ "version": "0.0.0",
144
+ "type": "module",
145
+ "exports": {
146
+ ".": {
147
+ "src": "./index.ts",
148
+ "types": "./dist/index.d.ts",
149
+ "default": "./dist/index.js"
150
+ }
151
+ },
152
+ "sideEffects": false,
153
+ "main": "./dist/index.js",
154
+ "module": "./dist/index.js",
155
+ "types": "./dist/index.d.ts"
156
+ }
157
+
158
+
159
+ ├── dist
160
+ │ ├── foo.d.ts
161
+ │ ├── foo.d.ts.map
162
+ │ ├── foo.js
163
+ │ ├── foo.js.map
164
+ │ ├── index.d.ts
165
+ │ ├── index.d.ts.map
166
+ │ ├── index.js
167
+ │ └── index.js.map
168
+ ├── foo.ts
169
+ ├── index.ts
170
+ ├── package.json
171
+ └── tsconfig.json
172
+ "
173
+ `;
174
+
175
+ exports[`'/basic-object-exports': Cli.run > default > types 1`] = `
176
+ "export declare function foo(options?: foo.Options): void;
177
+ export declare namespace foo {
178
+ type Options = {
179
+ value?: string | undefined;
180
+ };
181
+ }
182
+ export declare function bar(options?: bar.Options): void;
183
+ export declare namespace bar {
184
+ type Options = {
185
+ value?: string | undefined;
186
+ };
187
+ function baz(options?: Options): void;
188
+ }
189
+ //# sourceMappingURL=index.d.ts.map"
190
+ `;
191
+
192
+ exports[`'/basic-object-exports': Cli.run > link > main-target 1`] = `"../index.ts"`;
193
+
194
+ exports[`'/basic-object-exports': Cli.run > link > output 1`] = `
195
+ "{
196
+ "name": "basic",
197
+ "version": "0.0.0",
198
+ "type": "module",
199
+ "exports": {
200
+ ".": {
201
+ "src": "./index.ts",
202
+ "types": "./dist/index.d.ts",
203
+ "default": "./dist/index.js"
204
+ }
205
+ },
206
+ "sideEffects": false,
207
+ "main": "./dist/index.js",
208
+ "module": "./dist/index.js",
209
+ "types": "./dist/index.d.ts"
210
+ }
211
+
212
+
213
+ ├── dist
214
+ │ ├── index.d.ts -> ../index.ts
215
+ │ └── index.js -> ../index.ts
216
+ ├── foo.ts
217
+ ├── index.ts
218
+ ├── package.json
219
+ └── tsconfig.json
220
+ "
221
+ `;
222
+
223
+ exports[`'/basic-object-exports': Cli.run > link > types-target 1`] = `"../index.ts"`;
224
+
225
+ exports[`'/multiple-entrypoint': Cli.run > default > main 1`] = `
226
+ "import { bar as bar1, foo as foo1 } from './foo.js';
227
+ export function foo(options = {}) {
228
+ foo1(options);
229
+ console.log('Hello, foo!', options.value);
230
+ }
231
+ export function bar(options = {}) {
232
+ bar1(options);
233
+ console.log('Hello, bar!', options.value);
234
+ }
235
+ (function (bar) {
236
+ function baz(options = {}) {
237
+ console.log('Hello, baz!', options.value);
238
+ }
239
+ bar.baz = baz;
240
+ })(bar || (bar = {}));
241
+ //# sourceMappingURL=index.js.map"
242
+ `;
243
+
244
+ exports[`'/multiple-entrypoint': Cli.run > default > output 1`] = `
245
+ "{
246
+ "name": "multiple-entrypoint",
247
+ "version": "0.0.0",
248
+ "type": "module",
249
+ "exports": {
250
+ ".": {
251
+ "src": "./src/index.ts",
252
+ "types": "./dist/index.d.ts",
253
+ "default": "./dist/index.js"
254
+ },
255
+ "./foo": {
256
+ "src": "./src/foo.ts",
257
+ "types": "./dist/foo.d.ts",
258
+ "default": "./dist/foo.js"
259
+ },
260
+ "./nested/dir": {
261
+ "src": "./src/nested/dir/bar.ts",
262
+ "types": "./dist/nested/dir/bar.d.ts",
263
+ "default": "./dist/nested/dir/bar.js"
264
+ }
265
+ },
266
+ "sideEffects": false,
267
+ "main": "./dist/index.js",
268
+ "module": "./dist/index.js",
269
+ "types": "./dist/index.d.ts"
270
+ }
271
+
272
+
273
+ ├── dist
274
+ │ ├── nested
275
+ │ │ └── dir
276
+ │ │ ├── bar.d.ts
277
+ │ │ ├── bar.d.ts.map
278
+ │ │ ├── bar.js
279
+ │ │ └── bar.js.map
280
+ │ ├── foo.d.ts
281
+ │ ├── foo.d.ts.map
282
+ │ ├── foo.js
283
+ │ ├── foo.js.map
284
+ │ ├── index.d.ts
285
+ │ ├── index.d.ts.map
286
+ │ ├── index.js
287
+ │ └── index.js.map
288
+ ├── src
289
+ │ ├── nested
290
+ │ │ └── dir
291
+ │ │ └── bar.ts
292
+ │ ├── foo.ts
293
+ │ └── index.ts
294
+ ├── package.json
295
+ └── tsconfig.json
296
+ "
297
+ `;
298
+
299
+ exports[`'/multiple-entrypoint': Cli.run > default > types 1`] = `
300
+ "export declare function foo(options?: foo.Options): void;
301
+ export declare namespace foo {
302
+ type Options = {
303
+ value?: string | undefined;
304
+ };
305
+ }
306
+ export declare function bar(options?: bar.Options): void;
307
+ export declare namespace bar {
308
+ type Options = {
309
+ value?: string | undefined;
310
+ };
311
+ function baz(options?: Options): void;
312
+ }
313
+ //# sourceMappingURL=index.d.ts.map"
314
+ `;
315
+
316
+ exports[`'/multiple-entrypoint': Cli.run > link > main-target 1`] = `"../src/index.ts"`;
317
+
318
+ exports[`'/multiple-entrypoint': Cli.run > link > output 1`] = `
319
+ "{
320
+ "name": "multiple-entrypoint",
321
+ "version": "0.0.0",
322
+ "type": "module",
323
+ "exports": {
324
+ ".": {
325
+ "src": "./src/index.ts",
326
+ "types": "./dist/index.d.ts",
327
+ "default": "./dist/index.js"
328
+ },
329
+ "./foo": {
330
+ "src": "./src/foo.ts",
331
+ "types": "./dist/foo.d.ts",
332
+ "default": "./dist/foo.js"
333
+ },
334
+ "./nested/dir": {
335
+ "src": "./src/nested/dir/bar.ts",
336
+ "types": "./dist/nested/dir/bar.d.ts",
337
+ "default": "./dist/nested/dir/bar.js"
338
+ }
339
+ },
340
+ "sideEffects": false,
341
+ "main": "./dist/index.js",
342
+ "module": "./dist/index.js",
343
+ "types": "./dist/index.d.ts"
344
+ }
345
+
346
+
347
+ ├── dist
348
+ │ ├── nested
349
+ │ │ └── dir
350
+ │ │ ├── bar.d.ts -> ../../../src/nested/dir/bar.ts
351
+ │ │ └── bar.js -> ../../../src/nested/dir/bar.ts
352
+ │ ├── foo.d.ts -> ../src/foo.ts
353
+ │ ├── foo.js -> ../src/foo.ts
354
+ │ ├── index.d.ts -> ../src/index.ts
355
+ │ └── index.js -> ../src/index.ts
356
+ ├── src
357
+ │ ├── nested
358
+ │ │ └── dir
359
+ │ │ └── bar.ts
360
+ │ ├── foo.ts
361
+ │ └── index.ts
362
+ ├── package.json
363
+ └── tsconfig.json
364
+ "
365
+ `;
366
+
367
+ exports[`'/multiple-entrypoint': Cli.run > link > types-target 1`] = `"../src/index.ts"`;
368
+
369
+ exports[`'/single-entrypoint': Cli.run > default > main 1`] = `
370
+ "import { bar as bar1, foo as foo1 } from './foo.js';
371
+ export function foo(options = {}) {
372
+ foo1(options);
373
+ console.log('Hello, foo!', options.value);
374
+ }
375
+ export function bar(options = {}) {
376
+ bar1(options);
377
+ console.log('Hello, bar!', options.value);
378
+ }
379
+ (function (bar) {
380
+ function baz(options = {}) {
381
+ console.log('Hello, baz!', options.value);
382
+ }
383
+ bar.baz = baz;
384
+ })(bar || (bar = {}));
385
+ //# sourceMappingURL=index.js.map"
386
+ `;
387
+
388
+ exports[`'/single-entrypoint': Cli.run > default > output 1`] = `
389
+ "{
390
+ "name": "single-entrypoint",
391
+ "version": "0.0.0",
392
+ "type": "module",
393
+ "main": "./dist/index.js",
394
+ "sideEffects": false,
395
+ "module": "./dist/index.js",
396
+ "types": "./dist/index.d.ts",
397
+ "exports": {
398
+ ".": {
399
+ "src": "./index.ts",
400
+ "types": "./dist/index.d.ts",
401
+ "default": "./dist/index.js"
402
+ }
403
+ }
404
+ }
405
+
406
+
407
+ ├── dist
408
+ │ ├── foo.d.ts
409
+ │ ├── foo.d.ts.map
410
+ │ ├── foo.js
411
+ │ ├── foo.js.map
412
+ │ ├── index.d.ts
413
+ │ ├── index.d.ts.map
414
+ │ ├── index.js
415
+ │ └── index.js.map
416
+ ├── foo.ts
417
+ ├── index.ts
418
+ ├── package.json
419
+ └── tsconfig.json
420
+ "
421
+ `;
422
+
423
+ exports[`'/single-entrypoint': Cli.run > default > types 1`] = `
424
+ "export declare function foo(options?: foo.Options): void;
425
+ export declare namespace foo {
426
+ type Options = {
427
+ value?: string | undefined;
428
+ };
429
+ }
430
+ export declare function bar(options?: bar.Options): void;
431
+ export declare namespace bar {
432
+ type Options = {
433
+ value?: string | undefined;
434
+ };
435
+ function baz(options?: Options): void;
436
+ }
437
+ //# sourceMappingURL=index.d.ts.map"
438
+ `;
439
+
440
+ exports[`'/single-entrypoint': Cli.run > link > main-target 1`] = `"../index.ts"`;
441
+
442
+ exports[`'/single-entrypoint': Cli.run > link > output 1`] = `
443
+ "{
444
+ "name": "single-entrypoint",
445
+ "version": "0.0.0",
446
+ "type": "module",
447
+ "main": "./dist/index.js",
448
+ "sideEffects": false,
449
+ "module": "./dist/index.js",
450
+ "types": "./dist/index.d.ts",
451
+ "exports": {
452
+ ".": {
453
+ "src": "./index.ts",
454
+ "types": "./dist/index.d.ts",
455
+ "default": "./dist/index.js"
456
+ }
457
+ }
458
+ }
459
+
460
+
461
+ ├── dist
462
+ │ ├── index.d.ts -> ../index.ts
463
+ │ └── index.js -> ../index.ts
464
+ ├── foo.ts
465
+ ├── index.ts
466
+ ├── package.json
467
+ └── tsconfig.json
468
+ "
469
+ `;
470
+
471
+ exports[`'/single-entrypoint': Cli.run > link > types-target 1`] = `"../index.ts"`;