In order to use `nx release` you must run `nx add @nx/js`. However, the init generator will add Prettier and `tsconfig.base.json` files by default, which is not what the user wants. This PR adds two options: - `addTsConfigBase` - generates `tsconfig.base.json` when `true`. Default to`false` - `setUpPrettier` - adds `prettier` and generates `.prettierrc` and `.prettierignore` files when `true`. Defaults to `false`. The programmatic `initGenerator` API defaults both options to `true` to usages remain unaffected. The one behavior change is if users run `nx g @nx/js:init` then the two options default to `false`. However, since this is an internal API, the actual usages should be through `nx add` or the programmatic API. <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
{{links}}
Nx: Smart Monorepos · Fast CI
Nx is a build system with built-in tooling and advanced CI capabilities. It helps you maintain and scale monorepos, both locally and on CI.
This package is a JavaScript/TypeScript plugin for Nx.
{{content}}