@ryanatkn/gro 0.147.1 → 0.148.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/README.md +3 -1
- package/dist/args.d.ts +5 -5
- package/dist/args.d.ts.map +1 -1
- package/dist/changelog.d.ts +2 -1
- package/dist/changelog.d.ts.map +1 -1
- package/dist/cli.d.ts +4 -3
- package/dist/cli.d.ts.map +1 -1
- package/dist/esbuild_plugin_external_worker.d.ts +2 -2
- package/dist/esbuild_plugin_external_worker.d.ts.map +1 -1
- package/dist/esbuild_plugin_svelte.d.ts +1 -1
- package/dist/esbuild_plugin_svelte.d.ts.map +1 -1
- package/dist/esbuild_plugin_sveltekit_shim_env.d.ts +1 -1
- package/dist/esbuild_plugin_sveltekit_shim_env.d.ts.map +1 -1
- package/dist/gen.d.ts +23 -22
- package/dist/gen.d.ts.map +1 -1
- package/dist/github.d.ts +3 -1
- package/dist/github.d.ts.map +1 -1
- package/dist/gro_config.d.ts +5 -5
- package/dist/gro_config.d.ts.map +1 -1
- package/dist/gro_helpers.d.ts +1 -1
- package/dist/gro_helpers.d.ts.map +1 -1
- package/dist/gro_plugin_gen.d.ts +2 -2
- package/dist/gro_plugin_gen.d.ts.map +1 -1
- package/dist/gro_plugin_moss.d.ts +1 -1
- package/dist/gro_plugin_moss.d.ts.map +1 -1
- package/dist/gro_plugin_server.d.ts +2 -2
- package/dist/gro_plugin_server.d.ts.map +1 -1
- package/dist/input_path.d.ts +10 -10
- package/dist/input_path.d.ts.map +1 -1
- package/dist/invoke.js +2 -0
- package/dist/modules.d.ts +6 -5
- package/dist/modules.d.ts.map +1 -1
- package/dist/package.d.ts +0 -1
- package/dist/package.d.ts.map +1 -1
- package/dist/package.js +16 -17
- package/dist/package_json.d.ts +2 -2
- package/dist/package_json.d.ts.map +1 -1
- package/dist/parse_imports.d.ts +1 -1
- package/dist/parse_imports.d.ts.map +1 -1
- package/dist/plugin.d.ts +2 -2
- package/dist/plugin.d.ts.map +1 -1
- package/dist/run_gen.d.ts +1 -1
- package/dist/run_gen.d.ts.map +1 -1
- package/dist/search_fs.d.ts +3 -3
- package/dist/search_fs.d.ts.map +1 -1
- package/dist/sveltekit_config.d.ts +1 -1
- package/dist/sveltekit_config.d.ts.map +1 -1
- package/dist/sveltekit_shim_env.d.ts +1 -1
- package/dist/sveltekit_shim_env.d.ts.map +1 -1
- package/dist/task.d.ts +19 -19
- package/dist/task.d.ts.map +1 -1
- package/dist/task_logging.d.ts +1 -1
- package/dist/task_logging.d.ts.map +1 -1
- package/package.json +15 -16
- package/src/lib/args.ts +10 -10
- package/src/lib/cli.ts +3 -3
- package/src/lib/esbuild_plugin_external_worker.ts +2 -2
- package/src/lib/esbuild_plugin_svelte.ts +1 -1
- package/src/lib/esbuild_plugin_sveltekit_shim_env.ts +1 -1
- package/src/lib/gen.ts +28 -26
- package/src/lib/github.ts +2 -2
- package/src/lib/gro_config.ts +5 -5
- package/src/lib/gro_helpers.ts +1 -1
- package/src/lib/gro_plugin_gen.ts +3 -3
- package/src/lib/gro_plugin_moss.ts +1 -1
- package/src/lib/gro_plugin_server.ts +2 -2
- package/src/lib/gro_plugin_sveltekit_app.ts +1 -1
- package/src/lib/input_path.ts +23 -23
- package/src/lib/invoke.ts +2 -0
- package/src/lib/modules.ts +8 -8
- package/src/lib/package.ts +16 -17
- package/src/lib/package_json.ts +2 -2
- package/src/lib/parse_imports.ts +2 -2
- package/src/lib/plugin.ts +4 -4
- package/src/lib/run_gen.ts +1 -1
- package/src/lib/search_fs.ts +8 -8
- package/src/lib/src_json.ts +1 -1
- package/src/lib/sveltekit_config.ts +1 -1
- package/src/lib/sveltekit_shim_env.ts +1 -1
- package/src/lib/task.ts +20 -20
- package/src/lib/task_logging.ts +6 -6
- package/src/lib/upgrade.task.ts +1 -1
package/README.md
CHANGED
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
[Windows won't be supported](https://github.com/ryanatkn/gro/issues/319), I chose Bash instead.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Need help or want to share thoughts? See the
|
|
12
|
+
[issues](https://github.com/ryanatkn/gro/issues) and
|
|
13
|
+
[discussions](https://github.com/ryanatkn/gro/discussions).
|
|
12
14
|
|
|
13
15
|
## about
|
|
14
16
|
|
package/dist/args.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import type { z } from 'zod';
|
|
|
9
9
|
* The raw CLI ares are handled by `mri` - https://github.com/lukeed/mri
|
|
10
10
|
*/
|
|
11
11
|
export interface Args {
|
|
12
|
-
_?: string
|
|
12
|
+
_?: Array<string>;
|
|
13
13
|
help?: boolean;
|
|
14
14
|
[key: string]: Arg_Value;
|
|
15
15
|
}
|
|
@@ -35,7 +35,7 @@ export declare const parse_args: <TOutput extends Record<string, Arg_Value> = Ar
|
|
|
35
35
|
/**
|
|
36
36
|
* Serializes parsed `Args` for CLI commands.
|
|
37
37
|
*/
|
|
38
|
-
export declare const serialize_args: (args: Args) => string
|
|
38
|
+
export declare const serialize_args: (args: Args) => Array<string>;
|
|
39
39
|
/**
|
|
40
40
|
* Parses `task_name` and `args` from `process.argv` using `mri`,
|
|
41
41
|
* ignoring anything after any `--`.
|
|
@@ -47,14 +47,14 @@ export declare const to_task_args: (argv?: string[]) => {
|
|
|
47
47
|
/**
|
|
48
48
|
* Gets the array of raw string args starting with the first `--`, if any.
|
|
49
49
|
*/
|
|
50
|
-
export declare const to_raw_rest_args: (argv?: string[]) => string
|
|
50
|
+
export declare const to_raw_rest_args: (argv?: string[]) => Array<string>;
|
|
51
51
|
/**
|
|
52
52
|
* Parses `process.argv` for the specified `command`, so given
|
|
53
53
|
* `gro taskname arg1 --arg2 -- eslint eslintarg1 --eslintarg2 -- tsc --tscarg1 --tscarg2`
|
|
54
54
|
* the `command` `'eslint'` returns `eslintarg1 --eslintarg2`
|
|
55
55
|
* and `'tsc'` returns `--tscarg1` and `--tscarg2`.
|
|
56
56
|
*/
|
|
57
|
-
export declare const to_forwarded_args: (command: string, raw_rest_args?: string
|
|
57
|
+
export declare const to_forwarded_args: (command: string, raw_rest_args?: Array<string>, cache?: Record<string, Args | undefined>) => Args;
|
|
58
58
|
export declare const to_forwarded_args_by_command: (raw_rest_args?: string[]) => Record<string, Args | undefined>;
|
|
59
|
-
export declare const print_command_args: (serialized_args: string
|
|
59
|
+
export declare const print_command_args: (serialized_args: Array<string>) => string;
|
|
60
60
|
//# sourceMappingURL=args.d.ts.map
|
package/dist/args.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"args.d.ts","sourceRoot":"../src/lib/","sources":["args.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAE3B;;;;;;;;GAQG;AACH,MAAM,WAAW,IAAI;IACpB,CAAC,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"args.d.ts","sourceRoot":"../src/lib/","sources":["args.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAE3B;;;;;;;;GAQG;AACH,MAAM,WAAW,IAAI;IACpB,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;CACzB;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;AAEjG,MAAM,WAAW,UAAU;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,SAAS,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU,GACtB,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,SACzC,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,wBAEzB,MAAM,UACb,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,KAC9C,CAAC,CAAC,mBAAmB,CAAC,MAAM,EAAE,OAAO,CAiBvC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,SAAU,IAAI,KAAG,KAAK,CAAC,MAAM,CAuBvD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,uBAA0B;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,IAAI,CAAA;CAMhF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,uBAA0B,KAAK,CAAC,MAAM,CAGlE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,YACpB,MAAM,kBACC,KAAK,CAAC,MAAM,CAAC,+CAE3B,IAA4B,CAAC;AAEhC,eAAO,MAAM,4BAA4B,gCAEtC,MAAM,CAAC,MAAM,EAAE,IAAI,GAAG,SAAS,CAuCjC,CAAC;AAEF,eAAO,MAAM,kBAAkB,oBAAqB,KAAK,CAAC,MAAM,CAAC,KAAG,MAK1C,CAAC"}
|
package/dist/changelog.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Logger } from '@ryanatkn/belt/log.js';
|
|
1
2
|
import type { Fetch_Value_Cache } from '@ryanatkn/belt/fetch.js';
|
|
2
3
|
/**
|
|
3
4
|
* Updates a changelog produced by `@changesets/changelog-git` with better links and formatting.
|
|
@@ -6,5 +7,5 @@ import type { Fetch_Value_Cache } from '@ryanatkn/belt/fetch.js';
|
|
|
6
7
|
* as an alternative to `@changesets/changelog-git`.
|
|
7
8
|
* @returns boolean indicating if the changelog changed
|
|
8
9
|
*/
|
|
9
|
-
export declare const update_changelog: (owner: string, repo: string, path?: string, token?: string, log?:
|
|
10
|
+
export declare const update_changelog: (owner: string, repo: string, path?: string, token?: string, log?: Logger, cache?: Fetch_Value_Cache) => Promise<boolean>;
|
|
10
11
|
//# sourceMappingURL=changelog.d.ts.map
|
package/dist/changelog.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changelog.d.ts","sourceRoot":"../src/lib/","sources":["changelog.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"changelog.d.ts","sourceRoot":"../src/lib/","sources":["changelog.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAClD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,yBAAyB,CAAC;AAI/D;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,UACrB,MAAM,QACP,MAAM,yBAEJ,MAAM,QACR,MAAM,UACL,iBAAiB,KACtB,OAAO,CAAC,OAAO,CAUjB,CAAC"}
|
package/dist/cli.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type SpawnOptions } from 'node:child_process';
|
|
2
2
|
import { type Spawn_Result, type Spawned_Process } from '@ryanatkn/belt/process.js';
|
|
3
3
|
import { type URL } from 'node:url';
|
|
4
|
+
import type { Logger } from '@ryanatkn/belt/log.js';
|
|
4
5
|
import type { Path_Id } from './path.js';
|
|
5
6
|
export type Cli = {
|
|
6
7
|
kind: 'local';
|
|
@@ -21,13 +22,13 @@ export declare const find_cli: (name: string, cwd?: string | URL, options?: Spaw
|
|
|
21
22
|
* If a string is provided for `name_or_cli`, it checks first local to the cwd and then globally.
|
|
22
23
|
* @returns `undefined` if no CLI is found, or the spawn result
|
|
23
24
|
*/
|
|
24
|
-
export declare const spawn_cli: (name_or_cli: string | Cli, args?: string
|
|
25
|
+
export declare const spawn_cli: (name_or_cli: string | Cli, args?: Array<string>, log?: Logger, options?: SpawnOptions) => Promise<Spawn_Result | undefined>;
|
|
25
26
|
/**
|
|
26
27
|
* Spawns a CLI if available using Belt's `spawn_process`.
|
|
27
28
|
* If a string is provided for `name_or_cli`, it checks first local to the cwd and then globally.
|
|
28
29
|
* @returns `undefined` if no CLI is found, or the spawn result
|
|
29
30
|
*/
|
|
30
|
-
export declare const spawn_cli_process: (name_or_cli: string | Cli, args?: string
|
|
31
|
-
export declare const resolve_cli: (name_or_cli: string | Cli, args: string
|
|
31
|
+
export declare const spawn_cli_process: (name_or_cli: string | Cli, args?: Array<string>, log?: Logger, options?: SpawnOptions) => Spawned_Process | undefined;
|
|
32
|
+
export declare const resolve_cli: (name_or_cli: string | Cli, args: Array<string> | undefined, cwd: string | URL | undefined, log?: Logger, options?: SpawnOptions) => Cli | undefined;
|
|
32
33
|
export declare const to_cli_name: (cli: string | Cli) => string;
|
|
33
34
|
//# sourceMappingURL=cli.d.ts.map
|
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"../src/lib/","sources":["cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAGN,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAgB,KAAK,GAAG,EAAC,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"../src/lib/","sources":["cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAGN,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAgB,KAAK,GAAG,EAAC,MAAM,UAAU,CAAC;AACjD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAGlD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAKvC,MAAM,MAAM,GAAG,GACZ;IAAC,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,OAAO,CAAA;CAAC,GAC1C;IAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,OAAO,CAAA;CAAC,CAAC;AAE/C;;;GAGG;AACH,eAAO,MAAM,QAAQ,SACd,MAAM,QACP,MAAM,GAAG,GAAG,YACP,YAAY,KACpB,GAAG,GAAG,IAUR,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,gBACR,MAAM,GAAG,GAAG,SACnB,KAAK,CAAC,MAAM,CAAC,QACb,MAAM,YACF,YAAY,KACpB,OAAO,CAAC,YAAY,GAAG,SAAS,CAIlC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,gBAChB,MAAM,GAAG,GAAG,SACnB,KAAK,CAAC,MAAM,CAAC,QACb,MAAM,YACF,YAAY,KACpB,eAAe,GAAG,SAIpB,CAAC;AAEF,eAAO,MAAM,WAAW,gBACV,MAAM,GAAG,GAAG,QACnB,KAAK,CAAC,MAAM,CAAC,mBACd,MAAM,GAAG,GAAG,GAAG,SAAS,QACvB,MAAM,YACF,YAAY,KACpB,GAAG,GAAG,SAaR,CAAC;AAEF,eAAO,MAAM,WAAW,QAAS,MAAM,GAAG,GAAG,KAAG,MACP,CAAC"}
|
|
@@ -8,14 +8,14 @@ export interface Esbuild_Plugin_External_Worker_Options {
|
|
|
8
8
|
dir?: string;
|
|
9
9
|
svelte_compile_options?: CompileOptions;
|
|
10
10
|
svelte_compile_module_options?: ModuleCompileOptions;
|
|
11
|
-
svelte_preprocessors?: PreprocessorGroup | PreprocessorGroup
|
|
11
|
+
svelte_preprocessors?: PreprocessorGroup | Array<PreprocessorGroup>;
|
|
12
12
|
alias?: Record<string, string>;
|
|
13
13
|
base_url?: Parsed_Sveltekit_Config['base_url'];
|
|
14
14
|
assets_url?: Parsed_Sveltekit_Config['assets_url'];
|
|
15
15
|
public_prefix?: string;
|
|
16
16
|
private_prefix?: string;
|
|
17
17
|
env_dir?: string;
|
|
18
|
-
env_files?: string
|
|
18
|
+
env_files?: Array<string>;
|
|
19
19
|
ambient_env?: Record<string, string>;
|
|
20
20
|
log?: Logger;
|
|
21
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esbuild_plugin_external_worker.d.ts","sourceRoot":"../src/lib/","sources":["esbuild_plugin_external_worker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAElD,OAAO,KAAK,EAAC,cAAc,EAAE,oBAAoB,EAAE,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAS7F,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,uBAAuB,CAAC;AAGnE,MAAM,WAAW,sCAAsC;IACtD,GAAG,EAAE,OAAO,CAAC;IACb,aAAa,EAAE,OAAO,CAAC,YAAY,CAAC;IACpC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,sBAAsB,CAAC,EAAE,cAAc,CAAC;IACxC,6BAA6B,CAAC,EAAE,oBAAoB,CAAC;IACrD,oBAAoB,CAAC,EAAE,iBAAiB,GAAG,iBAAiB,
|
|
1
|
+
{"version":3,"file":"esbuild_plugin_external_worker.d.ts","sourceRoot":"../src/lib/","sources":["esbuild_plugin_external_worker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAElD,OAAO,KAAK,EAAC,cAAc,EAAE,oBAAoB,EAAE,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAS7F,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,uBAAuB,CAAC;AAGnE,MAAM,WAAW,sCAAsC;IACtD,GAAG,EAAE,OAAO,CAAC;IACb,aAAa,EAAE,OAAO,CAAC,YAAY,CAAC;IACpC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,sBAAsB,CAAC,EAAE,cAAc,CAAC;IACxC,6BAA6B,CAAC,EAAE,oBAAoB,CAAC;IACrD,oBAAoB,CAAC,EAAE,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACpE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,QAAQ,CAAC,EAAE,uBAAuB,CAAC,UAAU,CAAC,CAAC;IAC/C,UAAU,CAAC,EAAE,uBAAuB,CAAC,YAAY,CAAC,CAAC;IACnD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,GAAG,CAAC,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,8BAA8B,gNAgBxC,sCAAsC,KAAG,OAAO,CAAC,MA4ClD,CAAC"}
|
|
@@ -7,7 +7,7 @@ export interface Esbuild_Plugin_Svelte_Options {
|
|
|
7
7
|
dir?: string;
|
|
8
8
|
svelte_compile_options?: CompileOptions;
|
|
9
9
|
svelte_compile_module_options?: ModuleCompileOptions;
|
|
10
|
-
svelte_preprocessors?: PreprocessorGroup | PreprocessorGroup
|
|
10
|
+
svelte_preprocessors?: PreprocessorGroup | Array<PreprocessorGroup>;
|
|
11
11
|
ts_transform_options?: esbuild.TransformOptions;
|
|
12
12
|
is_ts?: (filename: string) => boolean;
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esbuild_plugin_svelte.d.ts","sourceRoot":"../src/lib/","sources":["esbuild_plugin_svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,EAIN,KAA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,7 @@ export interface Esbuild_Plugin_Sveltekit_Shim_Env_Options {
|
|
|
4
4
|
public_prefix?: string;
|
|
5
5
|
private_prefix?: string;
|
|
6
6
|
env_dir?: string;
|
|
7
|
-
env_files?: string
|
|
7
|
+
env_files?: Array<string>;
|
|
8
8
|
ambient_env?: Record<string, string>;
|
|
9
9
|
}
|
|
10
10
|
export declare const esbuild_plugin_sveltekit_shim_env: ({ dev, public_prefix, private_prefix, env_dir, env_files, ambient_env, }: Esbuild_Plugin_Sveltekit_Shim_Env_Options) => esbuild.Plugin;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esbuild_plugin_sveltekit_shim_env.d.ts","sourceRoot":"../src/lib/","sources":["esbuild_plugin_sveltekit_shim_env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,OAAO,MAAM,SAAS,CAAC;AAMxC,MAAM,WAAW,yCAAyC;IACzD,GAAG,EAAE,OAAO,CAAC;IACb,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"esbuild_plugin_sveltekit_shim_env.d.ts","sourceRoot":"../src/lib/","sources":["esbuild_plugin_sveltekit_shim_env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,OAAO,MAAM,SAAS,CAAC;AAMxC,MAAM,WAAW,yCAAyC;IACzD,GAAG,EAAE,OAAO,CAAC;IACb,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC;AAID,eAAO,MAAM,iCAAiC,6EAO3C,yCAAyC,KAAG,OAAO,CAAC,MAuBrD,CAAC"}
|
package/dist/gen.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Logger } from '@ryanatkn/belt/log.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import type { Result } from '@ryanatkn/belt/result.js';
|
|
4
|
+
import type { Timings } from '@ryanatkn/belt/timings.js';
|
|
4
5
|
import type { Path_Id } from './path.js';
|
|
5
6
|
import type { Gro_Config } from './gro_config.js';
|
|
6
7
|
import type { Parsed_Sveltekit_Config } from './sveltekit_config.js';
|
|
@@ -11,7 +12,7 @@ export declare const GEN_FILE_PATTERN: string;
|
|
|
11
12
|
export declare const is_gen_path: (path: string) => boolean;
|
|
12
13
|
export interface Gen_Result {
|
|
13
14
|
origin_id: Path_Id;
|
|
14
|
-
files: Gen_File
|
|
15
|
+
files: Array<Gen_File>;
|
|
15
16
|
}
|
|
16
17
|
export interface Gen_File {
|
|
17
18
|
id: Path_Id;
|
|
@@ -33,7 +34,7 @@ export interface Gen_Context {
|
|
|
33
34
|
origin_path: string;
|
|
34
35
|
log: Logger;
|
|
35
36
|
}
|
|
36
|
-
export type Raw_Gen_Result = string | Raw_Gen_File | null | Raw_Gen_Result
|
|
37
|
+
export type Raw_Gen_Result = string | Raw_Gen_File | null | Array<Raw_Gen_Result>;
|
|
37
38
|
export interface Raw_Gen_File {
|
|
38
39
|
content: string;
|
|
39
40
|
filename?: string;
|
|
@@ -48,9 +49,9 @@ export declare const Gen_Config: z.ZodObject<{
|
|
|
48
49
|
}>;
|
|
49
50
|
export type Gen_Config = z.infer<typeof Gen_Config>;
|
|
50
51
|
export interface Gen_Results {
|
|
51
|
-
results: Genfile_Module_Result
|
|
52
|
-
successes: Genfile_Module_Result_Success
|
|
53
|
-
failures: Genfile_Module_Result_Failure
|
|
52
|
+
results: Array<Genfile_Module_Result>;
|
|
53
|
+
successes: Array<Genfile_Module_Result_Success>;
|
|
54
|
+
failures: Array<Genfile_Module_Result_Failure>;
|
|
54
55
|
input_count: number;
|
|
55
56
|
output_count: number;
|
|
56
57
|
elapsed: number;
|
|
@@ -59,7 +60,7 @@ export type Genfile_Module_Result = Genfile_Module_Result_Success | Genfile_Modu
|
|
|
59
60
|
export interface Genfile_Module_Result_Success {
|
|
60
61
|
ok: true;
|
|
61
62
|
id: Path_Id;
|
|
62
|
-
files: Gen_File
|
|
63
|
+
files: Array<Gen_File>;
|
|
63
64
|
elapsed: number;
|
|
64
65
|
}
|
|
65
66
|
export interface Genfile_Module_Result_Failure {
|
|
@@ -82,46 +83,46 @@ export type Analyzed_Gen_Result = {
|
|
|
82
83
|
is_new: true;
|
|
83
84
|
has_changed: true;
|
|
84
85
|
};
|
|
85
|
-
export declare const analyze_gen_results: (gen_results: Gen_Results) => Promise<Analyzed_Gen_Result
|
|
86
|
+
export declare const analyze_gen_results: (gen_results: Gen_Results) => Promise<Array<Analyzed_Gen_Result>>;
|
|
86
87
|
export declare const analyze_gen_result: (file: Gen_File) => Promise<Analyzed_Gen_Result>;
|
|
87
|
-
export declare const write_gen_results: (gen_results: Gen_Results, analyzed_gen_results: Analyzed_Gen_Result
|
|
88
|
+
export declare const write_gen_results: (gen_results: Gen_Results, analyzed_gen_results: Array<Analyzed_Gen_Result>, log: Logger) => Promise<void>;
|
|
88
89
|
export interface Found_Genfiles {
|
|
89
|
-
resolved_input_files: Resolved_Input_File
|
|
90
|
-
resolved_input_files_by_root_dir: Map<Path_Id, Resolved_Input_File
|
|
91
|
-
resolved_input_paths: Resolved_Input_Path
|
|
90
|
+
resolved_input_files: Array<Resolved_Input_File>;
|
|
91
|
+
resolved_input_files_by_root_dir: Map<Path_Id, Array<Resolved_Input_File>>;
|
|
92
|
+
resolved_input_paths: Array<Resolved_Input_Path>;
|
|
92
93
|
}
|
|
93
94
|
export type Find_Genfiles_Result = Result<{
|
|
94
95
|
value: Found_Genfiles;
|
|
95
96
|
}, Find_Genfiles_Failure>;
|
|
96
97
|
export type Find_Genfiles_Failure = {
|
|
97
98
|
type: 'unmapped_input_paths';
|
|
98
|
-
unmapped_input_paths: Input_Path
|
|
99
|
-
resolved_input_paths: Resolved_Input_Path
|
|
100
|
-
reasons: string
|
|
99
|
+
unmapped_input_paths: Array<Input_Path>;
|
|
100
|
+
resolved_input_paths: Array<Resolved_Input_Path>;
|
|
101
|
+
reasons: Array<string>;
|
|
101
102
|
} | {
|
|
102
103
|
type: 'input_directories_with_no_files';
|
|
103
|
-
input_directories_with_no_files: Input_Path
|
|
104
|
-
resolved_input_files: Resolved_Input_File
|
|
105
|
-
resolved_input_files_by_root_dir: Map<Path_Id, Resolved_Input_File
|
|
106
|
-
resolved_input_paths: Resolved_Input_Path
|
|
107
|
-
reasons: string
|
|
104
|
+
input_directories_with_no_files: Array<Input_Path>;
|
|
105
|
+
resolved_input_files: Array<Resolved_Input_File>;
|
|
106
|
+
resolved_input_files_by_root_dir: Map<Path_Id, Array<Resolved_Input_File>>;
|
|
107
|
+
resolved_input_paths: Array<Resolved_Input_Path>;
|
|
108
|
+
reasons: Array<string>;
|
|
108
109
|
};
|
|
109
110
|
/**
|
|
110
111
|
* Finds modules from input paths. (see `src/lib/input_path.ts` for more)
|
|
111
112
|
*/
|
|
112
|
-
export declare const find_genfiles: (input_paths: Input_Path
|
|
113
|
+
export declare const find_genfiles: (input_paths: Array<Input_Path>, root_dirs: Array<Path_Id>, config: Gro_Config, timings?: Timings) => Find_Genfiles_Result;
|
|
113
114
|
export interface Genfile_Module {
|
|
114
115
|
gen: Gen;
|
|
115
116
|
}
|
|
116
117
|
export type Genfile_Module_Meta = Module_Meta<Genfile_Module>;
|
|
117
118
|
export interface Loaded_Genfiles {
|
|
118
|
-
modules: Genfile_Module_Meta
|
|
119
|
+
modules: Array<Genfile_Module_Meta>;
|
|
119
120
|
found_genfiles: Found_Genfiles;
|
|
120
121
|
}
|
|
121
122
|
export type Load_Genfiles_Result = Result<{
|
|
122
123
|
value: Loaded_Genfiles;
|
|
123
124
|
}, Load_Genfiles_Failure>;
|
|
124
125
|
export type Load_Genfiles_Failure = Load_Modules_Failure<Genfile_Module_Meta>;
|
|
125
|
-
export declare const load_genfiles: (found_genfiles: Found_Genfiles, timings?:
|
|
126
|
+
export declare const load_genfiles: (found_genfiles: Found_Genfiles, timings?: Timings) => Promise<Load_Genfiles_Result>;
|
|
126
127
|
export declare const validate_gen_module: (mod: Record<string, any>) => mod is Genfile_Module;
|
|
127
128
|
//# sourceMappingURL=gen.d.ts.map
|
package/dist/gen.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gen.d.ts","sourceRoot":"../src/lib/","sources":["gen.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAGlD,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"gen.d.ts","sourceRoot":"../src/lib/","sources":["gen.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAGlD,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,0BAA0B,CAAC;AACrD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,2BAA2B,CAAC;AAKvD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AACvC,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAe,KAAK,oBAAoB,EAAE,KAAK,WAAW,EAAC,MAAM,cAAc,CAAC;AACvF,OAAO,EACN,UAAU,EAGV,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,MAAM,iBAAiB,CAAC;AAGzB,eAAO,MAAM,qBAAqB,QAA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AC;CAC/B;AAED,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC;IAAC,KAAK,EAAE,eAAe,CAAA;CAAC,EAAE,qBAAqB,CAAC,CAAC;AAC3F,MAAM,MAAM,qBAAqB,GAAG,oBAAoB,CAAC,mBAAmB,CAAC,CAAC;AAE9E,eAAO,MAAM,aAAa,mBACT,cAAc,YACpB,OAAO,KACf,OAAO,CAAC,oBAAoB,CAc9B,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAG,GAAG,IAAI,cACxC,CAAC"}
|
package/dist/github.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Fetch_Value_Cache } from '@ryanatkn/belt/fetch.js';
|
|
2
|
+
import type { Logger } from '@ryanatkn/belt/log.js';
|
|
1
3
|
import { z } from 'zod';
|
|
2
4
|
export declare const GITHUB_REPO_MATCHER: RegExp;
|
|
3
5
|
export declare const Github_Pull_Request: z.ZodObject<{
|
|
@@ -33,5 +35,5 @@ export type Github_Pull_Request = z.infer<typeof Github_Pull_Request>;
|
|
|
33
35
|
/**
|
|
34
36
|
* @see https://docs.github.com/en/rest/commits/commits?apiVersion=2022-11-28#list-pull-requests-associated-with-a-commit
|
|
35
37
|
*/
|
|
36
|
-
export declare const github_fetch_commit_prs: (owner: string, repo: string, commit_sha: string, token?: string, log?:
|
|
38
|
+
export declare const github_fetch_commit_prs: (owner: string, repo: string, commit_sha: string, token?: string, log?: Logger, cache?: Fetch_Value_Cache, api_version?: string) => Promise<Array<Github_Pull_Request> | null>;
|
|
37
39
|
//# sourceMappingURL=github.d.ts.map
|
package/dist/github.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"github.d.ts","sourceRoot":"../src/lib/","sources":["github.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"github.d.ts","sourceRoot":"../src/lib/","sources":["github.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,iBAAiB,EAAc,MAAM,yBAAyB,CAAC;AACvE,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,mBAAmB,QAA6B,CAAC;AAE9D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ9B,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE;;GAEG;AACH,eAAO,MAAM,uBAAuB,UAC5B,MAAM,QACP,MAAM,cACA,MAAM,UACV,MAAM,QACR,MAAM,UACJ,iBAAiB,gBACX,MAAM,KAClB,OAAO,CAAC,KAAK,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAa3C,CAAC"}
|
package/dist/gro_config.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { Path_Filter, Path_Id } from './path.js';
|
|
|
6
6
|
* This is exposed to users in places like tasks and genfiles.
|
|
7
7
|
* @see https://github.com/ryanatkn/gro/blob/main/src/docs/config.md
|
|
8
8
|
*/
|
|
9
|
-
export interface Gro_Config {
|
|
9
|
+
export interface Gro_Config extends Raw_Gro_Config {
|
|
10
10
|
/**
|
|
11
11
|
* @see https://github.com/ryanatkn/gro/blob/main/src/docs/plugin.md
|
|
12
12
|
*/
|
|
@@ -21,12 +21,12 @@ export interface Gro_Config {
|
|
|
21
21
|
* The root directories to search for tasks given implicit relative input paths.
|
|
22
22
|
* Defaults to `./src/lib`, then the cwd, then the Gro package dist.
|
|
23
23
|
*/
|
|
24
|
-
task_root_dirs: Path_Id
|
|
24
|
+
task_root_dirs: Array<Path_Id>;
|
|
25
25
|
/**
|
|
26
26
|
* When searching the filsystem for tasks and genfiles,
|
|
27
27
|
* directories and files are included if they pass all of these filters.
|
|
28
28
|
*/
|
|
29
|
-
search_filters: Path_Filter
|
|
29
|
+
search_filters: Array<Path_Filter>;
|
|
30
30
|
/**
|
|
31
31
|
* The CLI to use that's compatible with `node`.
|
|
32
32
|
*/
|
|
@@ -44,8 +44,8 @@ export interface Gro_Config {
|
|
|
44
44
|
export interface Raw_Gro_Config {
|
|
45
45
|
plugins?: Create_Config_Plugins;
|
|
46
46
|
map_package_json?: Map_Package_Json | null;
|
|
47
|
-
task_root_dirs?: string
|
|
48
|
-
search_filters?: Path_Filter | Path_Filter
|
|
47
|
+
task_root_dirs?: Array<string>;
|
|
48
|
+
search_filters?: Path_Filter | Array<Path_Filter> | null;
|
|
49
49
|
js_cli?: string;
|
|
50
50
|
pm_cli?: string;
|
|
51
51
|
}
|
package/dist/gro_config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gro_config.d.ts","sourceRoot":"../src/lib/","sources":["gro_config.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,aAAa,CAAC;AACvD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAC,WAAW,EAAE,OAAO,EAAC,MAAM,WAAW,CAAC;AAEpD;;;;GAIG;AACH,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"gro_config.d.ts","sourceRoot":"../src/lib/","sources":["gro_config.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,aAAa,CAAC;AACvD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAC,WAAW,EAAE,OAAO,EAAC,MAAM,WAAW,CAAC;AAEpD;;;;GAIG;AACH,MAAM,WAAW,UAAW,SAAQ,cAAc;IACjD;;OAEG;IACH,OAAO,EAAE,qBAAqB,CAAC;IAC/B;;;;OAIG;IACH,gBAAgB,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC1C;;;OAGG;IACH,cAAc,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC/B;;;OAGG;IACH,cAAc,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IACnC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC9B,OAAO,CAAC,EAAE,qBAAqB,CAAC;IAChC,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC3C,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B,cAAc,CAAC,EAAE,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;IACzD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,iBAAiB,GAAG,CAC/B,WAAW,EAAE,UAAU,KACnB,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAE9C,eAAO,MAAM,uBAAuB,QAAO,UAYzC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,QAUnC,CAAC;AAWF,eAAO,MAAM,wBAAwB,QAAwD,CAAC;AAE9F;;;GAGG;AACH,eAAO,MAAM,oBAAoB,eAAgB,cAAc,KAAG,UAwBjE,CAAC;AAEF,MAAM,WAAW,iBAAiB;IACjC,QAAQ,CAAC,OAAO,EAAE,cAAc,GAAG,iBAAiB,CAAC;CACrD;AAED,eAAO,MAAM,eAAe,oBAA6B,OAAO,CAAC,UAAU,CAiB1E,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,CACxC,aAAa,EAAE,GAAG,EAClB,WAAW,EAAE,MAAM,KACf,OAAO,CAAC,aAAa,IAAI,iBAS7B,CAAC"}
|
package/dist/gro_helpers.d.ts
CHANGED
|
@@ -45,5 +45,5 @@ export declare const resolve_gro_module_path: (path?: string) => string;
|
|
|
45
45
|
* @param loader_path path to loader
|
|
46
46
|
* @param invoke_path path to file to spawn with `node`
|
|
47
47
|
*/
|
|
48
|
-
export declare const spawn_with_loader: (loader_path: string, invoke_path: string, argv: string
|
|
48
|
+
export declare const spawn_with_loader: (loader_path: string, invoke_path: string, argv: Array<string>, js_cli?: string) => Promise<Spawn_Result>;
|
|
49
49
|
//# sourceMappingURL=gro_helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gro_helpers.d.ts","sourceRoot":"../src/lib/","sources":["gro_helpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAQ,KAAK,YAAY,EAAC,MAAM,2BAA2B,CAAC;AAUnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,uBAAuB,qBAAgB,MAsBnD,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,gBAChB,MAAM,eACN,MAAM,QACb,MAAM,
|
|
1
|
+
{"version":3,"file":"gro_helpers.d.ts","sourceRoot":"../src/lib/","sources":["gro_helpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAQ,KAAK,YAAY,EAAC,MAAM,2BAA2B,CAAC;AAUnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,uBAAuB,qBAAgB,MAsBnD,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,gBAChB,MAAM,eACN,MAAM,QACb,KAAK,CAAC,MAAM,CAAC,sBAEjB,OAAO,CAAC,YAAY,CAgBtB,CAAC"}
|
package/dist/gro_plugin_gen.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ export interface Task_Args extends Args {
|
|
|
6
6
|
watch?: boolean;
|
|
7
7
|
}
|
|
8
8
|
export interface Gro_Plugin_Gen_Options {
|
|
9
|
-
input_paths?: string
|
|
10
|
-
root_dirs?: string
|
|
9
|
+
input_paths?: Array<string>;
|
|
10
|
+
root_dirs?: Array<string>;
|
|
11
11
|
flush_debounce_delay?: number;
|
|
12
12
|
}
|
|
13
13
|
export declare const gro_plugin_gen: ({ input_paths, root_dirs, flush_debounce_delay, }?: Gro_Plugin_Gen_Options) => Plugin;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gro_plugin_gen.d.ts","sourceRoot":"../src/lib/","sources":["gro_plugin_gen.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAIpC,OAAO,KAAK,EAAC,WAAW,EAAE,OAAO,EAAC,MAAM,WAAW,CAAC;AACpD,OAAO,KAAK,EAAgB,WAAW,EAAC,MAAM,YAAY,CAAC;AAI3D,MAAM,WAAW,SAAU,SAAQ,IAAI;IACtC,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,sBAAsB;IACtC,WAAW,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"gro_plugin_gen.d.ts","sourceRoot":"../src/lib/","sources":["gro_plugin_gen.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAIpC,OAAO,KAAK,EAAC,WAAW,EAAE,OAAO,EAAC,MAAM,WAAW,CAAC;AACpD,OAAO,KAAK,EAAgB,WAAW,EAAC,MAAM,YAAY,CAAC;AAI3D,MAAM,WAAW,SAAU,SAAQ,IAAI;IACtC,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,sBAAsB;IACtC,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,eAAO,MAAM,cAAc,uDAIxB,sBAAsB,KAAkB,MAkF1C,CAAC;AAEF,eAAO,MAAM,iBAAiB,gBAChB,WAAW,aACb,CAAC,EAAE,EAAE,OAAO,KAAK,WAAW,GAAG,SAAS,WAC1C,WAAW,YACX,GAAG,CAAC,MAAM,CAAC,aACV,GAAG,CAAC,MAAM,CAAC,KACnB,GAAG,CAAC,MAAM,CAYZ,CAAC"}
|
|
@@ -5,7 +5,7 @@ export interface Task_Args extends Args {
|
|
|
5
5
|
watch?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export interface Gro_Plugin_Moss_Options {
|
|
8
|
-
include_classes?: string
|
|
8
|
+
include_classes?: Array<string> | Set<string> | null;
|
|
9
9
|
outfile?: string;
|
|
10
10
|
filter_file?: File_Filter | null;
|
|
11
11
|
flush_debounce_delay?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gro_plugin_moss.d.ts","sourceRoot":"../src/lib/","sources":["gro_plugin_moss.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAGpC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,WAAW,CAAC;AAI3C,MAAM,WAAW,SAAU,SAAQ,IAAI;IACtC,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,uBAAuB;IACvC,eAAe,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"gro_plugin_moss.d.ts","sourceRoot":"../src/lib/","sources":["gro_plugin_moss.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAGpC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,WAAW,CAAC;AAI3C,MAAM,WAAW,SAAU,SAAQ,IAAI;IACtC,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,uBAAuB;IACvC,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IACrD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IACjC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,eAAe,8EAMzB,uBAAuB,KAAkB,MAmE3C,CAAC"}
|
|
@@ -10,7 +10,7 @@ export interface Gro_Plugin_Server_Options {
|
|
|
10
10
|
/**
|
|
11
11
|
* same as esbuild's `entryPoints`
|
|
12
12
|
*/
|
|
13
|
-
entry_points?: string
|
|
13
|
+
entry_points?: Array<string>;
|
|
14
14
|
/**
|
|
15
15
|
* @default cwd
|
|
16
16
|
*/
|
|
@@ -24,7 +24,7 @@ export interface Gro_Plugin_Server_Options {
|
|
|
24
24
|
/**
|
|
25
25
|
* @default SvelteKit's `.env`, `.env.development`, and `.env.production`
|
|
26
26
|
*/
|
|
27
|
-
env_files?: string
|
|
27
|
+
env_files?: Array<string>;
|
|
28
28
|
/**
|
|
29
29
|
* @default process.env
|
|
30
30
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gro_plugin_server.d.ts","sourceRoot":"../src/lib/","sources":["gro_plugin_server.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,KAAK,EAAC,MAAM,IAAI,eAAe,EAAC,MAAM,eAAe,CAAC;AAI7D,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,0BAA0B,CAAC;AAIrD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AAgBxC,eAAO,MAAM,gBAAgB,6BAA0D,CAAC;AAExF,eAAO,MAAM,UAAU,0CAA8B,MAAM,CAAC,MAAM,EAAE;IAAC,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AGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;CACd;AAED,MAAM,WAAW,QAAQ;IACxB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK,QAAQ,CAAC;AAEzD,eAAO,MAAM,iBAAiB,yJAgB3B,yBAAyB,KAAQ,MAwJnC,CAAC"}
|
package/dist/input_path.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export type Raw_Input_Path = Flavored<z.infer<typeof Raw_Input_Path>, 'Raw_Input
|
|
|
18
18
|
* Thus, input paths are either absolute or implicitly relative.
|
|
19
19
|
*/
|
|
20
20
|
export declare const to_input_path: (raw_input_path: Raw_Input_Path, root_path?: string) => Input_Path;
|
|
21
|
-
export declare const to_input_paths: (raw_input_paths: Raw_Input_Path
|
|
21
|
+
export declare const to_input_paths: (raw_input_paths: Array<Raw_Input_Path>, root_path?: string) => Array<Input_Path>;
|
|
22
22
|
export interface Possible_Path {
|
|
23
23
|
id: Path_Id;
|
|
24
24
|
input_path: Input_Path;
|
|
@@ -28,7 +28,7 @@ export interface Possible_Path {
|
|
|
28
28
|
* Gets a list of possible source ids for each input path with `extensions`,
|
|
29
29
|
* duplicating each under `root_dirs`, without checking the filesystem.
|
|
30
30
|
*/
|
|
31
|
-
export declare const get_possible_paths: (input_path: Input_Path, root_dirs: Path_Id
|
|
31
|
+
export declare const get_possible_paths: (input_path: Input_Path, root_dirs: Array<Path_Id>, extensions: Array<string>) => Array<Possible_Path>;
|
|
32
32
|
export interface Resolved_Input_Path {
|
|
33
33
|
input_path: Input_Path;
|
|
34
34
|
id: Path_Id;
|
|
@@ -41,24 +41,24 @@ export interface Resolved_Input_File {
|
|
|
41
41
|
resolved_input_path: Resolved_Input_Path;
|
|
42
42
|
}
|
|
43
43
|
export interface Resolved_Input_Paths {
|
|
44
|
-
resolved_input_paths: Resolved_Input_Path
|
|
45
|
-
possible_paths_by_input_path: Map<Input_Path, Possible_Path
|
|
46
|
-
unmapped_input_paths: Input_Path
|
|
44
|
+
resolved_input_paths: Array<Resolved_Input_Path>;
|
|
45
|
+
possible_paths_by_input_path: Map<Input_Path, Array<Possible_Path>>;
|
|
46
|
+
unmapped_input_paths: Array<Input_Path>;
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
49
|
* Gets the path data for each input path, checking the filesystem for the possibilities
|
|
50
50
|
* and stopping at the first existing file or falling back to the first existing directory.
|
|
51
51
|
* If none is found for an input path, it's added to `unmapped_input_paths`.
|
|
52
52
|
*/
|
|
53
|
-
export declare const resolve_input_paths: (input_paths: Input_Path
|
|
53
|
+
export declare const resolve_input_paths: (input_paths: Array<Input_Path>, root_dirs: Array<Path_Id>, extensions: Array<string>) => Resolved_Input_Paths;
|
|
54
54
|
export interface Resolved_Input_Files {
|
|
55
|
-
resolved_input_files: Resolved_Input_File
|
|
56
|
-
resolved_input_files_by_root_dir: Map<Path_Id, Resolved_Input_File
|
|
57
|
-
input_directories_with_no_files: Input_Path
|
|
55
|
+
resolved_input_files: Array<Resolved_Input_File>;
|
|
56
|
+
resolved_input_files_by_root_dir: Map<Path_Id, Array<Resolved_Input_File>>;
|
|
57
|
+
input_directories_with_no_files: Array<Input_Path>;
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
60
|
* Finds all of the matching files for the given input paths.
|
|
61
61
|
* De-dupes source ids.
|
|
62
62
|
*/
|
|
63
|
-
export declare const resolve_input_files: (resolved_input_paths: Resolved_Input_Path
|
|
63
|
+
export declare const resolve_input_files: (resolved_input_paths: Array<Resolved_Input_Path>, search?: (dir: string) => Array<Resolved_Path>) => Resolved_Input_Files;
|
|
64
64
|
//# sourceMappingURL=input_path.d.ts.map
|
package/dist/input_path.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input_path.d.ts","sourceRoot":"../src/lib/","sources":["input_path.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,yBAAyB,CAAC;AAGtD,OAAO,KAAK,EAAY,OAAO,EAAE,aAAa,EAAC,MAAM,WAAW,CAAC;AAKjE,eAAO,MAAM,UAAU,aAAa,CAAC;AACrC,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,EAAE,YAAY,CAAC,CAAC;AAE5E,eAAO,MAAM,cAAc,aAAa,CAAC;AACzC,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,EAAE,gBAAgB,CAAC,CAAC;AAExF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,mBACT,cAAc,yBAE5B,UAOF,CAAC;AAEF,eAAO,MAAM,cAAc,oBACT,cAAc,
|
|
1
|
+
{"version":3,"file":"input_path.d.ts","sourceRoot":"../src/lib/","sources":["input_path.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,yBAAyB,CAAC;AAGtD,OAAO,KAAK,EAAY,OAAO,EAAE,aAAa,EAAC,MAAM,WAAW,CAAC;AAKjE,eAAO,MAAM,UAAU,aAAa,CAAC;AACrC,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,EAAE,YAAY,CAAC,CAAC;AAE5E,eAAO,MAAM,cAAc,aAAa,CAAC;AACzC,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,EAAE,gBAAgB,CAAC,CAAC;AAExF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,mB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AE,KAAK,CAAC,UAAU,CAAC,CAAC;CACnD;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,yBACT,KAAK,CAAC,mBAAmB,CAAC,WACxC,CAAC,GAAG,EAAE,MAAM,KAAK,KAAK,CAAC,aAAa,CAAC,KAC3C,oBA+DF,CAAC"}
|
package/dist/invoke.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { attach_process_error_handlers } from '@ryanatkn/belt/process.js';
|
|
2
2
|
import { configure_log_colors } from '@ryanatkn/belt/log.js';
|
|
3
|
+
import { set_colors } from '@ryanatkn/belt/print.js';
|
|
3
4
|
import { styleText } from 'node:util';
|
|
4
5
|
import { invoke_task } from './invoke_task.js';
|
|
5
6
|
import { to_task_args } from './args.js';
|
|
@@ -18,6 +19,7 @@ and the rest of the args are forwarded to the task's `run` function.
|
|
|
18
19
|
// handle uncaught errors
|
|
19
20
|
attach_process_error_handlers((err) => (err.constructor.name === 'Task_Error' ? 'Task_Error' : null), (err) => (err.constructor.name === 'Silent_Error' ? '' : null));
|
|
20
21
|
configure_log_colors(styleText);
|
|
22
|
+
set_colors(styleText);
|
|
21
23
|
await sveltekit_sync_if_obviously_needed();
|
|
22
24
|
const { task_name, args } = to_task_args();
|
|
23
25
|
await invoke_task(task_name, args, await load_gro_config());
|
package/dist/modules.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Timings } from '@ryanatkn/belt/timings.js';
|
|
1
2
|
import type { Result } from '@ryanatkn/belt/result.js';
|
|
2
3
|
import type { Resolved_Input_File } from './input_path.js';
|
|
3
4
|
import type { Path_Id } from './path.js';
|
|
@@ -24,12 +25,12 @@ export type Load_Module_Failure = {
|
|
|
24
25
|
export declare const load_module: <T_Module extends Record<string, any>>(id: Path_Id, validate?: (mod: Record<string, any>) => mod is T_Module) => Promise<Load_Module_Result<T_Module>>;
|
|
25
26
|
export interface Load_Modules_Failure<T_Module_Meta extends Module_Meta> {
|
|
26
27
|
type: 'load_module_failures';
|
|
27
|
-
load_module_failures: Load_Module_Failure
|
|
28
|
-
reasons: string
|
|
29
|
-
modules: T_Module_Meta
|
|
28
|
+
load_module_failures: Array<Load_Module_Failure>;
|
|
29
|
+
reasons: Array<string>;
|
|
30
|
+
modules: Array<T_Module_Meta>;
|
|
30
31
|
}
|
|
31
32
|
export type Load_Modules_Result<T_Module_Meta extends Module_Meta> = Result<{
|
|
32
|
-
modules: T_Module_Meta
|
|
33
|
+
modules: Array<T_Module_Meta>;
|
|
33
34
|
}, Load_Modules_Failure<T_Module_Meta>>;
|
|
34
|
-
export declare const load_modules: <T_Module extends Record<string, any>, T_Module_Meta extends Module_Meta<T_Module>>(resolved_input_files: Resolved_Input_File
|
|
35
|
+
export declare const load_modules: <T_Module extends Record<string, any>, T_Module_Meta extends Module_Meta<T_Module>>(resolved_input_files: Array<Resolved_Input_File>, validate: (mod: any) => mod is T_Module, map_module_meta: (resolved_input_file: Resolved_Input_File, mod: T_Module) => T_Module_Meta, timings?: Timings) => Promise<Load_Modules_Result<T_Module_Meta>>;
|
|
35
36
|
//# sourceMappingURL=modules.d.ts.map
|
package/dist/modules.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modules.d.ts","sourceRoot":"../src/lib/","sources":["modules.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"modules.d.ts","sourceRoot":"../src/lib/","sources":["modules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,2BAA2B,CAAC;AAEvD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,0BAA0B,CAAC;AAGrD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AAEzD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAEvC,MAAM,WAAW,WAAW,CAAC,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM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,CAAC;AAGF,eAAO,MAAM,YAAY,GACxB,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACpC,aAAa,SAAS,WAAW,CAAC,QAAQ,CAAC,wBAErB,KAAK,CAAC,mBAAmB,CAAC,YACtC,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG,IAAI,QAAQ,mBACtB,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,GAAG,EAAE,QAAQ,KAAK,aAAa,YACjF,OAAO,KACf,OAAO,CAAC,mBAAmB,CAAC,aAAa,CAAC,CA2C5C,CAAC"}
|
package/dist/package.d.ts
CHANGED
package/dist/package.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package.d.ts","sourceRoot":"../src/lib/","sources":["package.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"package.d.ts","sourceRoot":"../src/lib/","sources":["package.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkQD,CAAC;AAEzB,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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