fix(misc): reexport devkit helpers from @nrwl/workspace to minimize breaking changes in plugins
This commit is contained in:
parent
b791ce3a0d
commit
aa5969e946
@ -8,10 +8,15 @@ export {
|
||||
copyFile,
|
||||
createDirectory,
|
||||
} from './src/utils/fileutils';
|
||||
|
||||
// TODO: vsavkin delete after Nx 12
|
||||
export * from './src/devkit-reexport';
|
||||
|
||||
export {
|
||||
ExistingPrettierConfig,
|
||||
resolveUserExistingPrettierConfig,
|
||||
} from './src/utils/common';
|
||||
|
||||
export { output } from './src/utils/output';
|
||||
export { commandsObject } from './src/command-line/nx-commands';
|
||||
export { supportedNxCommands } from './src/command-line/supported-nx-commands';
|
||||
|
||||
15
packages/workspace/src/devkit-reexport.ts
Normal file
15
packages/workspace/src/devkit-reexport.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import { names } from '@nrwl/devkit';
|
||||
|
||||
export { offsetFromRoot, names } from '@nrwl/devkit';
|
||||
|
||||
export function toPropertyName(value: string) {
|
||||
return names(value).propertyName;
|
||||
}
|
||||
|
||||
export function toClassName(value: string) {
|
||||
return names(value).className;
|
||||
}
|
||||
|
||||
export function toFileName(value: string) {
|
||||
return names(value).fileName;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user