weiran-zsd / dts-cli

Zero-config CLI for TypeScript package development
MIT License
442 stars 23 forks source link

Does not support .cjs as file extension for config file. #168

Closed The-Code-Monkey closed 2 years ago

The-Code-Monkey commented 2 years ago

Current Behavior

I am using type module in my package json for my code which breaks the require function that pulls in the config file

Expected behavior

Should pull in .cjs config file

Suggested solution(s)

Just needs to be able to support .cjs file import as an option instead of just .js and .ts

Your environment

 System:
    OS: macOS 12.5
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 164.73 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.14.0 - /usr/local/bin/node
    Yarn: 1.22.15 - /usr/local/bin/yarn
    npm: 8.3.1 - /usr/local/bin/npm
  Browsers:
    Chrome: 104.0.5112.79
    Safari: 15.6