webpack-defaults icon indicating copy to clipboard operation
webpack-defaults copied to clipboard

Need: Lint package.json main property value

Open shellscape opened this issue 7 years ago • 4 comments

As a sanity check, we should lint the value for the main property in package.json to ensure it exists (unless dist is specified) if package.json is changed, and definitely lint it as part of the prepublish process.

shellscape avatar Apr 19 '18 03:04 shellscape

Maybe https://github.com/tclindner/npm-package-json-lint?

alexander-akait avatar Apr 19 '18 10:04 alexander-akait

Yeah that might be a good option

shellscape avatar Apr 19 '18 14:04 shellscape

@michael-ciniawsky we really need setup this to catch problems with package.json

alexander-akait avatar Aug 17 '18 13:08 alexander-akait

Really ? 🙃 It's very rare the main field changes imho and it will also be catched immediately. How should it work in particular via tooling ? But let's leave it open then and discuss :)

michael-ciniawsky avatar Aug 17 '18 14:08 michael-ciniawsky