embroider-css-modules icon indicating copy to clipboard operation
embroider-css-modules copied to clipboard

Update setup for type-css-modules

Open ijlee2 opened this issue 5 months ago • 0 comments

While working on #177, I realized that a race condition can happen between lint:format and prelint:types, when an end-user's project uses prettier directly to format their code.

Error message from https://github.com/ijlee2/embroider-css-modules/actions/runs/16670201547/job/47184555490:

[lint:format] [error] Unable to read file "app/assets/app.css.d.ts":
[lint:format] [error] ENOENT: no such file or directory, open '/home/runner/work/embroider-css-modules/embroider-css-modules/docs/my-v1-app/app/assets/app.css.d.ts'

Find a more resilient way that ensures that CSS declaration files exist before lint:format runs.

ijlee2 avatar Aug 01 '25 08:08 ijlee2