ngx-deploy-npm
Version:
Publish your libraries to NPM with just one command
22 lines (21 loc) • 928 B
TypeScript
/**
Remove the old `configuration` option and:
- create a new target to build the library with the right configuration
- create the `dependsOn` option on the deploy target
- Remove deprecated options `buildTarget` and `noBuild`
*/
import { Tree } from '@nx/devkit';
import { DeployExecutorOptions } from '../../executors/deploy/schema';
export type RemovedDeployExecutorOptions = {
/**
* A named build target, as specified in the `configurations`. Each named target is accompanied by a configuration of option defaults for that target. This is equivalent to calling the command `nx build --configuration=XXX`.
*/
buildTarget?: string;
/**
* Skip build process during deployment.
* Default: false
*/
noBuild?: boolean;
};
export type DeprecatedDeployExecutorOptions = DeployExecutorOptions & RemovedDeployExecutorOptions;
export default function update(host: Tree): Promise<void>;