EvanZhouDev / palm-api

GNU General Public License v3.0
30 stars 1 forks source link

No inputs found in config file #5

Closed Crystal-Spider closed 1 year ago

Crystal-Spider commented 1 year ago

Hi, it's me again, I found out a problem with my TypeScript port that I couldn't have caught before having my hands on the real published package.
Luckily the fix should be very easy, it's just needed to exclude the tsconfig.json file from the published package. To do so there should be two ways:

  1. Add a "files" entry in your package.json like "files": "out"
  2. Add a .npmignore file and inside it write tsconfig.json

Personally I'd go with option 1.

Thank you again!

Crystal-Spider commented 1 year ago

Also, not very relevant to this specific issue, but would it be possible to export the Chat class too?

EvanZhouDev commented 1 year ago

Fixed in 1.1.1... as for the second issue, isn't it already a thing?

Crystal-Spider commented 1 year ago

Nope. I mean, I can use it, but I can't import the type.

EvanZhouDev commented 12 months ago

Feel free to submit a PR for this issue, I am very unfamiliar with Typescript 😅