ras-stack 5.0.0-next.3 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -17,7 +17,7 @@ The resulting application uses normal pnpm installs. Only selected integrations
17
17
  | Check hook wiring, policy, and installed versions | `pnpm exec ras sync --check` |
18
18
  | Upgrade RAS and the selected stack together | `pnpm exec ras update` |
19
19
 
20
- These docs describe RAS 5, which includes the former `ras-stack-config` presets in the main package. During the v5 prerelease, bootstrap with `ras-stack@next` and use `ras update next` for candidate upgrades. See [installation](https://github.com/richardsolomou/ras-stack/blob/main/docs/managed-installation.md) and [migration from v4](https://github.com/richardsolomou/ras-stack/blob/main/docs/upgrades.md#migrate-from-v4) before changing an existing application.
20
+ These docs describe RAS 5, which includes the former `ras-stack-config` presets in the main package. Bootstrap with `pnpm dlx ras-stack@5 sync` and use `pnpm exec ras update` for stable upgrades. See [installation](https://github.com/richardsolomou/ras-stack/blob/main/docs/managed-installation.md) and [migration from v4](https://github.com/richardsolomou/ras-stack/blob/main/docs/upgrades.md#migrate-from-v4) before changing an existing application.
21
21
 
22
22
  ## What RAS owns
23
23
 
@@ -43,7 +43,11 @@ export async function runManagedCli(command, arguments_) {
43
43
  }
44
44
  if (command === 'format' && arguments_.includes('--check') && args.includes('--write'))
45
45
  args.splice(args.indexOf('--write'), 1);
46
- await runProcess(process.execPath, [resolve(await commandPath(root, selected.package, selected.bin)), ...args, ...arguments_], root, {
46
+ const forwarded = [...arguments_];
47
+ const buildIndex = command === 'typecheck' ? forwarded.findIndex((argument) => ['-b', '--build'].includes(argument)) : -1;
48
+ if (buildIndex >= 0)
49
+ args.unshift(...forwarded.splice(buildIndex, 1));
50
+ await runProcess(process.execPath, [resolve(await commandPath(root, selected.package, selected.bin)), ...args, ...forwarded], root, {
47
51
  env,
48
52
  });
49
53
  }
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/managed/cli.ts"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W,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,UAAU,CAAC,EAAE,IAAI,EAAE;QACnI,GAAG;KACJ,CAAC,CAAA;AACJ,CAAC","sourcesContent":["import { delimiter, join, resolve } from 'node:path'\nimport { fileURLToPath } from 'node:url'\nimport { exists } from './files.js'\nimport { commandPath } from './environment.js'\nimport { preparedPlan } from './install.js'\nimport { runPnpm, runProcess } from './process.js'\n\nexport async function runManagedCli(command: string, arguments_: string[]): Promise<void> {\n const root = process.cwd()\n const plan = await preparedPlan(root)\n if (command === 'audit') {\n await runPnpm(['audit', ...arguments_], root)\n return\n }\n const env = {\n ...process.env,\n PATH: [join(root, 'node_modules/.bin'), process.env.PATH ?? ''].join(delimiter),\n }\n if (command === 'exec') {\n const [program, ...args] = arguments_[0] === '--' ? arguments_.slice(1) : arguments_\n if (!program) throw new Error('usage: ras exec [--] <program> [arguments]')\n await runProcess(program, args, root, { env })\n return\n }\n const selected = plan.commands[command]\n if (!selected) throw new Error(`No tool provides ras ${command}; select it in ras.config.ts`)\n const args = [...(selected.args ?? [])]\n if (\n ['dev', 'build'].includes(command) &&\n selected.package === 'vite' &&\n !arguments_.some((argument) => ['-c', '--config'].includes(argument) || argument.startsWith('--config=')) &&\n !(await Promise.all(['ts', 'mts', 'cts', 'js', 'mjs', 'cjs'].map((extension) => exists(join(root, `vite.config.${extension}`))))).some(\n Boolean,\n )\n )\n args.push('--config', fileURLToPath(new URL('../../config/vite.mjs', import.meta.url)))\n if (\n command === 'typecheck' &&\n !arguments_.some((argument) => ['-p', '--project', '-b', '--build'].includes(argument) || argument.startsWith('--project='))\n ) {\n args.push('--project', (await exists(join(root, 'tsconfig.json'))) ? 'tsconfig.json' : '.ras/tsconfig.json')\n }\n if (command === 'lint' && plan.presets.oxlint.length) {\n const explicit = arguments_.some((argument) => ['-c', '--config'].includes(argument) || argument.startsWith('--config='))\n const local = await Promise.all(\n ['.oxlintrc.json', '.oxlintrc.jsonc', 'oxlint.config.ts', 'oxlint.config.mts'].map((file) => exists(join(root, file))),\n )\n if (!explicit && !local.some(Boolean))\n args.push('--config', '.ras/oxlint.json', '--ignore-pattern', 'node_modules/**', '--ignore-pattern', '.ras/**')\n }\n if (command === 'format' && arguments_.includes('--check') && args.includes('--write')) args.splice(args.indexOf('--write'), 1)\n await runProcess(process.execPath, [resolve(await commandPath(root, selected.package, selected.bin)), ...args, ...arguments_], root, {\n env,\n })\n}\n"]}
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/managed/cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAElD,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,OAAe,EAAE,UAAoB;IACvE,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAA;IAC1B,MAAM,IAAI,GAAG,MAAM,YAAY,CAAC,IAAI,CAAC,CAAA;IACrC,IAAI,OAAO,KAAK,OAAO,EAAE,CAAC;QACxB,MAAM,OAAO,CAAC,CAAC,OAAO,EAAE,GAAG,UAAU,CAAC,EAAE,IAAI,CAAC,CAAA;QAC7C,OAAM;IACR,CAAC;IACD,MAAM,GAAG,GAAG;QACV,GAAG,OAAO,CAAC,GAAG;QACd,IAAI,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,mBAAmB,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,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C,UAAU,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,SAAS,CAAC,CAAA;IACnH,CAAC;IACD,IAAI,OAAO,KAAK,QAAQ,IAAI,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC;QAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAA;IAC/H,MAAM,SAAS,GAAG,CAAC,GAAG,UAAU,CAAC,CAAA;IACjC,MAAM,UAAU,GAAG,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IACzH,IAAI,UAAU,IAAI,CAAC;QAAE,IAAI,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,CAAA;IACrE,MAAM,UAAU,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,MAAM,WAAW,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,SAAS,CAAC,EAAE,IAAI,EAAE;QAClI,GAAG;KACJ,CAAC,CAAA;AACJ,CAAC","sourcesContent":["import { delimiter, join, resolve } from 'node:path'\nimport { fileURLToPath } from 'node:url'\nimport { exists } from './files.js'\nimport { commandPath } from './environment.js'\nimport { preparedPlan } from './install.js'\nimport { runPnpm, runProcess } from './process.js'\n\nexport async function runManagedCli(command: string, arguments_: string[]): Promise<void> {\n const root = process.cwd()\n const plan = await preparedPlan(root)\n if (command === 'audit') {\n await runPnpm(['audit', ...arguments_], root)\n return\n }\n const env = {\n ...process.env,\n PATH: [join(root, 'node_modules/.bin'), process.env.PATH ?? ''].join(delimiter),\n }\n if (command === 'exec') {\n const [program, ...args] = arguments_[0] === '--' ? arguments_.slice(1) : arguments_\n if (!program) throw new Error('usage: ras exec [--] <program> [arguments]')\n await runProcess(program, args, root, { env })\n return\n }\n const selected = plan.commands[command]\n if (!selected) throw new Error(`No tool provides ras ${command}; select it in ras.config.ts`)\n const args = [...(selected.args ?? [])]\n if (\n ['dev', 'build'].includes(command) &&\n selected.package === 'vite' &&\n !arguments_.some((argument) => ['-c', '--config'].includes(argument) || argument.startsWith('--config=')) &&\n !(await Promise.all(['ts', 'mts', 'cts', 'js', 'mjs', 'cjs'].map((extension) => exists(join(root, `vite.config.${extension}`))))).some(\n Boolean,\n )\n )\n args.push('--config', fileURLToPath(new URL('../../config/vite.mjs', import.meta.url)))\n if (\n command === 'typecheck' &&\n !arguments_.some((argument) => ['-p', '--project', '-b', '--build'].includes(argument) || argument.startsWith('--project='))\n ) {\n args.push('--project', (await exists(join(root, 'tsconfig.json'))) ? 'tsconfig.json' : '.ras/tsconfig.json')\n }\n if (command === 'lint' && plan.presets.oxlint.length) {\n const explicit = arguments_.some((argument) => ['-c', '--config'].includes(argument) || argument.startsWith('--config='))\n const local = await Promise.all(\n ['.oxlintrc.json', '.oxlintrc.jsonc', 'oxlint.config.ts', 'oxlint.config.mts'].map((file) => exists(join(root, file))),\n )\n if (!explicit && !local.some(Boolean))\n args.push('--config', '.ras/oxlint.json', '--ignore-pattern', 'node_modules/**', '--ignore-pattern', '.ras/**')\n }\n if (command === 'format' && arguments_.includes('--check') && args.includes('--write')) args.splice(args.indexOf('--write'), 1)\n const forwarded = [...arguments_]\n const buildIndex = command === 'typecheck' ? forwarded.findIndex((argument) => ['-b', '--build'].includes(argument)) : -1\n if (buildIndex >= 0) args.unshift(...forwarded.splice(buildIndex, 1))\n await runProcess(process.execPath, [resolve(await commandPath(root, selected.package, selected.bin)), ...args, ...forwarded], root, {\n env,\n })\n}\n"]}
@@ -12,7 +12,7 @@ interface Manifest {
12
12
  dependencies?: Record<string, string>;
13
13
  devDependencies?: Record<string, string>;
14
14
  }
15
- export declare function createHooks(plan: InstallationPlan, consumer: string, version: string): {
15
+ export declare function createHooks(plan: InstallationPlan, consumer: string, version: string, consumerVersion?: string): {
16
16
  updateConfig(config: Settings): Settings;
17
17
  readPackage(pkg: Manifest): Manifest;
18
18
  };