Skip to content

Experimental CLI reports about cache-strategy settings #72

@HolgerJeromin

Description

@HolgerJeromin

Environments:*

  • Prettier Version: 3.6.0
  • Running Prettier via: CLI
  • Runtime:
  • Operating System: Windows

Steps to reproduce:

prettier 3.5.3 works with this command line:

..\node_modules\.bin\prettier.cmd --ignore-path ../.prettierignore --cache --cache-strategy metadata --cache-location ../node_modules/.cache/prettier/.prettier-cache --check .

Prettier 3.6.0

..\node_modules\.bin\prettier.cmd --ignore-path ../.prettierignore --experimental-cli --cache --cache-strategy metadata --cache-location ../node_modules/.cache/prettier/.prettier-cache --check .

The "--cache-strategy" option has been deleted, since the "metadata" strategy is no longer supported

Ah, ok. changed strategy:

..\node_modules\.bin\prettier.cmd --ignore-path ../.prettierignore --experimental-cli --cache --cache-strategy content --cache-location ../node_modules/.cache/prettier/.prettier-cache --check .

The "--cache-strategy" option has been deleted, since the "metadata" strategy is no longer supported

Hu?

..\node_modules\.bin\prettier.cmd --ignore-path ../.prettierignore --experimental-cli --cache --cache-location ../node_modules/.cache/prettier/.prettier-cache --check .

works...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions