mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Hexclave rename PR5: doctor + init prefer hexclave.config.ts (Step 8/G)
doctor config-file check now prefers hexclave.config.{ts,js} with stack.config.*
as fallback; init prompt mentions hexclave.config.ts. typecheck + lint green.
This commit is contained in:
parent
bb1ba8509b
commit
582415d10c
@ -427,8 +427,8 @@ function envVarsCheck(specs: EnvVarSpec[]): CheckSpec {
|
||||
|
||||
function configFileCheck(): CheckSpec {
|
||||
const id = "config-file";
|
||||
const label = "stack.config validity";
|
||||
const candidates = ["stack.config.ts", "stack.config.js"];
|
||||
const label = "hexclave.config validity";
|
||||
const candidates = ["hexclave.config.ts", "hexclave.config.js", "stack.config.ts", "stack.config.js"];
|
||||
return {
|
||||
id,
|
||||
label,
|
||||
|
||||
@ -183,7 +183,7 @@ async function handleLink(flags: Record<string, unknown>, opts: InitOptions, out
|
||||
|
||||
async function handleLinkFromConfigFile(opts: InitOptions): Promise<{ configPath: string }> {
|
||||
const filePath = opts.configFile ?? await input({
|
||||
message: "Path to your existing stack.config.ts:",
|
||||
message: "Path to your existing hexclave.config.ts (or stack.config.ts):",
|
||||
validate: (value) => {
|
||||
const resolved = path.resolve(value);
|
||||
if (!fs.existsSync(resolved)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user