Skip to content

Add --cache-location for --incremental mode #3012

Description

@Jojoshua

Description

Currently, --incremental hardcodes the cache to .svelte-kit or .svelte-check. On build servers (e.g., restricted CI environments), we often need to point cache outputs to specific global or shared volumes and then cache won't be wiped

Proposed solution

Introduce something like one of the following:
--cache-location (similar as https://eslint.org/docs/latest/use/command-line-interface)
--tsBuildInfoFile flag (similar as https://www.typescriptlang.org/tsconfig/#incremental)

Example Usage

# Redirect cache to a specific CI-mapped folder
svelte-check --incremental --cache-location ./node_modules/.cache/svelte-check

Alternatives

No response

Additional Information, eg. Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions