Skip to content

Commit b4f7bb5

Browse files
committed
update doc comments
1 parent 121f3f1 commit b4f7bb5

11 files changed

Lines changed: 25 additions & 25 deletions

src/lib/build_cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export type BuildCacheMetadata = z.infer<typeof BuildCacheMetadata>;
5454
* Computes the cache key components for a build.
5555
* This determines whether a cached build can be reused.
5656
*
57-
* @param config - Gro config (build_cache_config_hash is already computed during config load)
57+
* @param config - Gro config (`build_cache_config_hash` is already computed during config load)
5858
* @param log - Logger
5959
* @param git_commit - optional pre-computed git commit hash (optimization to avoid re-reading)
6060
*/

src/lib/format_file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ let cached_base_options: prettier.Options | undefined;
99
* Formats a file with Prettier.
1010
* @param content
1111
* @param options
12-
* @param base_options - defaults to the the cwd's package.json `prettier` value
12+
* @param base_options - defaults to the cwd's `package.json` `prettier` value
1313
*/
1414
export const format_file = async (
1515
content: string,

src/lib/gro_config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import type {ParsedSvelteConfig} from './svelte_config.ts';
2222
import type {FilerOptions} from './filer.ts';
2323

2424
/**
25-
* BLAKE3 hash of empty string, used for configs without build_cache_config.
25+
* BLAKE3 hash of empty string, used for configs without `build_cache_config`.
2626
* This ensures consistent cache behavior when no custom config is provided.
2727
*/
2828
export const EMPTY_BUILD_CACHE_CONFIG_HASH =
@@ -62,18 +62,18 @@ export interface GroConfig extends RawGroConfig {
6262
* The CLI to use that's compatible with `npm install` and `npm link`. Defaults to `'npm'`.
6363
*/
6464
pm_cli: string;
65-
/** @default SVELTE_CONFIG_FILENAME */
65+
/** @default `SVELTE_CONFIG_FILENAME` */
6666
svelte_config_filename?: string;
6767
/**
6868
* SHA-256 hash of the user's `build_cache_config` from `gro.config.ts`.
6969
* This is computed during config normalization and the raw value is immediately deleted.
7070
* If no `build_cache_config` was provided, this is the hash of an empty string.
71-
* @see RawGroConfig.build_cache_config
71+
* @see `RawGroConfig.build_cache_config`
7272
*/
7373
build_cache_config_hash: string;
7474
/**
7575
* Options passed to the `Filer` for file watching and import resolution.
76-
* @see FilerOptions
76+
* @see `FilerOptions`
7777
*/
7878
filer_options: Partial<FilerOptions> | null;
7979
}
@@ -110,7 +110,7 @@ export interface RawGroConfig {
110110
| (() => Record<string, unknown> | Promise<Record<string, unknown>>);
111111
/**
112112
* Options passed to the `Filer` for file watching and import resolution.
113-
* @see FilerOptions
113+
* @see `FilerOptions`
114114
*/
115115
filer_options?: Partial<FilerOptions> | null;
116116
}

src/lib/gro_plugin_deno_compile.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
* Runs during the `adapt` phase (production build only).
55
* Optionally generates a SHA-256 hash file for verification.
66
*
7-
* To avoid bundling all npm devDependencies from package.json, we:
7+
* To avoid bundling all npm devDependencies from `package.json`, we:
88
* 1. Extract just the "imports" from root deno.json
99
* 2. Rebase relative paths (e.g. `../fuz_app/` → `../../fuz_app/`) since
1010
* compilation runs from the output subdirectory
1111
* 3. Write a minimal deno.json to the output directory
12-
* 4. Compile from that directory (which has no package.json)
12+
* 4. Compile from that directory (which has no `package.json`)
1313
*
1414
* @module
1515
*/

src/lib/gro_plugin_deno_server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export interface GroPluginDenoServerOptions {
4444
/**
4545
* Whether to watch for file changes and restart.
4646
* Uses Deno's built-in --watch flag.
47-
* @default true in dev
47+
* @default true in `dev`
4848
*/
4949
watch?: boolean;
5050

src/lib/gro_plugin_server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export interface GroPluginServerOptions {
6767
target?: string;
6868
/**
6969
* Optionally map the esbuild options.
70-
* @default identity
70+
* @default `identity`
7171
*/
7272
esbuild_build_options?: (base_options: esbuild.BuildOptions) => esbuild.BuildOptions;
7373
/**
@@ -84,7 +84,7 @@ export interface GroPluginServerOptions {
8484
cli_command?: string;
8585
/**
8686
* Whether to run the server or not after building.
87-
* @default dev
87+
* @default `dev`
8888
*/
8989
run?: boolean;
9090
}

src/lib/package_json.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export const package_json_serialize = (package_json: PackageJson): string =>
9999
JSON.stringify(parse_package_json(PackageJson, package_json), null, 2) + '\n';
100100

101101
/**
102-
* Updates package.json. Writes to the filesystem only when contents change.
102+
* Updates `package.json`. Writes to the filesystem only when contents change.
103103
*/
104104
export const package_json_update = async (
105105
update: (package_json: PackageJson) => PackageJson | null | Promise<PackageJson | null>,

src/lib/paths.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const replace_extension = (path: string, new_extension: string): string =
8585
};
8686

8787
/**
88-
* Paths for the user repo.
88+
* `Paths` for the user repo.
8989
*/
9090
export const paths = create_paths(process.cwd());
9191

@@ -104,7 +104,7 @@ const gro_package_dir_path = join(
104104
);
105105
export const IS_THIS_GRO = gro_package_dir_path === paths.root;
106106
/**
107-
* Paths for the Gro package being used by the user repo.
107+
* `Paths` for the Gro package being used by the user repo.
108108
*/
109109
export const gro_paths = IS_THIS_GRO ? paths : create_paths(gro_package_dir_path);
110110
/** @trailing_slash */

src/lib/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export class Plugins<TPluginContext extends PluginContext> {
9090
* Throws if the plugin name cannot be found.
9191
* @param plugins - accepts the same types as the return value of `PluginsCreateConfig`
9292
* @param new_plugin
93-
* @param name - @default new_plugin.name
93+
* @param name - @default `new_plugin.name`
9494
* @returns `plugins` with `new_plugin` at the index of the plugin with `name`
9595
*/
9696
export const plugin_replace = (

src/lib/sveltekit_helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export interface SveltePackageOptions {
121121
i?: string;
122122
/**
123123
* The output directory where the processed files are written to.
124-
* Your package.json's exports should point to files inside there,
124+
* Your `package.json`'s exports should point to files inside there,
125125
* and the files array should include that folder.
126126
* Defaults to dist
127127
*/

0 commit comments

Comments
 (0)