build icon indicating copy to clipboard operation
build copied to clipboard

generate_for is not work fine

Open robert-luoqing opened this issue 3 months ago • 1 comments

I'm follow the instruction to generate model only for lib/models folder. But it still scan other folder.

targets:
  $default:
    builders:
      json_serializable:
        generate_for:
          # Only run `json_serializable` on source under `lib/models`.
          - lib/models/*.dart

robert-luoqing avatar Sep 13 '25 11:09 robert-luoqing

Do you have this in a file called build.yaml in your package root folder?

What do you mean by "scan"?

davidmorgan avatar Sep 15 '25 06:09 davidmorgan