metaDAOproject / futarchy-sdk

The Meta-DAO Futarchy Typescript SDK
4 stars 3 forks source link

Should this be ESM or CommonJS? #202

Open metaproph3t opened 1 month ago

metaproph3t commented 1 month ago

It appears that this package is CommonJS - is that intentional?

R-K-H commented 3 weeks ago

Use this config in your client and make sure you don't have "type": "module", in your package.json. Then it works.

{
  "compilerOptions": {
    "strict": true,
    "esModuleInterop": true,
    "lib": ["ESNext"],
    "resolveJsonModule": true,
    "strictNullChecks": true,
    "forceConsistentCasingInFileNames": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
     "module": "ESNext",
    "target": "ESNext",
    "moduleResolution": "bundler",
    "types": ["node", "bun-types", "inquirer"]
  }
}