@gamecrate/cli 1.3.0 → 1.4.1

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.
@@ -20,7 +20,7 @@ export interface PlanModPayload {
20
20
  containerDir: string;
21
21
  origin: 'explicit' | 'auto';
22
22
  stale: boolean;
23
- staleReport?: ResolvedMod['staleReport'];
23
+ staleReport?: NonNullable<ResolvedMod['staleReport']>;
24
24
  workshopId?: number;
25
25
  }
26
26
  export interface PlanPayload {
@@ -22,6 +22,11 @@ export declare function steamHome(dataRoot: string): string;
22
22
  * and a plain Valve tarball writes $HOME/Steam. Pinning makes all three land here.
23
23
  */
24
24
  export declare function downloadRoot(dataRoot: string, game: GameConfig): string;
25
+ /**
26
+ * Drops a game's downloaded items and the .acf beside them. Never the steamcmd install above
27
+ * those: that is 200MB of bootstrap which would re-download for nothing. Returns what it did.
28
+ */
29
+ export declare function removeDownloads(root: string, steamAppId: number): Promise<string>;
25
30
  /**
26
31
  * Configured path if set, else PATH, else the docker image. A configured path that is not an
27
32
  * executable file is an error, not a fallback. Docker gets `--user`: without it the tree
@@ -145,6 +145,7 @@ export interface ProfileConfig {
145
145
  extends?: string;
146
146
  exclude?: string[];
147
147
  includeBase?: boolean;
148
+ /** Default true. False keeps the mod list literal, dependencies and all. */
148
149
  autoDependencies?: boolean;
149
150
  settings?: Partial<Settings>;
150
151
  instances?: Record<string, InstanceConfig>;
@@ -389,7 +390,7 @@ export interface ParsedArgs {
389
390
  build?: BuildPolicy;
390
391
  sort?: 'topo' | 'none';
391
392
  /** `clean` only: --staging is the default, --all additionally requires --yes. */
392
- cleanTier?: 'staging' | 'logs' | 'all';
393
+ cleanTier?: 'staging' | 'logs' | 'all' | 'downloads';
393
394
  dockerArgs: string[];
394
395
  gameArgs: string[];
395
396
  dryRun: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gamecrate/cli",
3
- "version": "1.3.0",
3
+ "version": "1.4.1",
4
4
  "description": "Run a modded game in a container, with mods resolved from your local checkouts.",
5
5
  "license": "MIT",
6
6
  "type": "module",