build_cache_dependencies.ts

view source

Declarations
#

3 declarations

BuildCacheDependencies
#

build_cache_dependencies.ts view source

BuildCacheDependencies import type {BuildCacheDependencies} from '@fuzdev/gro/build_cache_dependencies.js';

The build inputs outside git that the build cache key folds in: the tools that run the build and the installed packages.

gro_version

Version of the running Gro, from its package.json. A Gro rebuilt without a version change keeps the same value.

type string

runtime_version

The running runtime's name and version, like process.runtime_version.

type string

package_lock_hash

BLAKE3 hash of node_modules/.package-lock.json, which npm rewrites when it changes what's installed. null when the file is missing, as with other package managers, an npm workspace member, or no install, and then installed-package drift doesn't invalidate the cache. Edits made directly inside node_modules don't change the file either.

type string | null

load_build_cache_dependencies
#

build_cache_dependencies.ts view source

(fs_paths: FsPaths, runtime_version: string): Promise<BuildCacheDependencies> import {load_build_cache_dependencies} from '@fuzdev/gro/build_cache_dependencies.js';

Reads the build inputs outside git that the build cache key folds in.

fs_paths

opens the project's node_modules/

type FsPaths

runtime_version

the running runtime's name and version, like process.runtime_version

type string

returns

Promise<BuildCacheDependencies>

NPM_HIDDEN_LOCKFILE_PATH
#

build_cache_dependencies.ts view source

string import {NPM_HIDDEN_LOCKFILE_PATH} from '@fuzdev/gro/build_cache_dependencies.js';

npm's hidden lockfile, which records the packages installed in node_modules.

Depends on
#

Imported by
#