Skip to content

Default tsconfig in CLI (for Deno) #1746

@johndeighan

Description

@johndeighan

The issue is that Deno doesn't have a tsconfig.json file. On this page: https://github.com/denoland/deno/issues/51, it says that "currently, the ts config is hardcoded in runtime.ts". However, that post is from 2018, so I don't know if that's still true. But, for sure, my Deno project does not have a tsconfig.json file, so the following civet command fails:

$ civet --emit-declaration -o .ts -c test/lib2.civet
C:\Users\johnd\AppData\Roaming\npm\node_modules\@danielx\civet\dist\unplugin\unplugin.js:175
          throw new Error("Could not find 'tsconfig.json'");
                ^

Error: Could not find 'tsconfig.json'
    at Object.buildStart (C:\Users\johnd\AppData\Roaming\npm\node_modules\@danielx\civet\dist\unplugin\unplugin.js:175:17)
    at async cli (C:\Users\johnd\AppData\Roaming\npm\node_modules\@danielx\civet\dist\civet:531:5)

Node.js v23.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions