UNPKG

@nx/devkit

Version:

The Nx Devkit is used to customize Nx for different technologies and use cases. It contains many utility functions for reading and writing files, updating configuration, working with Abstract Syntax Trees(ASTs), and more. Learn more about [extending Nx by

13 lines (12 loc) 413 B
import type { Tree } from 'nx/src/devkit-exports'; import type { ModuleKind, ScriptTarget } from 'typescript'; export type ToJSOptions = { extension?: '.js' | '.mjs' | '.cjs'; module?: ModuleKind; target?: ScriptTarget; useJsx?: boolean; }; /** * Rename and transpile any new typescript files created to javascript files */ export declare function toJS(tree: Tree, options?: ToJSOptions): void;