Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current doc says "typescript" needs to be installed for TypeScript support, but I believe ts-node required as well #136

Open
soswow opened this issue Jun 5, 2020 · 0 comments

Comments

@soswow
Copy link

soswow commented Jun 5, 2020

At https://gruntjs.com/blog/2018-08-15-grunt-cli-1.3.0-released I found this.

With >= 1.3.0, if you would like to write your Gruntfile in TypeScript, rename your Gruntfile to end with the appropriate extension: Gruntfile.ts and install the appropriate interpreter, npm install typescript.

It feels like what it should be is npm install typescript ts-node instead. Correct me if I am wrong.
I found that extensions over here https://github.com/gruntjs/grunt-cli/blob/master/bin/grunt#L9 has this about .ts file type.

'.ts': [
      'ts-node/register',
      'typescript-node/register',
      'typescript-register',
      'typescript-require'
    ],

So, I assume ts-node needs to be installed as well.

@soswow soswow changed the title Current says installing "typescript" package, where I think ts-node was meant instead Current doc says "typescript" needs to be installed for TypeScript support, but I believe ts-node required as well Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant