{"_id":"executable-stories-init","_rev":"9-490302457eb4c15bb1c854cb1a9845fb","name":"executable-stories-init","dist-tags":{"latest":"0.1.6"},"versions":{"0.1.0":{"name":"executable-stories-init","version":"0.1.0","author":{"name":"Jag Reehal","email":"jag@jagreehal.com"},"license":"MIT","_id":"executable-stories-init@0.1.0","maintainers":[{"name":"jagreehal","email":"jag.reehal@gmail.com"}],"homepage":"https://github.com/jagreehal/executable-stories#readme","bugs":{"url":"https://github.com/jagreehal/executable-stories/issues"},"bin":{"executable-stories-init":"dist/cli/index.js"},"dist":{"shasum":"201c38b734fbad9b9b7b0bbae62b2a42bc9d9dc0","tarball":"https://registry.npmjs.org/executable-stories-init/-/executable-stories-init-0.1.0.tgz","fileCount":9,"integrity":"sha512-QIO9mo2x+MX6hpPZmrKHfsXiVLzFD89Bl5j4JOJS60gP+juYT2HstAU+7bDvlHSLPDFnsD2DYXBVil/BKefrWQ==","signatures":[{"sig":"MEQCIGGmlt+L5Q8487fs+cf9APcpz5I4YayHSoIZeSsUCYsiAiAxXlsiTvBeaGSLRZ3ijFOgAHyjma90r9fzo6zx9COHqg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":29436},"type":"module","gitHead":"1e53abad86c69e7bd44cc0110f80171b16ec8cee","scripts":{"lint":"eslint .","test":"vitest run","build":"tsup","clean":"rm -rf dist","quality":"pnpm type-check && pnpm test && pnpm lint","type-check":"tsc --noEmit"},"_npmUser":{"name":"jagreehal","email":"jag.reehal@gmail.com"},"repository":{"url":"git+https://github.com/jagreehal/executable-stories.git","type":"git","directory":"packages/executable-stories-init"},"_npmVersion":"11.6.2","description":"Bootstrap executable-stories (Vitest + Playwright) into a TypeScript repo.","directories":{},"_nodeVersion":"24.12.0","dependencies":{"commander":"^14.0.0","fast-glob":"^3.3.3","picocolors":"^1.1.1","@clack/prompts":"^1.3.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.1.4","typescript":"^6.0.3","@types/node":"^25.6.0","executable-stories-vitest":"workspace:*","eslint-config-executable-stories":"workspace:*"},"_npmOperationalInternal":{"tmp":"tmp/executable-stories-init_0.1.0_1778533249865_0.44060877807247056","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"executable-stories-init","version":"0.1.1","author":{"name":"Jag Reehal","email":"jag@jagreehal.com"},"license":"MIT","_id":"executable-stories-init@0.1.1","maintainers":[{"name":"jagreehal","email":"jag.reehal@gmail.com"}],"homepage":"https://github.com/jagreehal/executable-stories#readme","bugs":{"url":"https://github.com/jagreehal/executable-stories/issues"},"bin":{"executable-stories-init":"dist/cli/index.js"},"dist":{"shasum":"b05d5f33d2944d0a65402c7e590fa5fb973ba9e6","tarball":"https://registry.npmjs.org/executable-stories-init/-/executable-stories-init-0.1.1.tgz","fileCount":15,"integrity":"sha512-2OwKjNTNV0+asolpay7JYtO2Y8oJgMhKs48vMCeJ3jn+eCNh2zIEztoM8QnWYdDAx2x2j046/gVJoh+spH2mzQ==","signatures":[{"sig":"MEQCIAEB4CXZMF47MNP0T7MJ68yeCXYhnYXxuYBYgu4Ml6zxAiBpoWFOEb1W1yD8FbL8f4C7sX5ebOVML399hxlsbz8t/g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/executable-stories-init@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":38328},"type":"module","_from":"file:executable-stories-init-0.1.1.tgz","scripts":{"lint":"eslint .","test":"vitest run","build":"tsup","clean":"rm -rf dist","quality":"pnpm type-check && pnpm test && pnpm lint","type-check":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:06ad1806-52ae-4434-a398-8b789eae776a"}},"_resolved":"/tmp/55e1552f601f851f998efc8056456fda/executable-stories-init-0.1.1.tgz","_integrity":"sha512-2OwKjNTNV0+asolpay7JYtO2Y8oJgMhKs48vMCeJ3jn+eCNh2zIEztoM8QnWYdDAx2x2j046/gVJoh+spH2mzQ==","repository":{"url":"git+https://github.com/jagreehal/executable-stories.git","type":"git","directory":"packages/executable-stories-init"},"_npmVersion":"11.11.0","description":"Bootstrap executable-stories (Vitest + Playwright) into a TypeScript repo.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"commander":"^14.0.0","fast-glob":"^3.3.3","picocolors":"^1.1.1","@clack/prompts":"^1.3.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.1.4","typescript":"^6.0.3","@types/node":"^25.6.0","executable-stories-vitest":"8.1.18","eslint-config-executable-stories":"0.2.0"},"_npmOperationalInternal":{"tmp":"tmp/executable-stories-init_0.1.1_1778783996390_0.1849870393591082","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"executable-stories-init","version":"0.1.2","author":"Jag Reehal <jag@jagreehal.com>","license":"MIT","_id":"executable-stories-init@0.1.2","maintainers":[{"name":"jagreehal","email":"jag.reehal@gmail.com"}],"bin":{"executable-stories-init":"./dist/cli/index.js"},"dist":{"shasum":"44834c89e2e1f0a582b93ce7259746585e21f470","tarball":"https://registry.npmjs.org/executable-stories-init/-/executable-stories-init-0.1.2.tgz","fileCount":21,"integrity":"sha512-wlcJgld5kbLeWCPC7JrDsR73b77ctHJ+F8YFI/1AsLy9CLEH+Hn9JIu6Lb6g0z64ONP3ZiHg0zzlMdc+gHkEiA==","signatures":[{"sig":"MEQCIGQpYOB8k1KinFs7M6kW0R+FM0WtTf3Ye4maI24k4JQ0AiBkKcxhjnefQK1lEZ5AYYZM9vUMk7eUxewotPn7ZK52dg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/executable-stories-init@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":4557853},"type":"module","scripts":{"lint":"eslint .","test":"vitest run","build":"tsup","clean":"rm -rf dist","quality":"pnpm type-check && pnpm test && pnpm lint","type-check":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:06ad1806-52ae-4434-a398-8b789eae776a"}},"deprecated":"SECURITY: compromised supply-chain build (2026-06-04 worm) — do not use; upgrade to a known-good release.","repository":{"url":"git+https://github.com/jagreehal/executable-stories.git","type":"git","directory":"packages/executable-stories-init"},"description":"Bootstrap executable-stories (Vitest + Playwright) into a TypeScript repo.","directories":{},"dependencies":{"commander":"^14.0.0","fast-glob":"^3.3.3","picocolors":"^1.1.1","@clack/prompts":"^1.3.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.1.4","typescript":"^6.0.3","@types/node":"^25.6.0","executable-stories-vitest":"8.1.18","eslint-config-executable-stories":"0.2.0"},"_npmOperationalInternal":{"tmp":"tmp/executable-stories-init_0.1.2_1780532761751_0.8422329140653395","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"executable-stories-init","version":"0.1.3","author":{"name":"Jag Reehal","email":"jag@jagreehal.com"},"license":"MIT","_id":"executable-stories-init@0.1.3","maintainers":[{"name":"jagreehal","email":"jag.reehal@gmail.com"}],"homepage":"https://github.com/jagreehal/executable-stories#readme","bugs":{"url":"https://github.com/jagreehal/executable-stories/issues"},"bin":{"executable-stories-init":"dist/cli/index.js"},"dist":{"shasum":"af19a1e94516506751de62240127816e30671cf9","tarball":"https://registry.npmjs.org/executable-stories-init/-/executable-stories-init-0.1.3.tgz","fileCount":15,"integrity":"sha512-BGoKI3mGY3asGT2rUZhYODXa2VwdF05WXBQclRpX9e5UqAGEqZOt1/5KykTfkwNlonp9HPT+pdcgsHisPc427Q==","signatures":[{"sig":"MEQCICZIFdP5yy9Uw2oZDP52/nDEgh7n2DofPmqjCd6xznfxAiBm2pS+Sr6scK1azU6gjQXvuLh+A79iIsOurf8qf/xCHw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38327},"type":"module","_from":"file:executable-stories-init-0.1.3.tgz","scripts":{"lint":"eslint .","test":"vitest run","build":"tsup","clean":"rm -rf dist","quality":"pnpm type-check && pnpm test && pnpm lint","type-check":"tsc --noEmit"},"_npmUser":{"name":"jagreehal","email":"jag.reehal@gmail.com"},"_resolved":"/private/var/folders/sp/__ydkqk53ss4hb4k3wbv1wbc0000gn/T/283b29d2dab918d935acc238bb785508/executable-stories-init-0.1.3.tgz","_integrity":"sha512-BGoKI3mGY3asGT2rUZhYODXa2VwdF05WXBQclRpX9e5UqAGEqZOt1/5KykTfkwNlonp9HPT+pdcgsHisPc427Q==","repository":{"url":"git+https://github.com/jagreehal/executable-stories.git","type":"git","directory":"packages/executable-stories-init"},"_npmVersion":"11.13.0","description":"Bootstrap executable-stories (Vitest + Playwright) into a TypeScript repo.","directories":{},"_nodeVersion":"24.16.0","dependencies":{"commander":"^14.0.0","fast-glob":"^3.3.3","picocolors":"^1.1.1","@clack/prompts":"^1.3.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.1.4","typescript":"^6.0.3","@types/node":"^25.6.0","executable-stories-vitest":"8.3.4","eslint-config-executable-stories":"0.2.0"},"_npmOperationalInternal":{"tmp":"tmp/executable-stories-init_0.1.3_1780864098919_0.8095473456818014","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"executable-stories-init","version":"0.1.4","author":{"name":"Jag Reehal","email":"jag@jagreehal.com"},"license":"MIT","_id":"executable-stories-init@0.1.4","maintainers":[{"name":"jagreehal","email":"jag.reehal@gmail.com"}],"homepage":"https://github.com/jagreehal/executable-stories#readme","bugs":{"url":"https://github.com/jagreehal/executable-stories/issues"},"bin":{"executable-stories-init":"dist/cli/index.js"},"dist":{"shasum":"d95456dc3ecc1f874820fe03693669f016ee8d75","tarball":"https://registry.npmjs.org/executable-stories-init/-/executable-stories-init-0.1.4.tgz","fileCount":15,"integrity":"sha512-06MgxUzJpkrR50+fHZtkWSUNeiyf8v+Wq1/Wh+TfbWBNGjOH1bYtxO9tpa7IXb23PvUOw6Cq88iqy/Hn2bYVEQ==","signatures":[{"sig":"MEYCIQDLdBAdB6z5aLEufqY92oNxEYSV9VZdnCZbWb4F7YwPJQIhAP4pEJ6gUGyYVETPGZNQJ28t5pdqaAnpAoAFpVcW+yug","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/executable-stories-init@0.1.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":38327},"type":"module","_from":"file:executable-stories-init-0.1.4.tgz","scripts":{"lint":"eslint .","test":"vitest run","build":"tsup","clean":"rm -rf dist","quality":"pnpm type-check && pnpm test && pnpm lint","type-check":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:949a9e37-2485-41c8-8597-c11a5fc83a65"}},"_resolved":"/tmp/e6aa6cd9f61af6d2b69f473dfb7ce2a6/executable-stories-init-0.1.4.tgz","_integrity":"sha512-06MgxUzJpkrR50+fHZtkWSUNeiyf8v+Wq1/Wh+TfbWBNGjOH1bYtxO9tpa7IXb23PvUOw6Cq88iqy/Hn2bYVEQ==","repository":{"url":"git+https://github.com/jagreehal/executable-stories.git","type":"git","directory":"packages/executable-stories-init"},"_npmVersion":"11.13.0","description":"Bootstrap executable-stories (Vitest + Playwright) into a TypeScript repo.","directories":{},"_nodeVersion":"24.16.0","dependencies":{"commander":"^15.0.0","fast-glob":"^3.3.3","picocolors":"^1.1.1","@clack/prompts":"^1.5.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.1.8","typescript":"^6.0.3","@types/node":"^25.9.2","executable-stories-vitest":"8.3.5","eslint-config-executable-stories":"0.2.0"},"_npmOperationalInternal":{"tmp":"tmp/executable-stories-init_0.1.4_1781130141381_0.029030607681880927","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"executable-stories-init","version":"0.1.5","author":{"name":"Jag Reehal","email":"jag@jagreehal.com"},"license":"MIT","_id":"executable-stories-init@0.1.5","maintainers":[{"name":"jagreehal","email":"jag.reehal@gmail.com"}],"homepage":"https://github.com/jagreehal/executable-stories#readme","bugs":{"url":"https://github.com/jagreehal/executable-stories/issues"},"bin":{"executable-stories-init":"dist/cli/index.js"},"dist":{"shasum":"9cc6270cbcaebb4123becea54926016234f54591","tarball":"https://registry.npmjs.org/executable-stories-init/-/executable-stories-init-0.1.5.tgz","fileCount":15,"integrity":"sha512-p3uoYTwFVd2Vn8npYKzqxlfag/4NceBIRlSNQNnUavQGD+l/OwqB1w0q6+ImDpZhlJNsmsE9Fw2EmliJYsCVwg==","signatures":[{"sig":"MEUCIQDKhLpNdJqSA42Zsz+4goDXkLYIUXBuRy/e84Y+DFxgGAIgIDDJLjEINAH8wyJx4E84Yc3OnFuj4eASOFhap15gxHQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/executable-stories-init@0.1.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":38077},"type":"module","_from":"file:executable-stories-init-0.1.5.tgz","scripts":{"lint":"eslint .","test":"vitest run","build":"tsup","clean":"rm -rf dist","quality":"pnpm type-check && pnpm test && pnpm lint","type-check":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:949a9e37-2485-41c8-8597-c11a5fc83a65"}},"_resolved":"/tmp/9766db1bb62d5f0a9c34eb5a1581a19b/executable-stories-init-0.1.5.tgz","_integrity":"sha512-p3uoYTwFVd2Vn8npYKzqxlfag/4NceBIRlSNQNnUavQGD+l/OwqB1w0q6+ImDpZhlJNsmsE9Fw2EmliJYsCVwg==","repository":{"url":"git+https://github.com/jagreehal/executable-stories.git","type":"git","directory":"packages/executable-stories-init"},"_npmVersion":"11.16.0","description":"Bootstrap executable-stories (Vitest + Playwright) into a TypeScript repo.","directories":{},"_nodeVersion":"24.18.0","dependencies":{"commander":"^15.0.0","fast-glob":"^3.3.3","picocolors":"^1.1.1","@clack/prompts":"^1.5.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.1.8","typescript":"~6.0.3","@types/node":"^25.9.2","executable-stories-vitest":"8.5.1","eslint-config-executable-stories":"0.2.0"},"_npmOperationalInternal":{"tmp":"tmp/executable-stories-init_0.1.5_1783975547978_0.065676599311421","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"executable-stories-init","version":"0.1.6","description":"Bootstrap executable-stories (Vitest + Playwright) into a TypeScript repo.","author":{"name":"Jag Reehal","email":"jag@jagreehal.com"},"license":"Apache-2.0","type":"module","bin":{"executable-stories-init":"dist/cli/index.js"},"dependencies":{"@clack/prompts":"^1.5.1","commander":"^15.0.0","fast-glob":"^3.3.3","picocolors":"^1.1.1"},"devDependencies":{"@types/node":"^25.9.2","tsup":"^8.5.1","typescript":"~6.0.3","vitest":"^4.1.8","eslint-config-executable-stories":"0.2.0","executable-stories-vitest":"8.5.2"},"repository":{"type":"git","url":"git+https://github.com/jagreehal/executable-stories.git","directory":"packages/executable-stories-init"},"scripts":{"build":"tsup","type-check":"tsc --noEmit","lint":"eslint .","clean":"rm -rf dist","test":"vitest run","quality":"pnpm type-check && pnpm test && pnpm lint"},"_id":"executable-stories-init@0.1.6","bugs":{"url":"https://github.com/jagreehal/executable-stories/issues"},"homepage":"https://github.com/jagreehal/executable-stories#readme","_integrity":"sha512-tBkls3nOL7x/61ZtpTuPLn65v8JuuuTL9KPAKPIvuDLipTxLJVgaBRsirsC+mvtxHM0svHphV0fBwnEXW/oIHQ==","_resolved":"/tmp/f9e5c7b283b10253a7a0ad71b6093a05/executable-stories-init-0.1.6.tgz","_from":"file:executable-stories-init-0.1.6.tgz","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-tBkls3nOL7x/61ZtpTuPLn65v8JuuuTL9KPAKPIvuDLipTxLJVgaBRsirsC+mvtxHM0svHphV0fBwnEXW/oIHQ==","shasum":"99f50a198e19f632ee71eac8cf9d20299a6b476c","tarball":"https://registry.npmjs.org/executable-stories-init/-/executable-stories-init-0.1.6.tgz","fileCount":15,"unpackedSize":48380,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/executable-stories-init@0.1.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC4yNKGiR95gY20HmSzB3ykTR2wAtLCUG3N9XfER7WNAQIgCBti2VNcRRp1+/+Au1jiXa4JkKsM3p1IiT+fX1X0xRc="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:949a9e37-2485-41c8-8597-c11a5fc83a65"}},"directories":{},"maintainers":[{"name":"jagreehal","email":"jag.reehal@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/executable-stories-init_0.1.6_1783977097000_0.7924729528338739"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-11T21:00:49.864Z","modified":"2026-07-13T21:11:37.402Z","0.1.0":"2026-05-11T21:00:50.010Z","0.1.1":"2026-05-14T18:39:56.604Z","0.1.2":"2026-06-04T00:26:02.092Z","0.1.3":"2026-06-07T20:28:19.046Z","0.1.4":"2026-06-10T22:22:21.506Z","0.1.5":"2026-07-13T20:45:48.154Z","0.1.6":"2026-07-13T21:11:37.149Z"},"bugs":{"url":"https://github.com/jagreehal/executable-stories/issues"},"author":{"name":"Jag Reehal","email":"jag@jagreehal.com"},"license":"Apache-2.0","homepage":"https://github.com/jagreehal/executable-stories#readme","repository":{"type":"git","url":"git+https://github.com/jagreehal/executable-stories.git","directory":"packages/executable-stories-init"},"description":"Bootstrap executable-stories (Vitest + Playwright) into a TypeScript repo.","maintainers":[{"name":"jagreehal","email":"jag.reehal@gmail.com"}],"readme":"# executable-stories-init\n\nBootstrap [executable-stories](https://github.com/jagreehal/executable-stories) (Vitest, Playwright, Jest, and/or Cypress) into a TypeScript repo from zero. Detects your framework, package manager and monorepo layout, installs the right adapter, writes config, drops a sample story, and patches `package.json` scripts.\n\n## Install and run\n\nRun from your project root, no install required:\n\n```bash\nnpx executable-stories-init@latest\n```\n\n```bash\npnpm dlx executable-stories-init\n```\n\n```bash\nyarn dlx executable-stories-init\n```\n\nThe wizard is interactive by default. Pass `--yes` (or `--json`) to run non-interactively.\n\n## What it does\n\nFor each selected target (repo root, or one or more workspace packages):\n\n1. **Detects** existing Vitest / Playwright installs, an existing config, and TypeScript.\n2. **Installs** framework adapter packages and `executable-stories-formatters` using your repo's package manager (`pnpm`, `yarn`, or `npm`).\n   - When multiple frameworks are selected for a target, dependencies are merged into one install pass.\n3. **Writes configs** (`vitest.config.ts`, `playwright.config.ts`, `jest.config.mjs`, `cypress.config.ts`) pre-wired for reporting.\n4. **Writes sample stories** in framework-appropriate locations.\n5. **Patches `package.json` scripts** for selected frameworks.\n6. **Optionally writes `tsconfig.json`** when missing and `--ts` is passed.\n\nAnything already present is left alone (or skipped with a reason). Use `--force` to overwrite differing files.\n\n## Flags\n\n| Flag | Description |\n| ---- | ----------- |\n| `--vitest` | Set up Vitest. |\n| `--playwright` | Set up Playwright. |\n| `--jest` | Set up Jest. |\n| `--cypress` | Set up Cypress. |\n| `--both` | Set up both Vitest and Playwright. |\n| `--all` | Set up Vitest, Playwright, Jest, and Cypress. |\n| `--target <pkg...>` | Workspace package(s) to set up. Use `root` for the repo root. Repeatable. |\n| `--ts` / `--no-ts` | Write a minimal `tsconfig.json` if missing. |\n| `-y`, `--yes` | Non-interactive; accept defaults. |\n| `--interactive` | Force prompts even when piped. |\n| `--dry-run` | Print the plan; do not write or install. |\n| `--force` | Overwrite differing existing files. |\n| `--json` | Machine-readable output. Implies `--yes`. Requires at least one framework flag (`--vitest`, `--playwright`, `--jest`, `--cypress`, `--both`, or `--all`). |\n\n`--both` and `--all` are additive with explicit framework flags. Example: `--both --jest` sets up Vitest, Playwright, and Jest.\n\n## Examples\n\nSingle-package repo, Vitest only:\n\n```bash\nnpx executable-stories-init@latest --vitest --yes\n```\n\nMonorepo, Vitest in two packages and Playwright at the root:\n\n```bash\nnpx executable-stories-init@latest --vitest --target packages/api --target packages/web\nnpx executable-stories-init@latest --playwright --target root\n```\n\nPreview without changes:\n\n```bash\nnpx executable-stories-init@latest --both --dry-run\n```\n\nCI / scripting:\n\n```bash\nnpx executable-stories-init@latest --both --target root --json\n```\n\n## After it runs\n\n```bash\ncd <target>           # repeat per selected target\n<pm> install          # if you ran with --dry-run, or just to be sure\n<pm> run test         # Vitest stories\n<pm> run test:e2e     # Playwright stories (if installed)\n```\n\nIf you bootstrap multiple frameworks at once, script names are collision-safe:\n\n- Vitest + Jest: `test:stories:vitest`, `test:stories:jest`\n- Playwright + Cypress: `test:e2e:playwright`, `test:e2e:cypress`\n- Vitest + Jest sample files: `src/example.vitest.story.test.ts`, `src/example.jest.story.test.ts`\n\nOpen the generated report:\n\n```bash\n# macOS\nopen reports/executable-stories.html\n# Linux\nxdg-open reports/executable-stories.html\n# Windows\nstart reports\\executable-stories.html\n```\n\nPlaywright also needs browsers on first use:\n\n```bash\npnpm exec playwright install      # pnpm\nnpm exec playwright install       # npm\nyarn playwright install           # yarn\n```\n\n## Detection rules\n\n- **Package manager** is taken from `packageManager` in the root `package.json`, then `pnpm-lock.yaml`, then `yarn.lock`, falling back to `npm`.\n- **Monorepo** is detected from `pnpm-workspace.yaml` (`packages:` entries) or `workspaces` in `package.json` (array or `{ packages: [...] }`).\n- **Already set up?** If the framework is already a dependency, install is skipped; if a `vitest.config.*` / `playwright.config.*` exists, the config write is skipped unless `--force` is passed.\n\n## Exit codes\n\n| Code | Meaning |\n| ---- | ------- |\n| `0` | Success. |\n| `1` | Plan applied with failures (e.g. install failed). |\n| `2` | Invalid CLI usage (e.g. `--json` without a framework). |\n| `130` | Cancelled by user (prompt aborted or no targets selected). |\n","readmeFilename":"README.md"}