How to get closure compiler warnings form annotations?

I’m using cocos2d-js-v3.6.1 and I’m trying the Closure Compiler annotations such as:

/**
 * @deprecated test
 */

But when I build with

cocos.py compile -p web --advanced

All I get is:

compile:
   [jscomp] Compiling 165 file(s) with 42 extern(s)
   [jscomp] 0 error(s), 0 warning(s)

BUILD SUCCESSFUL

No warnings :cry: