KittyCAD/kittycad.ts

Include "type": "module" in package.json file

Opened this issue · 0 comments

When running npm install @kittycad/lib
the package.json file comes with

{
  "dependencies": {
    "@kittycad/lib": "^0.0.19"
  }
} 

but I have to manually add "type": "module"
to the package.json any time I download it. Can we have that in the file already when they run the npm command?

I haven't been able to use our API commands using require or import when the "type": "module" is missing, so it seems like it's required?