Skip to content

cannot require from npm module in node #67

Description

@commenthol

The package.json file in the published npm version 2.0.1 contains the line "main": "./lib".
As the folder ./lib is not included in the npm package, the module cannot be required in node after using npm i diff.

Please change the package.json file for the npm package to "main": "./dist/diff.js" or do other smart things.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions