Skip to content

Commit

Permalink
Merge pull request #51 from zertosh/vendor-dir
Browse files Browse the repository at this point in the history
Support "vendor" again (and add flow.exe)
  • Loading branch information
gabelevi committed Sep 27, 2016
2 parents 4ca36fb + 602e680 commit 67b5a76
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
4 changes: 0 additions & 4 deletions vendor/flow
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,4 @@
*/
'use strict';

/**
* THIS USE IS DEPRECATED! Use `./node_modules/.bin/flow` instead.
*/

require('../cli');
16 changes: 16 additions & 0 deletions vendor/flow.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
::
:: Copyright (c) 2015-present, Facebook, Inc.
:: All rights reserved.
::
:: This source code is licensed under the BSD-style license found in the
:: LICENSE file in the root directory of this source tree. An additional grant
:: of patent rights can be found in the PATENTS file in the same directory.
::

@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\cli.js" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\cli.js" %*
)

0 comments on commit 67b5a76

Please sign in to comment.