-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/multiple-modules
- Loading branch information
Showing
24 changed files
with
236 additions
and
375 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,47 @@ | ||
export const sharedArgs = { | ||
import type { ArgDef } from 'citty' | ||
|
||
export const cwdArgs = { | ||
cwd: { | ||
type: 'string', | ||
description: 'Current working directory', | ||
description: 'Specify the working directory', | ||
valueHint: 'directory', | ||
default: '.', | ||
}, | ||
} as const satisfies Record<string, ArgDef> | ||
|
||
export const logLevelArgs = { | ||
logLevel: { | ||
type: 'string', | ||
description: 'Log level', | ||
description: 'Specify build-time log level', | ||
valueHint: 'silent|info|verbose', | ||
}, | ||
} as const | ||
} as const satisfies Record<string, ArgDef> | ||
|
||
export const envNameArgs = { | ||
envName: { | ||
type: 'string', | ||
description: 'The environment to use when resolving configuration overrides (default is `production` when building, and `development` when running the dev server)', | ||
}, | ||
} as const | ||
} as const satisfies Record<string, ArgDef> | ||
|
||
export const dotEnvArgs = { | ||
dotenv: { | ||
type: 'string', | ||
description: 'Path to `.env` file to load, relative to the root directory', | ||
}, | ||
} as const satisfies Record<string, ArgDef> | ||
|
||
export const legacyRootDirArgs = { | ||
// cwd falls back to rootDir's default (indirect default) | ||
cwd: { | ||
...cwdArgs.cwd, | ||
description: 'Specify the working directory, this takes precedence over ROOTDIR (default: `.`)', | ||
default: undefined, | ||
}, | ||
rootDir: { | ||
type: 'positional', | ||
description: 'Root Directory', | ||
description: 'Specifies the working directory (default: `.`)', | ||
required: false, | ||
default: '.', | ||
}, | ||
} as const | ||
} as const satisfies Record<string, ArgDef> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.