Something that was not mentionned yet: devDependencies
are useless if you don't publish the project manifest, but generate a package manifest instead. In this kind of context, the dependencies of the package are computed from the actual dependencies that your package depends on instead of the arbitrary list declared in the project manifest, and there is no need to distinguish between devDependencies
and dependencies
in the project manifest.
Some tools like Package Manifest Generator, rollup-plugin-generate-package-json or esbuild-plugin-package-manifest are dedicated to this purpose.