microsoft / TypeChat

TypeChat is a library that makes it easy to build natural language interfaces using types.
https://microsoft.github.io/TypeChat/
MIT License
8.16k stars 390 forks source link

examples: fix "main" entry point in package.json #108

Closed DLehenbauer closed 1 year ago

DLehenbauer commented 1 year ago

The "main" entry point for the samples previously pointed to the non-existent 'index.js'.

Fixing this allows people to run samples with the shorthand node ., which consults ./package.json for the entry point.

Of course, node ./dist/main.js still works too.

I did not update the readme or examples.md to use node ., since I thought this was less obvious, but can if desired.

DanielRosenwasser commented 1 year ago

Great idea - thank you!