website/docs/__partials__/migrate/node/scripts.mdx
As a frontend developer you're already familiar with the Node.js ecosystem, specifically around
defining and using package.json scripts, and you may not want to deviate from this. Don't worry,
simply enable the node.inferTasksFromScripts setting
to automatically create moon tasks from a project's scripts! These can then be ran with
moon run.
This implementation is a simple abstraction that runs npm run <script> (or pnpm/yarn) in the
project directory as a child process. While this works, relying on package.json scripts incurs the
following risks and disadvantages:
**/*:
/prettier.config.js would not be detected for a npm run format script.--out,
--outFile, --dist-dir, etc.webpack serve, next dev, --watch usage, and more. This is not an exhaustive
check.dev, start, or serve.