Open soswow opened 4 years ago
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.
npm install typescript ts-node
extensions
.ts
'.ts': [ 'ts-node/register', 'typescript-node/register', 'typescript-register', 'typescript-require' ],
So, I assume ts-node needs to be installed as well.
ts-node
At https://gruntjs.com/blog/2018-08-15-grunt-cli-1.3.0-released I found this.
It feels like what it should be is
npm install typescript ts-node
instead. Correct me if I am wrong. I found thatextensions
over here https://github.com/gruntjs/grunt-cli/blob/master/bin/grunt#L9 has this about.ts
file type.So, I assume
ts-node
needs to be installed as well.