@nx/js:setup-build
Sets up build target for a project.
Monorepo World: October 7, 2024Monorepo World: October 7, 2024Join us!
Sets up build target for a project.
1nx generate setup-build ...
2
By default, Nx will search for setup-build
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/js:setup-build ...
2
Show what will be generated without writing to disk:
1nx g setup-build ... --dry-run
2
tsc
tsc
, swc
, rollup
, vite
, esbuild
The bundler to use to build the project.
Project to add the build target to.
build
The build target to add.
The path to the main entry file, relative to workspace root. Defaults to <project>/src/index.ts or <project>/src/main.ts.
The path to the tsConfig file, relative to workspace root. Defaults to <project>/tsconfig.lib.json or <project>/tsconfig.app.json depending on project type.
Join us live for exciting talks on developer tooling and monorepos! Catch the action on YouTube and join the conversation on Discord!