@ryanatkn/gro 0.157.1 → 0.158.0

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.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) Ryan Atkinson <mail@ryanatkn.com> (https://ryanatkn.com)
3
+ Copyright (c) Ryan Atkinson <mail@ryanatkn.com> <https://ryanatkn.com/>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -38,7 +38,8 @@ It includes:
38
38
  - exposes all of its internals in `$lib`
39
39
  - uses [Changesets](https://github.com/changesets/changesets) for versioning and changelogs
40
40
  - provides a [Node loader](/src/lib/loader.ts) with a [register hook](/src/lib/register.ts)
41
- - supports importing TypeScript, JSON, and SSR'd Svelte files in tests and tasks
41
+ - uses Node's type stripping and supports importing JSON, SvelteKit shims,
42
+ and SSR'd Svelte files in tests/tasks/scripts
42
43
  - supports [SvelteKit module imports](https://kit.svelte.dev/docs/modules) for
43
44
  `$lib`, `$env`, and `$app` in tasks, tests, Node servers,
44
45
  and other code outside of the SvelteKit frontend,
package/dist/package.d.ts CHANGED
@@ -800,7 +800,6 @@ export declare const src_json: {
800
800
  };
801
801
  './gro.js': {
802
802
  path: string;
803
- declarations: never[];
804
803
  };
805
804
  './hash.js': {
806
805
  path: string;
@@ -831,7 +830,6 @@ export declare const src_json: {
831
830
  };
832
831
  './invoke.js': {
833
832
  path: string;
834
- declarations: never[];
835
833
  };
836
834
  './lint.task.js': {
837
835
  path: string;
@@ -976,7 +974,6 @@ export declare const src_json: {
976
974
  };
977
975
  './register.js': {
978
976
  path: string;
979
- declarations: never[];
980
977
  };
981
978
  './reinstall.task.js': {
982
979
  path: string;
@@ -1 +1 @@
1
- {"version":3,"file":"package.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/package.ts"],"names":[],"mappings":"AAKA,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2xBD,CAAC"}
package/dist/package.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // generated by src/lib/package.gen.ts
2
2
  export const package_json = {
3
3
  name: '@ryanatkn/gro',
4
- version: '0.157.1',
4
+ version: '0.158.0',
5
5
  description: 'task runner and toolkit extending SvelteKit',
6
6
  motto: 'generate, run, optimize',
7
7
  glyph: '🌰',
@@ -56,8 +56,8 @@ export const package_json = {
56
56
  '@changesets/changelog-git': '^0.2.1',
57
57
  '@changesets/types': '^6.1.0',
58
58
  '@ryanatkn/eslint-config': '^0.8.0',
59
- '@ryanatkn/fuz': '^0.141.1',
60
- '@ryanatkn/moss': '^0.28.0',
59
+ '@ryanatkn/fuz': '^0.142.1',
60
+ '@ryanatkn/moss': '^0.29.0',
61
61
  '@sveltejs/adapter-static': '^3.0.8',
62
62
  '@sveltejs/kit': '^2.20.8',
63
63
  '@sveltejs/package': '^2.3.11',
@@ -259,7 +259,7 @@ export const package_json = {
259
259
  };
260
260
  export const src_json = {
261
261
  name: '@ryanatkn/gro',
262
- version: '0.157.1',
262
+ version: '0.158.0',
263
263
  modules: {
264
264
  '.': {
265
265
  path: 'index.ts',
@@ -632,7 +632,7 @@ export const src_json = {
632
632
  path: 'gro.config.default.ts',
633
633
  declarations: [{ name: 'default', kind: 'function' }],
634
634
  },
635
- './gro.js': { path: 'gro.ts', declarations: [] },
635
+ './gro.js': { path: 'gro.ts' },
636
636
  './hash.js': { path: 'hash.ts', declarations: [{ name: 'to_hash', kind: 'function' }] },
637
637
  './input_path.js': {
638
638
  path: 'input_path.ts',
@@ -655,7 +655,7 @@ export const src_json = {
655
655
  path: 'invoke_task.ts',
656
656
  declarations: [{ name: 'invoke_task', kind: 'function' }],
657
657
  },
658
- './invoke.js': { path: 'invoke.ts', declarations: [] },
658
+ './invoke.js': { path: 'invoke.ts' },
659
659
  './lint.task.js': {
660
660
  path: 'lint.task.ts',
661
661
  declarations: [
@@ -807,7 +807,7 @@ export const src_json = {
807
807
  { name: 'task', kind: 'variable' },
808
808
  ],
809
809
  },
810
- './register.js': { path: 'register.ts', declarations: [] },
810
+ './register.js': { path: 'register.ts' },
811
811
  './reinstall.task.js': {
812
812
  path: 'reinstall.task.ts',
813
813
  declarations: [
@@ -15,7 +15,7 @@ export declare const Src_Module_Declaration: z.ZodObject<{
15
15
  export type Src_Module_Declaration = z.infer<typeof Src_Module_Declaration>;
16
16
  export declare const Src_Module: z.ZodObject<{
17
17
  path: z.ZodString;
18
- declarations: z.ZodArray<z.ZodObject<{
18
+ declarations: z.ZodOptional<z.ZodArray<z.ZodObject<{
19
19
  name: z.ZodString;
20
20
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
21
21
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -24,10 +24,10 @@ export declare const Src_Module: z.ZodObject<{
24
24
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
25
25
  name: z.ZodString;
26
26
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
27
- }, z.ZodTypeAny, "passthrough">>, "many">;
27
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
28
28
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
29
29
  path: z.ZodString;
30
- declarations: z.ZodArray<z.ZodObject<{
30
+ declarations: z.ZodOptional<z.ZodArray<z.ZodObject<{
31
31
  name: z.ZodString;
32
32
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
33
33
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -36,10 +36,10 @@ export declare const Src_Module: z.ZodObject<{
36
36
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
37
37
  name: z.ZodString;
38
38
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
39
- }, z.ZodTypeAny, "passthrough">>, "many">;
39
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
40
40
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
41
41
  path: z.ZodString;
42
- declarations: z.ZodArray<z.ZodObject<{
42
+ declarations: z.ZodOptional<z.ZodArray<z.ZodObject<{
43
43
  name: z.ZodString;
44
44
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
45
45
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -48,12 +48,12 @@ export declare const Src_Module: z.ZodObject<{
48
48
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
49
49
  name: z.ZodString;
50
50
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
51
- }, z.ZodTypeAny, "passthrough">>, "many">;
51
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
52
52
  }, z.ZodTypeAny, "passthrough">>;
53
53
  export type Src_Module = z.infer<typeof Src_Module>;
54
54
  export declare const Src_Modules: z.ZodRecord<z.ZodString, z.ZodObject<{
55
55
  path: z.ZodString;
56
- declarations: z.ZodArray<z.ZodObject<{
56
+ declarations: z.ZodOptional<z.ZodArray<z.ZodObject<{
57
57
  name: z.ZodString;
58
58
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
59
59
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -62,10 +62,10 @@ export declare const Src_Modules: z.ZodRecord<z.ZodString, z.ZodObject<{
62
62
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
63
63
  name: z.ZodString;
64
64
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
65
- }, z.ZodTypeAny, "passthrough">>, "many">;
65
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
66
66
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
67
67
  path: z.ZodString;
68
- declarations: z.ZodArray<z.ZodObject<{
68
+ declarations: z.ZodOptional<z.ZodArray<z.ZodObject<{
69
69
  name: z.ZodString;
70
70
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
71
71
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -74,10 +74,10 @@ export declare const Src_Modules: z.ZodRecord<z.ZodString, z.ZodObject<{
74
74
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
75
75
  name: z.ZodString;
76
76
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
77
- }, z.ZodTypeAny, "passthrough">>, "many">;
77
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
78
78
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
79
79
  path: z.ZodString;
80
- declarations: z.ZodArray<z.ZodObject<{
80
+ declarations: z.ZodOptional<z.ZodArray<z.ZodObject<{
81
81
  name: z.ZodString;
82
82
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
83
83
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -86,7 +86,7 @@ export declare const Src_Modules: z.ZodRecord<z.ZodString, z.ZodObject<{
86
86
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
87
87
  name: z.ZodString;
88
88
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
89
- }, z.ZodTypeAny, "passthrough">>, "many">;
89
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
90
90
  }, z.ZodTypeAny, "passthrough">>>;
91
91
  export type Src_Modules = z.infer<typeof Src_Modules>;
92
92
  /**
@@ -97,7 +97,7 @@ export declare const Src_Json: z.ZodObject<{
97
97
  version: z.ZodString;
98
98
  modules: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
99
99
  path: z.ZodString;
100
- declarations: z.ZodArray<z.ZodObject<{
100
+ declarations: z.ZodOptional<z.ZodArray<z.ZodObject<{
101
101
  name: z.ZodString;
102
102
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
103
103
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -106,10 +106,10 @@ export declare const Src_Json: z.ZodObject<{
106
106
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
107
107
  name: z.ZodString;
108
108
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
109
- }, z.ZodTypeAny, "passthrough">>, "many">;
109
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
110
110
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
111
111
  path: z.ZodString;
112
- declarations: z.ZodArray<z.ZodObject<{
112
+ declarations: z.ZodOptional<z.ZodArray<z.ZodObject<{
113
113
  name: z.ZodString;
114
114
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
115
115
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -118,10 +118,10 @@ export declare const Src_Json: z.ZodObject<{
118
118
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
119
119
  name: z.ZodString;
120
120
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
121
- }, z.ZodTypeAny, "passthrough">>, "many">;
121
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
122
122
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
123
123
  path: z.ZodString;
124
- declarations: z.ZodArray<z.ZodObject<{
124
+ declarations: z.ZodOptional<z.ZodArray<z.ZodObject<{
125
125
  name: z.ZodString;
126
126
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
127
127
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -130,10 +130,10 @@ export declare const Src_Json: z.ZodObject<{
130
130
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
131
131
  name: z.ZodString;
132
132
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
133
- }, z.ZodTypeAny, "passthrough">>, "many">;
133
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
134
134
  }, z.ZodTypeAny, "passthrough">>>, Record<string, z.objectOutputType<{
135
135
  path: z.ZodString;
136
- declarations: z.ZodArray<z.ZodObject<{
136
+ declarations: z.ZodOptional<z.ZodArray<z.ZodObject<{
137
137
  name: z.ZodString;
138
138
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
139
139
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -142,10 +142,10 @@ export declare const Src_Json: z.ZodObject<{
142
142
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
143
143
  name: z.ZodString;
144
144
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
145
- }, z.ZodTypeAny, "passthrough">>, "many">;
145
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
146
146
  }, z.ZodTypeAny, "passthrough">> | undefined, Record<string, z.objectInputType<{
147
147
  path: z.ZodString;
148
- declarations: z.ZodArray<z.ZodObject<{
148
+ declarations: z.ZodOptional<z.ZodArray<z.ZodObject<{
149
149
  name: z.ZodString;
150
150
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
151
151
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -154,14 +154,14 @@ export declare const Src_Json: z.ZodObject<{
154
154
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
155
155
  name: z.ZodString;
156
156
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
157
- }, z.ZodTypeAny, "passthrough">>, "many">;
157
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
158
158
  }, z.ZodTypeAny, "passthrough">>>>;
159
159
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
160
160
  name: z.ZodString;
161
161
  version: z.ZodString;
162
162
  modules: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
163
163
  path: z.ZodString;
164
- declarations: z.ZodArray<z.ZodObject<{
164
+ declarations: z.ZodOptional<z.ZodArray<z.ZodObject<{
165
165
  name: z.ZodString;
166
166
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
167
167
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -170,10 +170,10 @@ export declare const Src_Json: z.ZodObject<{
170
170
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
171
171
  name: z.ZodString;
172
172
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
173
- }, z.ZodTypeAny, "passthrough">>, "many">;
173
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
174
174
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
175
175
  path: z.ZodString;
176
- declarations: z.ZodArray<z.ZodObject<{
176
+ declarations: z.ZodOptional<z.ZodArray<z.ZodObject<{
177
177
  name: z.ZodString;
178
178
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
179
179
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -182,10 +182,10 @@ export declare const Src_Json: z.ZodObject<{
182
182
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
183
183
  name: z.ZodString;
184
184
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
185
- }, z.ZodTypeAny, "passthrough">>, "many">;
185
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
186
186
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
187
187
  path: z.ZodString;
188
- declarations: z.ZodArray<z.ZodObject<{
188
+ declarations: z.ZodOptional<z.ZodArray<z.ZodObject<{
189
189
  name: z.ZodString;
190
190
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
191
191
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -194,10 +194,10 @@ export declare const Src_Json: z.ZodObject<{
194
194
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
195
195
  name: z.ZodString;
196
196
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
197
- }, z.ZodTypeAny, "passthrough">>, "many">;
197
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
198
198
  }, z.ZodTypeAny, "passthrough">>>, Record<string, z.objectOutputType<{
199
199
  path: z.ZodString;
200
- declarations: z.ZodArray<z.ZodObject<{
200
+ declarations: z.ZodOptional<z.ZodArray<z.ZodObject<{
201
201
  name: z.ZodString;
202
202
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
203
203
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -206,10 +206,10 @@ export declare const Src_Json: z.ZodObject<{
206
206
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
207
207
  name: z.ZodString;
208
208
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
209
- }, z.ZodTypeAny, "passthrough">>, "many">;
209
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
210
210
  }, z.ZodTypeAny, "passthrough">> | undefined, Record<string, z.objectInputType<{
211
211
  path: z.ZodString;
212
- declarations: z.ZodArray<z.ZodObject<{
212
+ declarations: z.ZodOptional<z.ZodArray<z.ZodObject<{
213
213
  name: z.ZodString;
214
214
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
215
215
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -218,14 +218,14 @@ export declare const Src_Json: z.ZodObject<{
218
218
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
219
219
  name: z.ZodString;
220
220
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
221
- }, z.ZodTypeAny, "passthrough">>, "many">;
221
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
222
222
  }, z.ZodTypeAny, "passthrough">>>>;
223
223
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
224
224
  name: z.ZodString;
225
225
  version: z.ZodString;
226
226
  modules: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
227
227
  path: z.ZodString;
228
- declarations: z.ZodArray<z.ZodObject<{
228
+ declarations: z.ZodOptional<z.ZodArray<z.ZodObject<{
229
229
  name: z.ZodString;
230
230
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
231
231
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -234,10 +234,10 @@ export declare const Src_Json: z.ZodObject<{
234
234
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
235
235
  name: z.ZodString;
236
236
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
237
- }, z.ZodTypeAny, "passthrough">>, "many">;
237
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
238
238
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
239
239
  path: z.ZodString;
240
- declarations: z.ZodArray<z.ZodObject<{
240
+ declarations: z.ZodOptional<z.ZodArray<z.ZodObject<{
241
241
  name: z.ZodString;
242
242
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
243
243
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -246,10 +246,10 @@ export declare const Src_Json: z.ZodObject<{
246
246
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
247
247
  name: z.ZodString;
248
248
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
249
- }, z.ZodTypeAny, "passthrough">>, "many">;
249
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
250
250
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
251
251
  path: z.ZodString;
252
- declarations: z.ZodArray<z.ZodObject<{
252
+ declarations: z.ZodOptional<z.ZodArray<z.ZodObject<{
253
253
  name: z.ZodString;
254
254
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
255
255
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -258,10 +258,10 @@ export declare const Src_Json: z.ZodObject<{
258
258
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
259
259
  name: z.ZodString;
260
260
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
261
- }, z.ZodTypeAny, "passthrough">>, "many">;
261
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
262
262
  }, z.ZodTypeAny, "passthrough">>>, Record<string, z.objectOutputType<{
263
263
  path: z.ZodString;
264
- declarations: z.ZodArray<z.ZodObject<{
264
+ declarations: z.ZodOptional<z.ZodArray<z.ZodObject<{
265
265
  name: z.ZodString;
266
266
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
267
267
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -270,10 +270,10 @@ export declare const Src_Json: z.ZodObject<{
270
270
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
271
271
  name: z.ZodString;
272
272
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
273
- }, z.ZodTypeAny, "passthrough">>, "many">;
273
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
274
274
  }, z.ZodTypeAny, "passthrough">> | undefined, Record<string, z.objectInputType<{
275
275
  path: z.ZodString;
276
- declarations: z.ZodArray<z.ZodObject<{
276
+ declarations: z.ZodOptional<z.ZodArray<z.ZodObject<{
277
277
  name: z.ZodString;
278
278
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
279
279
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -282,7 +282,7 @@ export declare const Src_Json: z.ZodObject<{
282
282
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
283
283
  name: z.ZodString;
284
284
  kind: z.ZodNullable<z.ZodEnum<["type", "function", "variable", "class", "component", "json", "css"]>>;
285
- }, z.ZodTypeAny, "passthrough">>, "many">;
285
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
286
286
  }, z.ZodTypeAny, "passthrough">>>>;
287
287
  }, z.ZodTypeAny, "passthrough">>;
288
288
  export type Src_Json = z.infer<typeof Src_Json>;
@@ -1 +1 @@
1
- {"version":3,"file":"src_json.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/src_json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAOtB,OAAO,EAEN,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,MAAM,mBAAmB,CAAC;AAG3B,eAAO,MAAM,2BAA2B,kFAQtC,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,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AAQ,GAAG,IAAI,GAAG,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC;AAE9F,eAAO,MAAM,eAAe,GAAI,cAAc,YAAY,EAAE,WAAW,MAAM,KAAG,QAK7E,CAAC;AAEJ,eAAO,MAAM,kBAAkB,GAAI,UAAU,QAAQ,KAAG,MAGvD,CAAC;AAEF,eAAO,MAAM,cAAc,GAC1B,SAAS,oBAAoB,GAAG,SAAS,EACzC,iBAAoB,KAClB,WAAW,GAAG,SA0EhB,CAAC"}
package/dist/src_json.js CHANGED
@@ -29,7 +29,7 @@ export const Src_Module_Declaration = z
29
29
  export const Src_Module = z
30
30
  .object({
31
31
  path: z.string(),
32
- declarations: z.array(Src_Module_Declaration),
32
+ declarations: z.array(Src_Module_Declaration).optional(),
33
33
  })
34
34
  .passthrough();
35
35
  // TODO @many rename to prefix with `Src_Json_`?
@@ -101,10 +101,14 @@ export const to_src_modules = (exports, lib_path = paths.lib) => {
101
101
  name,
102
102
  kind: kind,
103
103
  }));
104
- result[export_key] = {
105
- path: relative_path,
106
- declarations,
107
- };
104
+ result[export_key] = declarations.length
105
+ ? {
106
+ path: relative_path,
107
+ declarations,
108
+ }
109
+ : {
110
+ path: relative_path,
111
+ };
108
112
  }
109
113
  return result;
110
114
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ryanatkn/gro",
3
- "version": "0.157.1",
3
+ "version": "0.158.0",
4
4
  "description": "task runner and toolkit extending SvelteKit",
5
5
  "motto": "generate, run, optimize",
6
6
  "glyph": "🌰",
@@ -70,8 +70,8 @@
70
70
  "@changesets/changelog-git": "^0.2.1",
71
71
  "@changesets/types": "^6.1.0",
72
72
  "@ryanatkn/eslint-config": "^0.8.0",
73
- "@ryanatkn/fuz": "^0.141.1",
74
- "@ryanatkn/moss": "^0.28.0",
73
+ "@ryanatkn/fuz": "^0.142.1",
74
+ "@ryanatkn/moss": "^0.29.0",
75
75
  "@sveltejs/adapter-static": "^3.0.8",
76
76
  "@sveltejs/kit": "^2.20.8",
77
77
  "@sveltejs/package": "^2.3.11",
@@ -5,7 +5,7 @@ import type {Src_Json} from './src_json.ts';
5
5
 
6
6
  export const package_json = {
7
7
  name: '@ryanatkn/gro',
8
- version: '0.157.1',
8
+ version: '0.158.0',
9
9
  description: 'task runner and toolkit extending SvelteKit',
10
10
  motto: 'generate, run, optimize',
11
11
  glyph: '🌰',
@@ -61,8 +61,8 @@ export const package_json = {
61
61
  '@changesets/changelog-git': '^0.2.1',
62
62
  '@changesets/types': '^6.1.0',
63
63
  '@ryanatkn/eslint-config': '^0.8.0',
64
- '@ryanatkn/fuz': '^0.141.1',
65
- '@ryanatkn/moss': '^0.28.0',
64
+ '@ryanatkn/fuz': '^0.142.1',
65
+ '@ryanatkn/moss': '^0.29.0',
66
66
  '@sveltejs/adapter-static': '^3.0.8',
67
67
  '@sveltejs/kit': '^2.20.8',
68
68
  '@sveltejs/package': '^2.3.11',
@@ -265,7 +265,7 @@ export const package_json = {
265
265
 
266
266
  export const src_json = {
267
267
  name: '@ryanatkn/gro',
268
- version: '0.157.1',
268
+ version: '0.158.0',
269
269
  modules: {
270
270
  '.': {
271
271
  path: 'index.ts',
@@ -638,7 +638,7 @@ export const src_json = {
638
638
  path: 'gro.config.default.ts',
639
639
  declarations: [{name: 'default', kind: 'function'}],
640
640
  },
641
- './gro.js': {path: 'gro.ts', declarations: []},
641
+ './gro.js': {path: 'gro.ts'},
642
642
  './hash.js': {path: 'hash.ts', declarations: [{name: 'to_hash', kind: 'function'}]},
643
643
  './input_path.js': {
644
644
  path: 'input_path.ts',
@@ -661,7 +661,7 @@ export const src_json = {
661
661
  path: 'invoke_task.ts',
662
662
  declarations: [{name: 'invoke_task', kind: 'function'}],
663
663
  },
664
- './invoke.js': {path: 'invoke.ts', declarations: []},
664
+ './invoke.js': {path: 'invoke.ts'},
665
665
  './lint.task.js': {
666
666
  path: 'lint.task.ts',
667
667
  declarations: [
@@ -813,7 +813,7 @@ export const src_json = {
813
813
  {name: 'task', kind: 'variable'},
814
814
  ],
815
815
  },
816
- './register.js': {path: 'register.ts', declarations: []},
816
+ './register.js': {path: 'register.ts'},
817
817
  './reinstall.task.js': {
818
818
  path: 'reinstall.task.ts',
819
819
  declarations: [
@@ -39,7 +39,7 @@ export type Src_Module_Declaration = z.infer<typeof Src_Module_Declaration>;
39
39
  export const Src_Module = z
40
40
  .object({
41
41
  path: z.string(),
42
- declarations: z.array(Src_Module_Declaration),
42
+ declarations: z.array(Src_Module_Declaration).optional(),
43
43
  })
44
44
  .passthrough();
45
45
  export type Src_Module = z.infer<typeof Src_Module>;
@@ -140,10 +140,14 @@ export const to_src_modules = (
140
140
  kind: kind as Src_Module_Declaration_Kind | null,
141
141
  }));
142
142
 
143
- result[export_key] = {
144
- path: relative_path,
145
- declarations,
146
- };
143
+ result[export_key] = declarations.length
144
+ ? {
145
+ path: relative_path,
146
+ declarations,
147
+ }
148
+ : {
149
+ path: relative_path,
150
+ };
147
151
  }
148
152
 
149
153
  return result;