shaack / cm-pgn

Parse and create PGNs (Portable Game Notation for chess games)
MIT License
27 stars 21 forks source link

change main to point to pgn.js file #24

Closed MarkShurmer closed 3 months ago

MarkShurmer commented 3 months ago

change main key in package.json to point to pgn.js file

this allows projects to import using ESM directly, for example typescript projects that are set to ESM imports rather than CJS imports

the main section of the package.json is the entry pointif you don't have an index.js https://docs.npmjs.com/cli/v10/configuring-npm/package-json#main

shaack commented 3 months ago

Thank you! 👍