# LLP 0031: Install scripts in the fingerprint **Type:** Decision **Status:** Active **Systems:** Fingerprint, Builds **Author:** Claude **Date:** 2026-12-01 **Related:** LLP 0024 [#6765](https://github.com/appandflow/stim/issues/6765) records the maintainer's choice of the first option it lists: Maintainer decision: "yes go ahead", 2026-12-01. ## Install scripts count as text The native build key includes the text of the scripts an install runs from the app's `package.json` and the one at the install root: `install`, `prepare` and `prepublish` with their `pre` and `post` scripts, and every script those call by name through npm, pnpm, yarn or bun, with that script's `pre` and `post` scripts. A project's own install step can write native inputs outside the lockfile (a downloaded library, generated sources), and before this a newly added step kept the old key. Stim does not trace the files a script runs or reads, such as `node fetch-lib.js`: knowing which files a command reads means guessing, and Stim never runs project scripts to find out. A project whose script reads native inputs lists those files in `extraSources` or `cache.fingerprintInputs`. A name is followed only after a package-manager call, never because a word matches a script name, so `cd ios && pod install` does not pull in a `scripts.ios` entry that users edit often. Following names is best effort: a call the matcher does not read (`pnpm --filter app setup`, `npm-run-all`, `npm --prefix apps/mobile run x`, which runs another manifest's script) keeps the key when that script changes, as every edit did before. Stim does not grow the matcher for each form; a project lists such scripts' inputs in `extraSources`. Scripts of dependencies follow their locked identity and are not read. ## The key does not prove the install ran The row reads `package.json`, not `node_modules`. A build that runs before the edited script ran (a local build before reinstalling, or a warm build worker, which reinstalls only when the lockfile, install command or Node major changes) compiles the old install and stores it under the new key. Patch files have the same limit on build workers; locally, `fingerprintInstallWarning` already keeps a build whose install predates a patch or lockfile change out of the cache. Making installs follow these inputs is [#6779](https://github.com/appandflow/stim/issues/6779). ## Code - [The `package.json#install-scripts` row](../packages/stim-cli/src/fingerprint/inputs.ts).