Skip to content

Npm installed 2.4.1 does not contain the src folder - hence the index.d.ts is not available #109

@frjtrifork

Description

@frjtrifork

If I do npm install ldclient-js@2.4.1 and then ls -la node_modules/ldclient-js/ there is no src/ folder - but src is referenced in package.json:

  "types": "./src/index.d.ts",
  "version": "2.4.1"

Which means that our typescript builds fail when we reference LDClient in 2.4.1.

If I do npm install ldclient-js@2.4.0 then ls -la node_modules/ldclient-js/ does have a src/ folder with the index.d.ts file in it, so our Typescript imports work fine with 2.4.0.

So I guess the npmjs publish now ignores the src folder?
If that is the case it would be very nice if you could move the index.d.ts to the dist, or somewhere else that is included in the publish and update the types property in package.json.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions