title: Cloud Functions Firebase CLI predeploy error (typescript)
body: <p>I´m trying Cloud Functions with typescript.<br>
  After successfully installed, added a trigger and tested deploy.</p>
  
  <p><strong>index.ts</strong></p>
  
  <pre><code>import * as functions from 'firebase-functions';
  
  export const createAccount = functions.auth.user().onCreate(event =&gt; {
      const user = event.data;
      console.log('user displayname', user.displayName);
      return;
  });
  </code></pre>
  
  <p><strong>command</strong></p>
  
  <pre><code>firebase deploy --only functions
  
  === Deploying to 'project'...
  
  i  deploying functions
  i  functions: running predeploy script.
  
  &gt; functions@ build D:\vmbox\project\firebase\functions
  &gt; tslint -p tslint.json &amp;&amp; ./node_modules/.bin/tsc
  </code></pre>
  
  <p><strong>ERROR</strong></p>
  
  <pre><code>'.' is not recognized as an internal or external command,
  operable program or batch file.
  </code></pre>
  
  <p><strong>Environment</strong><br>
  firebase cli v3.16.0<br>
  node v6.11.2<br>
  npm v4.2.0<br>
  OS: Windows 10<br>
  terminal: powershell  </p>
  
  <p>///  </p>
  
  <h3>Rollback to Javascript</h3>
  
  <p>I re-initiated functions with Javascript option, and also got errors when deploying.<br>
  I guess it may be related to a setup made by the cli for typescript.<br>
  Had to delete the "functions" option added to "firebase.json".  </p>
  
  <p><em>option deleted in firebase.json:</em></p>
  
  <pre><code>  "functions": {
      "predeploy": "npm --prefix functions run build"
    }
  </code></pre>