Skip to content

Import requires deep path #73

@amcdnl

Description

@amcdnl

The import for use in a nodejs app looks like this:

const { JupiterOneClient } = require('@jupiterone/jupiterone-client-nodejs/dist/j1client');

it should be something more like this ideally:

const JupiterOneClient, { ...other stuff... } = require('@jupiterone/jupiterone-client-nodejs');

Here is an example of how to specify the exports in a package.json:

https://github.com/reaviz/reaviz/blob/master/package.json#L19-L24

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions