@ryanatkn/gro 0.180.0 → 0.181.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 +1 -1
- package/dist/build.task.js +2 -2
- package/dist/build_cache.d.ts +1 -1
- package/dist/build_cache.d.ts.map +1 -1
- package/dist/build_cache.js +3 -3
- package/dist/changelog.d.ts +2 -2
- package/dist/changelog.d.ts.map +1 -1
- package/dist/changeset.task.js +3 -3
- package/dist/check.task.js +2 -2
- package/dist/child_process_logging.js +1 -1
- package/dist/clean.task.js +2 -2
- package/dist/cli.d.ts +3 -3
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +2 -2
- package/dist/commit.task.js +2 -2
- package/dist/deploy.task.js +4 -4
- package/dist/disknode.d.ts +1 -1
- package/dist/disknode.d.ts.map +1 -1
- package/dist/esbuild_helpers.d.ts +1 -1
- package/dist/esbuild_helpers.d.ts.map +1 -1
- package/dist/esbuild_plugin_external_worker.d.ts +1 -1
- package/dist/esbuild_plugin_external_worker.d.ts.map +1 -1
- package/dist/esbuild_plugin_sveltekit_shim_alias.js +1 -1
- package/dist/filer.d.ts +4 -4
- package/dist/filer.d.ts.map +1 -1
- package/dist/filer.js +2 -2
- package/dist/format.task.js +1 -1
- package/dist/format_directory.d.ts +2 -2
- package/dist/format_directory.d.ts.map +1 -1
- package/dist/gen.d.ts +4 -4
- package/dist/gen.d.ts.map +1 -1
- package/dist/gen.js +2 -2
- package/dist/gen.task.js +2 -2
- package/dist/gen_helpers.d.ts +3 -3
- package/dist/gen_helpers.d.ts.map +1 -1
- package/dist/github.d.ts +2 -2
- package/dist/github.d.ts.map +1 -1
- package/dist/github.js +1 -1
- package/dist/gro_config.d.ts +1 -1
- package/dist/gro_config.d.ts.map +1 -1
- package/dist/gro_config.js +3 -3
- package/dist/gro_helpers.d.ts +1 -1
- package/dist/gro_helpers.d.ts.map +1 -1
- package/dist/gro_helpers.js +1 -1
- package/dist/gro_plugin_gen.js +3 -3
- package/dist/gro_plugin_server.d.ts +2 -2
- package/dist/gro_plugin_server.d.ts.map +1 -1
- package/dist/gro_plugin_server.js +5 -5
- package/dist/gro_plugin_sveltekit_app.js +1 -1
- package/dist/gro_plugin_sveltekit_library.js +1 -1
- package/dist/input_path.d.ts +2 -2
- package/dist/input_path.d.ts.map +1 -1
- package/dist/input_path.js +2 -2
- package/dist/invoke.js +2 -2
- package/dist/invoke_task.d.ts +2 -2
- package/dist/invoke_task.d.ts.map +1 -1
- package/dist/invoke_task.js +3 -3
- package/dist/lint.task.js +1 -1
- package/dist/loader.js +1 -1
- package/dist/modules.d.ts +3 -3
- package/dist/modules.d.ts.map +1 -1
- package/dist/modules.js +2 -2
- package/dist/package_json.d.ts +2 -2
- package/dist/package_json.d.ts.map +1 -1
- package/dist/package_json.js +3 -3
- package/dist/parse_exports.d.ts +4 -4
- package/dist/parse_exports.d.ts.map +1 -1
- package/dist/parse_exports_context.d.ts +1 -1
- package/dist/parse_exports_context.d.ts.map +1 -1
- package/dist/parse_imports.d.ts +2 -2
- package/dist/parse_imports.d.ts.map +1 -1
- package/dist/parse_imports.js +1 -1
- package/dist/paths.d.ts +1 -1
- package/dist/paths.d.ts.map +1 -1
- package/dist/paths.js +1 -1
- package/dist/publish.task.js +3 -3
- package/dist/reinstall.task.js +1 -1
- package/dist/resolve_specifier.d.ts +1 -1
- package/dist/resolve_specifier.d.ts.map +1 -1
- package/dist/resolve_specifier.js +1 -1
- package/dist/run.task.js +1 -1
- package/dist/run_gen.d.ts +2 -2
- package/dist/run_gen.d.ts.map +1 -1
- package/dist/run_gen.js +2 -2
- package/dist/run_task.d.ts +2 -2
- package/dist/run_task.d.ts.map +1 -1
- package/dist/source_json.d.ts +3 -3
- package/dist/source_json.d.ts.map +1 -1
- package/dist/source_json.js +3 -3
- package/dist/svelte_config.js +1 -1
- package/dist/sveltekit_helpers.d.ts +3 -3
- package/dist/sveltekit_helpers.d.ts.map +1 -1
- package/dist/sveltekit_helpers.js +1 -1
- package/dist/sveltekit_shim_app_forms.js +1 -1
- package/dist/sveltekit_shim_app_navigation.js +1 -1
- package/dist/sveltekit_shim_app_paths.js +1 -1
- package/dist/sync.task.js +1 -1
- package/dist/task.d.ts +4 -4
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +2 -2
- package/dist/task_logging.d.ts +1 -1
- package/dist/task_logging.d.ts.map +1 -1
- package/dist/task_logging.js +2 -2
- package/dist/typecheck.task.js +1 -1
- package/dist/upgrade.task.js +2 -2
- package/dist/watch_dir.d.ts +1 -1
- package/dist/watch_dir.d.ts.map +1 -1
- package/dist/watch_dir.js +2 -2
- package/package.json +8 -8
- package/src/lib/build.task.ts +2 -2
- package/src/lib/build_cache.ts +4 -4
- package/src/lib/changelog.ts +2 -2
- package/src/lib/changeset.task.ts +3 -3
- package/src/lib/check.task.ts +2 -2
- package/src/lib/child_process_logging.ts +1 -1
- package/src/lib/clean.task.ts +2 -2
- package/src/lib/cli.ts +4 -4
- package/src/lib/commit.task.ts +2 -2
- package/src/lib/deploy.task.ts +4 -4
- package/src/lib/disknode.ts +1 -1
- package/src/lib/esbuild_helpers.ts +1 -1
- package/src/lib/esbuild_plugin_external_worker.ts +2 -2
- package/src/lib/esbuild_plugin_sveltekit_shim_alias.ts +1 -1
- package/src/lib/filer.ts +6 -6
- package/src/lib/format.task.ts +1 -1
- package/src/lib/format_directory.ts +2 -2
- package/src/lib/gen.task.ts +2 -2
- package/src/lib/gen.ts +6 -6
- package/src/lib/gen_helpers.ts +3 -3
- package/src/lib/github.ts +2 -2
- package/src/lib/gro_config.ts +4 -4
- package/src/lib/gro_helpers.ts +1 -1
- package/src/lib/gro_plugin_gen.ts +3 -3
- package/src/lib/gro_plugin_server.ts +7 -7
- package/src/lib/gro_plugin_sveltekit_app.ts +2 -2
- package/src/lib/gro_plugin_sveltekit_library.ts +1 -1
- package/src/lib/input_path.ts +4 -4
- package/src/lib/invoke.ts +2 -2
- package/src/lib/invoke_task.ts +3 -3
- package/src/lib/lint.task.ts +1 -1
- package/src/lib/loader.ts +1 -1
- package/src/lib/modules.ts +5 -5
- package/src/lib/package_json.ts +4 -4
- package/src/lib/parse_exports.ts +4 -4
- package/src/lib/parse_exports_context.ts +2 -2
- package/src/lib/parse_imports.ts +3 -3
- package/src/lib/paths.ts +2 -2
- package/src/lib/publish.task.ts +3 -3
- package/src/lib/reinstall.task.ts +1 -1
- package/src/lib/resolve_specifier.ts +2 -2
- package/src/lib/run.task.ts +1 -1
- package/src/lib/run_gen.ts +4 -4
- package/src/lib/run_task.ts +2 -2
- package/src/lib/source_json.ts +5 -5
- package/src/lib/svelte_config.ts +1 -1
- package/src/lib/sveltekit_helpers.ts +4 -4
- package/src/lib/sveltekit_shim_app_forms.ts +1 -1
- package/src/lib/sveltekit_shim_app_navigation.ts +1 -1
- package/src/lib/sveltekit_shim_app_paths.ts +1 -1
- package/src/lib/sync.task.ts +1 -1
- package/src/lib/task.ts +6 -6
- package/src/lib/task_logging.ts +3 -3
- package/src/lib/typecheck.task.ts +1 -1
- package/src/lib/upgrade.task.ts +2 -2
- package/src/lib/watch_dir.ts +3 -3
package/src/lib/changelog.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {readFile, writeFile} from 'node:fs/promises';
|
|
2
2
|
import {z} from 'zod';
|
|
3
|
-
import type {Logger} from '@
|
|
4
|
-
import type {FetchValueCache} from '@
|
|
3
|
+
import type {Logger} from '@fuzdev/fuz_util/log.js';
|
|
4
|
+
import type {FetchValueCache} from '@fuzdev/fuz_util/fetch.js';
|
|
5
5
|
|
|
6
6
|
import {github_fetch_commit_prs} from './github.ts';
|
|
7
7
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {z} from 'zod';
|
|
2
|
-
import {spawn} from '@
|
|
2
|
+
import {spawn} from '@fuzdev/fuz_util/process.js';
|
|
3
3
|
import {styleText as st} from 'node:util';
|
|
4
4
|
import type {WrittenConfig} from '@changesets/types';
|
|
5
5
|
import {readdir, readFile, writeFile} from 'node:fs/promises';
|
|
6
6
|
import {join} from 'node:path';
|
|
7
|
-
import {fs_exists} from '@
|
|
7
|
+
import {fs_exists} from '@fuzdev/fuz_util/fs.js';
|
|
8
8
|
import {
|
|
9
9
|
GitOrigin,
|
|
10
10
|
git_check_fully_staged_workspace,
|
|
11
11
|
git_push_to_create,
|
|
12
|
-
} from '@
|
|
12
|
+
} from '@fuzdev/fuz_util/git.js';
|
|
13
13
|
|
|
14
14
|
import {TaskError, type Task} from './task.ts';
|
|
15
15
|
import {find_cli, spawn_cli} from './cli.ts';
|
package/src/lib/check.task.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {z} from 'zod';
|
|
2
|
-
import {spawn} from '@
|
|
2
|
+
import {spawn} from '@fuzdev/fuz_util/process.js';
|
|
3
3
|
import {styleText as st} from 'node:util';
|
|
4
|
-
import {git_check_clean_workspace} from '@
|
|
4
|
+
import {git_check_clean_workspace} from '@fuzdev/fuz_util/git.js';
|
|
5
5
|
|
|
6
6
|
import {TaskError, type Task} from './task.ts';
|
|
7
7
|
import {sync_package_json} from './package_json.ts';
|
package/src/lib/clean.task.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {spawn} from '@
|
|
1
|
+
import {spawn} from '@fuzdev/fuz_util/process.js';
|
|
2
2
|
import {z} from 'zod';
|
|
3
|
-
import {GitOrigin} from '@
|
|
3
|
+
import {GitOrigin} from '@fuzdev/fuz_util/git.js';
|
|
4
4
|
|
|
5
5
|
import type {Task} from './task.ts';
|
|
6
6
|
import {clean_fs} from './clean_fs.ts';
|
package/src/lib/cli.ts
CHANGED
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
spawn_process,
|
|
6
6
|
type SpawnResult,
|
|
7
7
|
type SpawnedProcess,
|
|
8
|
-
} from '@
|
|
8
|
+
} from '@fuzdev/fuz_util/process.js';
|
|
9
9
|
import {join} from 'node:path';
|
|
10
|
-
import {fs_exists} from '@
|
|
10
|
+
import {fs_exists} from '@fuzdev/fuz_util/fs.js';
|
|
11
11
|
import {fileURLToPath, type URL} from 'node:url';
|
|
12
|
-
import type {Logger} from '@
|
|
13
|
-
import type {PathId} from '@
|
|
12
|
+
import type {Logger} from '@fuzdev/fuz_util/log.js';
|
|
13
|
+
import type {PathId} from '@fuzdev/fuz_util/path.js';
|
|
14
14
|
|
|
15
15
|
import {NODE_MODULES_DIRNAME} from './constants.ts';
|
|
16
16
|
import {print_command_args} from './args.ts';
|
package/src/lib/commit.task.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {spawn} from '@
|
|
1
|
+
import {spawn} from '@fuzdev/fuz_util/process.js';
|
|
2
2
|
import {z} from 'zod';
|
|
3
|
-
import {GitOrigin, git_current_branch_name, git_push} from '@
|
|
3
|
+
import {GitOrigin, git_current_branch_name, git_push} from '@fuzdev/fuz_util/git.js';
|
|
4
4
|
|
|
5
5
|
import type {Task} from './task.ts';
|
|
6
6
|
|
package/src/lib/deploy.task.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {spawn} from '@
|
|
2
|
-
import {print_error} from '@
|
|
1
|
+
import {spawn} from '@fuzdev/fuz_util/process.js';
|
|
2
|
+
import {print_error} from '@fuzdev/fuz_util/print.js';
|
|
3
3
|
import {styleText as st} from 'node:util';
|
|
4
4
|
import {z} from 'zod';
|
|
5
5
|
import {cp, mkdir, readdir, rm} from 'node:fs/promises';
|
|
6
6
|
import {join, resolve} from 'node:path';
|
|
7
|
-
import {fs_exists, fs_empty_dir} from '@
|
|
7
|
+
import {fs_exists, fs_empty_dir} from '@fuzdev/fuz_util/fs.js';
|
|
8
8
|
import {
|
|
9
9
|
git_check_clean_workspace,
|
|
10
10
|
git_checkout,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
git_check_setting_pull_rebase,
|
|
21
21
|
git_clone_locally,
|
|
22
22
|
git_current_branch_name,
|
|
23
|
-
} from '@
|
|
23
|
+
} from '@fuzdev/fuz_util/git.js';
|
|
24
24
|
|
|
25
25
|
import {TaskError, type Task} from './task.ts';
|
|
26
26
|
import {print_path} from './paths.ts';
|
package/src/lib/disknode.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as esbuild from 'esbuild';
|
|
2
|
-
import type {Logger} from '@
|
|
2
|
+
import type {Logger} from '@fuzdev/fuz_util/log.js';
|
|
3
3
|
import {basename} from 'node:path';
|
|
4
4
|
import type {CompileOptions, ModuleCompileOptions, PreprocessorGroup} from 'svelte/compiler';
|
|
5
|
-
import type {PathId} from '@
|
|
5
|
+
import type {PathId} from '@fuzdev/fuz_util/path.js';
|
|
6
6
|
|
|
7
7
|
import {print_build_result, to_define_import_meta_env} from './esbuild_helpers.ts';
|
|
8
8
|
import {resolve_specifier} from './resolve_specifier.ts';
|
package/src/lib/filer.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {EMPTY_OBJECT} from '@
|
|
1
|
+
import {EMPTY_OBJECT} from '@fuzdev/fuz_util/object.js';
|
|
2
2
|
import {readFile, stat} from 'node:fs/promises';
|
|
3
3
|
import {dirname, resolve} from 'node:path';
|
|
4
|
-
import type {OmitStrict} from '@
|
|
4
|
+
import type {OmitStrict} from '@fuzdev/fuz_util/types.js';
|
|
5
5
|
import {isBuiltin} from 'node:module';
|
|
6
6
|
import {fileURLToPath, pathToFileURL} from 'node:url';
|
|
7
|
-
import {UnreachableError} from '@
|
|
8
|
-
import type {Logger} from '@
|
|
9
|
-
import type {PackageJson} from '@
|
|
10
|
-
import type {FileFilter, PathId} from '@
|
|
7
|
+
import {UnreachableError} from '@fuzdev/fuz_util/error.js';
|
|
8
|
+
import type {Logger} from '@fuzdev/fuz_util/log.js';
|
|
9
|
+
import type {PackageJson} from '@fuzdev/fuz_util/package_json.js';
|
|
10
|
+
import type {FileFilter, PathId} from '@fuzdev/fuz_util/path.js';
|
|
11
11
|
|
|
12
12
|
import {
|
|
13
13
|
watch_dir,
|
package/src/lib/format.task.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {SpawnResult} from '@
|
|
2
|
-
import type {Logger} from '@
|
|
1
|
+
import type {SpawnResult} from '@fuzdev/fuz_util/process.js';
|
|
2
|
+
import type {Logger} from '@fuzdev/fuz_util/log.js';
|
|
3
3
|
|
|
4
4
|
import {paths} from './paths.ts';
|
|
5
5
|
import {
|
package/src/lib/gen.task.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {styleText as st} from 'node:util';
|
|
2
|
-
import {print_ms, print_error} from '@
|
|
3
|
-
import {plural} from '@
|
|
2
|
+
import {print_ms, print_error} from '@fuzdev/fuz_util/print.js';
|
|
3
|
+
import {plural} from '@fuzdev/fuz_util/string.js';
|
|
4
4
|
import {z} from 'zod';
|
|
5
5
|
|
|
6
6
|
import {TaskError, type Task} from './task.ts';
|
package/src/lib/gen.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type {Logger} from '@
|
|
1
|
+
import type {Logger} from '@fuzdev/fuz_util/log.js';
|
|
2
2
|
import {join, basename, dirname, isAbsolute} from 'node:path';
|
|
3
3
|
import {mkdir, readFile, writeFile} from 'node:fs/promises';
|
|
4
|
-
import type {Result} from '@
|
|
5
|
-
import type {Timings} from '@
|
|
4
|
+
import type {Result} from '@fuzdev/fuz_util/result.js';
|
|
5
|
+
import type {Timings} from '@fuzdev/fuz_util/timings.js';
|
|
6
6
|
import {styleText as st} from 'node:util';
|
|
7
|
-
import type {PathId} from '@
|
|
8
|
-
import {map_concurrent} from '@
|
|
9
|
-
import {fs_search} from '@
|
|
7
|
+
import type {PathId} from '@fuzdev/fuz_util/path.js';
|
|
8
|
+
import {map_concurrent} from '@fuzdev/fuz_util/async.js';
|
|
9
|
+
import {fs_search} from '@fuzdev/fuz_util/fs.js';
|
|
10
10
|
|
|
11
11
|
import {print_path} from './paths.ts';
|
|
12
12
|
import type {GroConfig} from './gro_config.ts';
|
package/src/lib/gen_helpers.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {resolve} from 'node:path';
|
|
2
|
-
import type {Logger} from '@
|
|
3
|
-
import type {Timings} from '@
|
|
4
|
-
import type {PathId} from '@
|
|
2
|
+
import type {Logger} from '@fuzdev/fuz_util/log.js';
|
|
3
|
+
import type {Timings} from '@fuzdev/fuz_util/timings.js';
|
|
4
|
+
import type {PathId} from '@fuzdev/fuz_util/path.js';
|
|
5
5
|
|
|
6
6
|
import type {GroConfig} from './gro_config.ts';
|
|
7
7
|
import {filter_dependents, type Filer} from './filer.ts';
|
package/src/lib/github.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// for now it's just calling a single endpoint so we do it manually
|
|
3
3
|
// and we specify just the types we need
|
|
4
4
|
|
|
5
|
-
import {FetchValueCache, fetch_value} from '@
|
|
6
|
-
import type {Logger} from '@
|
|
5
|
+
import {FetchValueCache, fetch_value} from '@fuzdev/fuz_util/fetch.js';
|
|
6
|
+
import type {Logger} from '@fuzdev/fuz_util/log.js';
|
|
7
7
|
import {z} from 'zod';
|
|
8
8
|
|
|
9
9
|
export const GITHUB_REPO_MATCHER = /.+github.com\/(.+)\/(.+)/;
|
package/src/lib/gro_config.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {join, resolve} from 'node:path';
|
|
2
|
-
import {fs_exists} from '@
|
|
3
|
-
import {identity} from '@
|
|
4
|
-
import type {PathFilter, PathId} from '@
|
|
5
|
-
import {json_stringify_deterministic} from '@
|
|
2
|
+
import {fs_exists} from '@fuzdev/fuz_util/fs.js';
|
|
3
|
+
import {identity} from '@fuzdev/fuz_util/function.js';
|
|
4
|
+
import type {PathFilter, PathId} from '@fuzdev/fuz_util/path.js';
|
|
5
|
+
import {json_stringify_deterministic} from '@fuzdev/fuz_util/json.js';
|
|
6
6
|
|
|
7
7
|
import {GRO_DIST_DIR, IS_THIS_GRO, paths} from './paths.ts';
|
|
8
8
|
import {
|
package/src/lib/gro_helpers.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {realpathSync, existsSync} from 'node:fs';
|
|
2
2
|
import {join, resolve} from 'node:path';
|
|
3
3
|
import {fileURLToPath} from 'node:url';
|
|
4
|
-
import {spawn, type SpawnResult} from '@
|
|
4
|
+
import {spawn, type SpawnResult} from '@fuzdev/fuz_util/process.js';
|
|
5
5
|
|
|
6
6
|
import {JS_CLI_DEFAULT, NODE_MODULES_DIRNAME, SVELTEKIT_DIST_DIRNAME} from './constants.ts';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {EMPTY_OBJECT} from '@
|
|
2
|
-
import {throttle} from '@
|
|
3
|
-
import {UnreachableError} from '@
|
|
1
|
+
import {EMPTY_OBJECT} from '@fuzdev/fuz_util/object.js';
|
|
2
|
+
import {throttle} from '@fuzdev/fuz_util/throttle.js';
|
|
3
|
+
import {UnreachableError} from '@fuzdev/fuz_util/error.js';
|
|
4
4
|
|
|
5
5
|
import type {Plugin} from './plugin.ts';
|
|
6
6
|
import type {Args} from './args.ts';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {spawn_restartable_process, type RestartableProcess} from '@
|
|
1
|
+
import {spawn_restartable_process, type RestartableProcess} from '@fuzdev/fuz_util/process.js';
|
|
2
2
|
import * as esbuild from 'esbuild';
|
|
3
3
|
import type {Config as SvelteConfig} from '@sveltejs/kit';
|
|
4
4
|
import {join, resolve} from 'node:path';
|
|
5
|
-
import {identity} from '@
|
|
6
|
-
import {strip_before, strip_end} from '@
|
|
7
|
-
import type {Result} from '@
|
|
8
|
-
import {fs_exists} from '@
|
|
9
|
-
import {throttle} from '@
|
|
10
|
-
import type {PathId} from '@
|
|
5
|
+
import {identity} from '@fuzdev/fuz_util/function.js';
|
|
6
|
+
import {strip_before, strip_end} from '@fuzdev/fuz_util/string.js';
|
|
7
|
+
import type {Result} from '@fuzdev/fuz_util/result.js';
|
|
8
|
+
import {fs_exists} from '@fuzdev/fuz_util/fs.js';
|
|
9
|
+
import {throttle} from '@fuzdev/fuz_util/throttle.js';
|
|
10
|
+
import type {PathId} from '@fuzdev/fuz_util/path.js';
|
|
11
11
|
|
|
12
12
|
import type {Plugin} from './plugin.ts';
|
|
13
13
|
import {base_path_to_path_id, LIB_DIRNAME, paths} from './paths.ts';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {SpawnedProcess} from '@
|
|
1
|
+
import type {SpawnedProcess} from '@fuzdev/fuz_util/process.js';
|
|
2
2
|
import {cp, mkdir, rm, writeFile} from 'node:fs/promises';
|
|
3
3
|
import {dirname, join} from 'node:path';
|
|
4
|
-
import {fs_exists} from '@
|
|
4
|
+
import {fs_exists} from '@fuzdev/fuz_util/fs.js';
|
|
5
5
|
|
|
6
6
|
import type {Plugin} from './plugin.ts';
|
|
7
7
|
import {serialize_args, to_forwarded_args} from './args.ts';
|
package/src/lib/input_path.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {dirname, isAbsolute, join, resolve} from 'node:path';
|
|
2
2
|
import {stat} from 'node:fs/promises';
|
|
3
|
-
import {fs_exists, fs_search} from '@
|
|
4
|
-
import {strip_start} from '@
|
|
3
|
+
import {fs_exists, fs_search} from '@fuzdev/fuz_util/fs.js';
|
|
4
|
+
import {strip_start} from '@fuzdev/fuz_util/string.js';
|
|
5
5
|
import {z} from 'zod';
|
|
6
|
-
import type {Flavored} from '@
|
|
7
|
-
import type {PathInfo, PathId, ResolvedPath} from '@
|
|
6
|
+
import type {Flavored} from '@fuzdev/fuz_util/types.js';
|
|
7
|
+
import type {PathInfo, PathId, ResolvedPath} from '@fuzdev/fuz_util/path.js';
|
|
8
8
|
|
|
9
9
|
import {GRO_PACKAGE_DIR, GRO_DIST_DIR} from './paths.ts';
|
|
10
10
|
import {TASK_FILE_SUFFIX_JS} from './task.ts';
|
package/src/lib/invoke.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {attach_process_error_handlers} from '@
|
|
2
|
-
import {configure_print_colors} from '@
|
|
1
|
+
import {attach_process_error_handlers} from '@fuzdev/fuz_util/process.js';
|
|
2
|
+
import {configure_print_colors} from '@fuzdev/fuz_util/print.js';
|
|
3
3
|
|
|
4
4
|
import {invoke_task} from './invoke_task.ts';
|
|
5
5
|
import {to_task_args} from './args.ts';
|
package/src/lib/invoke_task.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {styleText as st} from 'node:util';
|
|
2
|
-
import {create_stopwatch, Timings} from '@
|
|
3
|
-
import {print_ms, print_timings} from '@
|
|
4
|
-
import {Logger} from '@
|
|
2
|
+
import {create_stopwatch, Timings} from '@fuzdev/fuz_util/timings.js';
|
|
3
|
+
import {print_ms, print_timings} from '@fuzdev/fuz_util/print.js';
|
|
4
|
+
import {Logger} from '@fuzdev/fuz_util/log.js';
|
|
5
5
|
|
|
6
6
|
import {to_forwarded_args, type Args} from './args.ts';
|
|
7
7
|
import {run_task} from './run_task.ts';
|
package/src/lib/lint.task.ts
CHANGED
package/src/lib/loader.ts
CHANGED
|
@@ -2,7 +2,7 @@ import {compile, compileModule, preprocess} from 'svelte/compiler';
|
|
|
2
2
|
import {fileURLToPath, pathToFileURL} from 'node:url';
|
|
3
3
|
import {dirname, join} from 'node:path';
|
|
4
4
|
import type {LoadHook, ResolveHook} from 'node:module';
|
|
5
|
-
import {escape_regexp} from '@
|
|
5
|
+
import {escape_regexp} from '@fuzdev/fuz_util/regexp.js';
|
|
6
6
|
import {readFileSync} from 'node:fs';
|
|
7
7
|
import ts_blank_space from 'ts-blank-space';
|
|
8
8
|
|
package/src/lib/modules.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {Timings} from '@
|
|
2
|
-
import {UnreachableError} from '@
|
|
3
|
-
import type {Result} from '@
|
|
4
|
-
import {print_error} from '@
|
|
1
|
+
import type {Timings} from '@fuzdev/fuz_util/timings.js';
|
|
2
|
+
import {UnreachableError} from '@fuzdev/fuz_util/error.js';
|
|
3
|
+
import type {Result} from '@fuzdev/fuz_util/result.js';
|
|
4
|
+
import {print_error} from '@fuzdev/fuz_util/print.js';
|
|
5
5
|
import {pathToFileURL} from 'node:url';
|
|
6
|
-
import type {PathId} from '@
|
|
6
|
+
import type {PathId} from '@fuzdev/fuz_util/path.js';
|
|
7
7
|
|
|
8
8
|
import type {ResolvedInputFile} from './input_path.ts';
|
|
9
9
|
import {print_path} from './paths.ts';
|
package/src/lib/package_json.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {z} from 'zod';
|
|
2
2
|
import {join} from 'node:path';
|
|
3
3
|
import {readFile, writeFile} from 'node:fs/promises';
|
|
4
|
-
import {plural, strip_end} from '@
|
|
5
|
-
import type {Logger} from '@
|
|
4
|
+
import {plural, strip_end} from '@fuzdev/fuz_util/string.js';
|
|
5
|
+
import type {Logger} from '@fuzdev/fuz_util/log.js';
|
|
6
6
|
import {styleText as st} from 'node:util';
|
|
7
|
-
import {PackageJson, PackageJsonExports} from '@
|
|
8
|
-
import {fs_search} from '@
|
|
7
|
+
import {PackageJson, PackageJsonExports} from '@fuzdev/fuz_util/package_json.js';
|
|
8
|
+
import {fs_search} from '@fuzdev/fuz_util/fs.js';
|
|
9
9
|
|
|
10
10
|
import {paths, gro_paths, IS_THIS_GRO} from './paths.ts';
|
|
11
11
|
import {
|
package/src/lib/parse_exports.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import ts from 'typescript';
|
|
2
2
|
import {extname} from 'node:path';
|
|
3
|
-
import type {Flavored} from '@
|
|
4
|
-
import type {Logger} from '@
|
|
5
|
-
import type {DeclarationKind} from '@
|
|
6
|
-
import type {PathId} from '@
|
|
3
|
+
import type {Flavored} from '@fuzdev/fuz_util/types.js';
|
|
4
|
+
import type {Logger} from '@fuzdev/fuz_util/log.js';
|
|
5
|
+
import type {DeclarationKind} from '@fuzdev/fuz_util/source_json.js';
|
|
6
|
+
import type {PathId} from '@fuzdev/fuz_util/path.js';
|
|
7
7
|
|
|
8
8
|
import {TS_MATCHER} from './constants.ts';
|
|
9
9
|
import {ParseExportsContext} from './parse_exports_context.ts';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ts from 'typescript';
|
|
2
|
-
import type {Logger} from '@
|
|
3
|
-
import type {DeclarationKind} from '@
|
|
2
|
+
import type {Logger} from '@fuzdev/fuz_util/log.js';
|
|
3
|
+
import type {DeclarationKind} from '@fuzdev/fuz_util/source_json.js';
|
|
4
4
|
|
|
5
5
|
import type {ExportDeclaration} from './parse_exports.ts';
|
|
6
6
|
|
package/src/lib/parse_imports.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {parseSync, type ImportDeclaration} from 'oxc-parser';
|
|
2
|
-
import type {Flavored} from '@
|
|
3
|
-
import {UnreachableError} from '@
|
|
4
|
-
import type {PathId} from '@
|
|
2
|
+
import type {Flavored} from '@fuzdev/fuz_util/types.js';
|
|
3
|
+
import {UnreachableError} from '@fuzdev/fuz_util/error.js';
|
|
4
|
+
import type {PathId} from '@fuzdev/fuz_util/path.js';
|
|
5
5
|
|
|
6
6
|
import {JS_MATCHER, TS_MATCHER, SVELTE_MATCHER, SVELTE_SCRIPT_MATCHER} from './constants.ts';
|
|
7
7
|
|
package/src/lib/paths.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {join, extname, relative, basename} from 'node:path';
|
|
2
2
|
import {fileURLToPath} from 'node:url';
|
|
3
|
-
import {ensure_end, strip_end} from '@
|
|
3
|
+
import {ensure_end, strip_end} from '@fuzdev/fuz_util/string.js';
|
|
4
4
|
import {styleText as st} from 'node:util';
|
|
5
|
-
import type {PathId} from '@
|
|
5
|
+
import type {PathId} from '@fuzdev/fuz_util/path.js';
|
|
6
6
|
|
|
7
7
|
import {
|
|
8
8
|
GRO_CONFIG_FILENAME,
|
package/src/lib/publish.task.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {spawn} from '@
|
|
1
|
+
import {spawn} from '@fuzdev/fuz_util/process.js';
|
|
2
2
|
import {z} from 'zod';
|
|
3
3
|
import {styleText as st} from 'node:util';
|
|
4
|
-
import {fs_exists} from '@
|
|
4
|
+
import {fs_exists} from '@fuzdev/fuz_util/fs.js';
|
|
5
5
|
import {
|
|
6
6
|
GitBranch,
|
|
7
7
|
GitOrigin,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
git_checkout,
|
|
10
10
|
git_fetch,
|
|
11
11
|
git_pull,
|
|
12
|
-
} from '@
|
|
12
|
+
} from '@fuzdev/fuz_util/git.js';
|
|
13
13
|
|
|
14
14
|
import {TaskError, type Task} from './task.ts';
|
|
15
15
|
import {load_package_json, parse_repo_url} from './package_json.ts';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {extname, isAbsolute, join, relative} from 'node:path';
|
|
2
|
-
import {fs_exists} from '@
|
|
3
|
-
import type {PathId} from '@
|
|
2
|
+
import {fs_exists} from '@fuzdev/fuz_util/fs.js';
|
|
3
|
+
import type {PathId} from '@fuzdev/fuz_util/path.js';
|
|
4
4
|
|
|
5
5
|
import {replace_extension} from './paths.ts';
|
|
6
6
|
|
package/src/lib/run.task.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {z} from 'zod';
|
|
2
2
|
import {styleText as st} from 'node:util';
|
|
3
|
-
import {fs_exists} from '@
|
|
3
|
+
import {fs_exists} from '@fuzdev/fuz_util/fs.js';
|
|
4
4
|
|
|
5
5
|
import {TaskError, type Task} from './task.ts';
|
|
6
6
|
import {resolve_gro_module_path, spawn_with_loader} from './gro_helpers.ts';
|
package/src/lib/run_gen.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {styleText as st} from 'node:util';
|
|
2
|
-
import {print_error} from '@
|
|
3
|
-
import type {Timings} from '@
|
|
4
|
-
import type {Logger} from '@
|
|
5
|
-
import {map_concurrent} from '@
|
|
2
|
+
import {print_error} from '@fuzdev/fuz_util/print.js';
|
|
3
|
+
import type {Timings} from '@fuzdev/fuz_util/timings.js';
|
|
4
|
+
import type {Logger} from '@fuzdev/fuz_util/log.js';
|
|
5
|
+
import {map_concurrent} from '@fuzdev/fuz_util/async.js';
|
|
6
6
|
|
|
7
7
|
import {
|
|
8
8
|
type GenResults,
|
package/src/lib/run_task.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {styleText as st} from 'node:util';
|
|
2
|
-
import type {Timings} from '@
|
|
3
|
-
import type {Logger} from '@
|
|
2
|
+
import type {Timings} from '@fuzdev/fuz_util/timings.js';
|
|
3
|
+
import type {Logger} from '@fuzdev/fuz_util/log.js';
|
|
4
4
|
import {z} from 'zod';
|
|
5
5
|
|
|
6
6
|
import {parse_args, type Args} from './args.ts';
|
package/src/lib/source_json.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {join} from 'node:path';
|
|
2
|
-
import {ensure_end, strip_start} from '@
|
|
3
|
-
import {fs_exists, fs_search} from '@
|
|
2
|
+
import {ensure_end, strip_start} from '@fuzdev/fuz_util/string.js';
|
|
3
|
+
import {fs_exists, fs_search} from '@fuzdev/fuz_util/fs.js';
|
|
4
4
|
import ts from 'typescript';
|
|
5
|
-
import type {PackageJson, PackageJsonExports} from '@
|
|
6
|
-
import {SourceJson, type ModuleJson, type DeclarationKind} from '@
|
|
7
|
-
import type {Logger} from '@
|
|
5
|
+
import type {PackageJson, PackageJsonExports} from '@fuzdev/fuz_util/package_json.js';
|
|
6
|
+
import {SourceJson, type ModuleJson, type DeclarationKind} from '@fuzdev/fuz_util/source_json.js';
|
|
7
|
+
import type {Logger} from '@fuzdev/fuz_util/log.js';
|
|
8
8
|
|
|
9
9
|
import {paths, replace_extension} from './paths.ts';
|
|
10
10
|
import {parse_exports} from './parse_exports.ts';
|
package/src/lib/svelte_config.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type {Config as SvelteConfig} from '@sveltejs/kit';
|
|
2
2
|
import type {CompileOptions, ModuleCompileOptions, PreprocessorGroup} from 'svelte/compiler';
|
|
3
3
|
import {join} from 'node:path';
|
|
4
|
-
import {EMPTY_OBJECT} from '@
|
|
4
|
+
import {EMPTY_OBJECT} from '@fuzdev/fuz_util/object.js';
|
|
5
5
|
|
|
6
6
|
import {SVELTE_CONFIG_FILENAME} from './constants.ts';
|
|
7
7
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {Result} from '@
|
|
2
|
-
import type {Logger} from '@
|
|
1
|
+
import type {Result} from '@fuzdev/fuz_util/result.js';
|
|
2
|
+
import type {Logger} from '@fuzdev/fuz_util/log.js';
|
|
3
3
|
import {join} from 'node:path';
|
|
4
|
-
import type {PackageJson} from '@
|
|
5
|
-
import {fs_exists} from '@
|
|
4
|
+
import type {PackageJson} from '@fuzdev/fuz_util/package_json.js';
|
|
5
|
+
import {fs_exists} from '@fuzdev/fuz_util/fs.js';
|
|
6
6
|
|
|
7
7
|
import {has_dep} from './package_json.ts';
|
|
8
8
|
import {default_svelte_config, type ParsedSvelteConfig} from './svelte_config.ts';
|
|
@@ -6,7 +6,7 @@ import type {
|
|
|
6
6
|
deserialize as base_deserialize,
|
|
7
7
|
enhance as base_enhance,
|
|
8
8
|
} from '$app/forms';
|
|
9
|
-
import {noop, noop_async} from '@
|
|
9
|
+
import {noop, noop_async} from '@fuzdev/fuz_util/function.js';
|
|
10
10
|
|
|
11
11
|
export const applyAction: typeof base_applyAction = noop_async;
|
|
12
12
|
export const deserialize: typeof base_deserialize = () => ({}) as any;
|
|
@@ -11,7 +11,7 @@ import type {
|
|
|
11
11
|
preloadCode as base_preloadCode,
|
|
12
12
|
preloadData as base_preloadData,
|
|
13
13
|
} from '$app/navigation';
|
|
14
|
-
import {noop, noop_async} from '@
|
|
14
|
+
import {noop, noop_async} from '@fuzdev/fuz_util/function.js';
|
|
15
15
|
|
|
16
16
|
export const afterNavigate: typeof base_afterNavigate = noop;
|
|
17
17
|
export const beforeNavigate: typeof base_beforeNavigate = noop;
|
package/src/lib/sync.task.ts
CHANGED