UNPKG

@harves/nx-node-esm-plugin

Version:

Node executor including ESM module resolution for buildable libraries within Nx workspaces.

16 lines (15 loc) 636 B
import { Tree } from '@nx/devkit'; import { SampleAppGeneratorSchema } from './schema'; /** * Generate sample app containing ESM app calling buildable ESM lib, * demonstrating the use of the `@harves/nx-node-esm-plugin:node` executor. * * Includes targets running the app using Node, one with the * @nx/js:node executor which does not resolve the library import (fails), * and one with the @harves/nx-node-esm-plugin:node executor which does. * * @param tree * @param options */ export declare function sampleAppGenerator(tree: Tree, options: SampleAppGeneratorSchema): Promise<() => void>; export default sampleAppGenerator;