feat(config): add new option for pathsToClean

This commit is contained in:
Igor Randjelovic
2022-03-07 13:00:07 +01:00
parent cda898ea13
commit 08d5656899

View File

@ -102,7 +102,12 @@ interface IConfigCLI {
packageManager: 'yarn' | 'pnpm' | 'npm'; packageManager: 'yarn' | 'pnpm' | 'npm';
/** /**
* Optional files or paths to clean when running the `clean` command * Optional - Override the files or paths to clean when running the `ns clean` command
*/
pathsToClean?: string[];
/**
* Optional - Additional files or paths to clean when running the `ns clean` command, the paths are appended to the default list of paths.
*/ */
additionalPathsToClean?: string[]; additionalPathsToClean?: string[];
} }
@ -128,16 +133,16 @@ interface IConfigHook {
*/ */
type: type:
| 'before-buildAndroidPlugin' | 'after-buildAndroidPlugin' | 'before-buildAndroidPlugin' | 'after-buildAndroidPlugin'
| 'before-buildAndroid' | 'after-buildAndroid' | 'before-buildAndroid' | 'after-buildAndroid'
| 'before-buildIOS' | 'after-buildIOS' | 'before-buildIOS' | 'after-buildIOS'
| 'before-checkEnvironment' | 'after-checkEnvironment' | 'before-checkEnvironment' | 'after-checkEnvironment'
| 'before-checkForChanges' | 'after-checkForChanges' | 'before-checkForChanges' | 'after-checkForChanges'
| 'before-install' | 'after-install' | 'before-install' | 'after-install'
| 'before-prepare' | 'after-prepare' | 'before-prepare' | 'after-prepare'
| 'before-prepareNativeApp' | 'after-prepareNativeApp' | 'before-prepareNativeApp' | 'after-prepareNativeApp'
| 'before-resolveCommand' | 'after-resolveCommand' | 'before-resolveCommand' | 'after-resolveCommand'
| 'before-watch' | 'after-watch' | 'before-watch' | 'after-watch'
| 'before-watchPatterns' | 'after-watchPatterns'; | 'before-watchPatterns' | 'after-watchPatterns';
/** /**
* Path to the hook script file to run * Path to the hook script file to run