javascriptnpmyamlpackage.jsonbun

BunJs CLI scripting in Yaml


Is there a bun.js CLI tool that can read scripts written in Yaml?

For example, in node.js, package.json is processed by npm, and script can be defined and run from the CLI, but json is not an easy-to-read format. In Deno, there is a specific tool (still in development) called Velociraptor (vr) that replace npm for scripts execution.


Solution

  • After some research, since npm works fine with BunJS, the best option is to use an extension of npm so that npm can read yaml files.

    The options I found is https://www.npmjs.com/package/npm-yaml which is able to read package.yaml

    From the npm team, no native management of yaml is expected: https://github.com/npm/npm/issues/3336