Is it possible to ignore TypeScript files in hook directories?


#1

Hi all,

I am playing around with hooks, and I have the following problem:

I am trying to write a hook in TypeScript, but the compiler (after compiling the TypeScript hook file into JavaScript) then complains about the presence of the *.ts file in the hooks subdirectory:

Executing before-prepare hook from C:\...\NativeScript\Test\hooks\before-prepare\bp.js
Executing before-prepare hook from C:\...\NativeScript\Test\hooks\before-prepare\bp.ts
spawn UNKNOWN

and this stops the CLI and LiveSync…

Is there any way to ignore the .ts files when executing the hooks (but still having them compiled automatically like they are now)?

Thanks :slight_smile:


#2

No one? :sweat: :cry: