localState
The content of .shadowjs-local.json, the state file npm run local:install -- <app> --restore in the ShadowJS repository reads to put the registry ranges back.
The content of .shadowjs-local.json, the state file npm run local:install -- <app> --restore
in the ShadowJS repository reads to put the registry ranges back.
Import#
ts
import { localState } from "create-shadow-app";
Signature#
ts
function localState(result: LocalResult): string
Examples#
ts
const state = localState({ dependencies: {}, devDependencies: {}, overrides: {}, changed: [], saved: { "@shadow-js/core": "^1.0.0" } });
JSON.parse(state).saved; // { "@shadow-js/core": "^1.0.0" }