Skip to content

The npm package for version 5.0.1 does not include CommonJS resources #713

@tbouffard

Description

@tbouffard
  • Are you running the latest version?
  • Have you included sample input, output, error, and expected output?
  • Have you checked if you are using correct configuration?
  • Did you try online tool?
  • Have you checked the docs for helpful APIs and examples?

Description

The package.json files references the lib folder for CommonJS resources but they are not included in the package (the lib folder is missing).
Only the ESM resources are available (in the lib folder).

"main": "./lib/fxp.cjs",
"type": "module",
"module": "./src/fxp.js",
"types": "./src/fxp.d.ts",
"exports": {
".": {
"import": "./src/fxp.js",
"require": "./lib/fxp.cjs",
"types": "./src/fxp.d.ts",
"default": "./src/fxp.js"
}
},

See https://www.npmjs.com/package/fast-xml-parser/v/5.0.1?activeTab=code

Image

Would you like to work on this issue?

  • Yes
  • No

I guess that adding the lib folder in the "files" attribute of the package.json file should fix the problem 😸

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