@ryanatkn/gro 0.153.2 → 0.154.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/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.153.2',
4
+ version: '0.154.0',
5
5
  description: 'task runner and toolkit extending SvelteKit',
6
6
  motto: 'generate, run, optimize',
7
7
  glyph: '🌰',
@@ -57,7 +57,7 @@ export const package_json = {
57
57
  '@changesets/types': '^6.1.0',
58
58
  '@ryanatkn/eslint-config': '^0.8.0',
59
59
  '@ryanatkn/fuz': '^0.140.0',
60
- '@ryanatkn/moss': '^0.27.0',
60
+ '@ryanatkn/moss': '^0.28.0',
61
61
  '@sveltejs/adapter-static': '^3.0.8',
62
62
  '@sveltejs/kit': '^2.20.8',
63
63
  '@sveltejs/package': '^2.3.11',
@@ -72,7 +72,7 @@ export const package_json = {
72
72
  'typescript-eslint': '^8.31.1',
73
73
  uvu: '^0.5.6',
74
74
  },
75
- optionalDependencies: { '@ryanatkn/moss': '^0.27.0' },
75
+ optionalDependencies: { '@ryanatkn/moss': '^0.28.0' },
76
76
  prettier: {
77
77
  plugins: ['prettier-plugin-svelte'],
78
78
  useTabs: true,
@@ -257,7 +257,7 @@ export const package_json = {
257
257
  };
258
258
  export const src_json = {
259
259
  name: '@ryanatkn/gro',
260
- version: '0.153.2',
260
+ version: '0.154.0',
261
261
  modules: {
262
262
  '.': {
263
263
  path: 'index.ts',
@@ -130,8 +130,8 @@ export const parse_imports = (id, contents, ignore_types = true) => {
130
130
  last_index = end;
131
131
  }
132
132
  // Process all the collected script blocks
133
- for (const block of script_blocks) {
134
- parse_from(block.content);
133
+ for (const script_block of script_blocks) {
134
+ parse_from(script_block.content);
135
135
  }
136
136
  }
137
137
  else if (TS_MATCHER.test(id) || JS_MATCHER.test(id)) {
@@ -1 +1 @@
1
- {"version":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,EAAE,QAAQ,KAAK,QAAQ,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,SAsEhB,CAAC"}
package/dist/src_json.js CHANGED
@@ -5,6 +5,7 @@ import { Project } from 'ts-morph';
5
5
  import { existsSync } from 'node:fs';
6
6
  import { paths, replace_extension } from './paths.js';
7
7
  import { transform_empty_object_to_undefined, } from './package_json.js';
8
+ // TODO @many rename to prefix with `Src_Json_`?
8
9
  export const Src_Module_Declaration = z
9
10
  .object({
10
11
  name: z.string(), // the export identifier
@@ -14,12 +15,14 @@ export const Src_Module_Declaration = z
14
15
  // code: z.string(), // TODO experiment with `getType().getText()`, some of them return the same as `name`
15
16
  })
16
17
  .passthrough();
18
+ // TODO @many rename to prefix with `Src_Json_`?
17
19
  export const Src_Module = z
18
20
  .object({
19
21
  path: z.string(),
20
22
  declarations: z.array(Src_Module_Declaration),
21
23
  })
22
24
  .passthrough();
25
+ // TODO @many rename to prefix with `Src_Json_`?
23
26
  export const Src_Modules = z.record(Src_Module);
24
27
  /**
25
28
  * @see https://github.com/ryanatkn/gro/blob/main/src/docs/gro_plugin_sveltekit_app.md#well-known-src
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ryanatkn/gro",
3
- "version": "0.153.2",
3
+ "version": "0.154.0",
4
4
  "description": "task runner and toolkit extending SvelteKit",
5
5
  "motto": "generate, run, optimize",
6
6
  "glyph": "🌰",
@@ -70,7 +70,7 @@
70
70
  "@changesets/types": "^6.1.0",
71
71
  "@ryanatkn/eslint-config": "^0.8.0",
72
72
  "@ryanatkn/fuz": "^0.140.0",
73
- "@ryanatkn/moss": "^0.27.0",
73
+ "@ryanatkn/moss": "^0.28.0",
74
74
  "@sveltejs/adapter-static": "^3.0.8",
75
75
  "@sveltejs/kit": "^2.20.8",
76
76
  "@sveltejs/package": "^2.3.11",
@@ -86,7 +86,7 @@
86
86
  "uvu": "^0.5.6"
87
87
  },
88
88
  "optionalDependencies": {
89
- "@ryanatkn/moss": "^0.27.0"
89
+ "@ryanatkn/moss": "^0.28.0"
90
90
  },
91
91
  "prettier": {
92
92
  "plugins": [
@@ -5,7 +5,7 @@ import type {Src_Json} from './src_json.js';
5
5
 
6
6
  export const package_json = {
7
7
  name: '@ryanatkn/gro',
8
- version: '0.153.2',
8
+ version: '0.154.0',
9
9
  description: 'task runner and toolkit extending SvelteKit',
10
10
  motto: 'generate, run, optimize',
11
11
  glyph: '🌰',
@@ -62,7 +62,7 @@ export const package_json = {
62
62
  '@changesets/types': '^6.1.0',
63
63
  '@ryanatkn/eslint-config': '^0.8.0',
64
64
  '@ryanatkn/fuz': '^0.140.0',
65
- '@ryanatkn/moss': '^0.27.0',
65
+ '@ryanatkn/moss': '^0.28.0',
66
66
  '@sveltejs/adapter-static': '^3.0.8',
67
67
  '@sveltejs/kit': '^2.20.8',
68
68
  '@sveltejs/package': '^2.3.11',
@@ -77,7 +77,7 @@ export const package_json = {
77
77
  'typescript-eslint': '^8.31.1',
78
78
  uvu: '^0.5.6',
79
79
  },
80
- optionalDependencies: {'@ryanatkn/moss': '^0.27.0'},
80
+ optionalDependencies: {'@ryanatkn/moss': '^0.28.0'},
81
81
  prettier: {
82
82
  plugins: ['prettier-plugin-svelte'],
83
83
  useTabs: true,
@@ -263,7 +263,7 @@ export const package_json = {
263
263
 
264
264
  export const src_json = {
265
265
  name: '@ryanatkn/gro',
266
- version: '0.153.2',
266
+ version: '0.154.0',
267
267
  modules: {
268
268
  '.': {
269
269
  path: 'index.ts',
@@ -170,8 +170,8 @@ export const parse_imports = (
170
170
  }
171
171
 
172
172
  // Process all the collected script blocks
173
- for (const block of script_blocks) {
174
- parse_from(block.content);
173
+ for (const script_block of script_blocks) {
174
+ parse_from(script_block.content);
175
175
  }
176
176
  } else if (TS_MATCHER.test(id) || JS_MATCHER.test(id)) {
177
177
  parse_from(contents);
@@ -11,6 +11,7 @@ import {
11
11
  type Package_Json_Exports,
12
12
  } from './package_json.js';
13
13
 
14
+ // TODO @many rename to prefix with `Src_Json_`?
14
15
  export const Src_Module_Declaration = z
15
16
  .object({
16
17
  name: z.string(), // the export identifier
@@ -22,6 +23,7 @@ export const Src_Module_Declaration = z
22
23
  .passthrough();
23
24
  export type Src_Module_Declaration = z.infer<typeof Src_Module_Declaration>;
24
25
 
26
+ // TODO @many rename to prefix with `Src_Json_`?
25
27
  export const Src_Module = z
26
28
  .object({
27
29
  path: z.string(),
@@ -30,6 +32,7 @@ export const Src_Module = z
30
32
  .passthrough();
31
33
  export type Src_Module = z.infer<typeof Src_Module>;
32
34
 
35
+ // TODO @many rename to prefix with `Src_Json_`?
33
36
  export const Src_Modules = z.record(Src_Module);
34
37
  export type Src_Modules = z.infer<typeof Src_Modules>;
35
38