Skip to content

Maybe we can get a simple cli? #28

Description

@vanyauhalin

I thought it might be useful. I often have to use large tools like esbuild to simply transform TypeScript to JavaScript without actually doing anything complicated. I would gladly give them up in favor of this library. On the one hand, I think it is an interesting development, but I would not be inclined to extend the current API. I think it is complete, and that is great. If I were to solve this problem, I would create a separate ts-blank package that would include a very simple set of CLI-specific features, as well as a loader for Node.js. Yes, the current solution already contains a loader, but I would conceptually separate it. For now, these are just thoughts; I wanted to share them and learn yours.

Usage: ts-blank [options]

Options:
  --tsconfig    Path to the tsconfig.json

We can use the typescript --showConfig and access files, compilerOptions.rootDir, compilerOptions.outDir fields. The compilerOptions.allowImportingTsExtensions could be usefull too.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions