Skip to content

vite fmt and vite lint unexpectedly run postinstall script #9

@wojtekmaj

Description

@wojtekmaj

vite fmt and vite lint commands unexpectedly run postinstall script, consequently taking much longer than anticipated:

    "lint": "oxlint && oxfmt --check",
    "lint:oldschool": "vite lint && vite fmt --check",
% hyperfine "pnpm lint" "pnpm lint:oldschool"
Benchmark 1: pnpm lint
  Time (mean ± σ):      1.533 s ±  0.077 s    [User: 9.325 s, System: 0.664 s]
  Range (min … max):    1.442 s …  1.660 s    10 runs
 
Benchmark 2: pnpm lint:oldschool
  Time (mean ± σ):      4.954 s ±  2.620 s    [User: 5.006 s, System: 4.751 s]
  Range (min … max):    0.777 s …  9.800 s    10 runs

Summary
  pnpm lint ran
    3.23 ± 1.72 times faster than pnpm lint:oldschool

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions