#!/usr/bin/env node

if (!process.env.DEBUG) {
  process.env.DEBUG = "phenomic:*"
}

// still in src/, handy to play
if (__filename.indexOf("phenomic/src") > 1) {
  require("babel-register")
}
else {
// we babel register for .babel.js files (eg: user webpack.config.babel.js)
  require("babel-register")({
    only: /\.babel\.js$/,
  })
}

require("./phenomic.js")

@@ -114,16 +114,19 @@
 lay%0Aif (
+%0A  
 __filena
@@ -132,35 +132,84 @@
 ame.
-indexOf(%22phenomic/src%22) %3E 1
+endsWith(%22src/bin/index.js%22) %7C%7C%0A  __filename.endsWith(%22src%5C%5Cbin%5C%5Cindex.js%22)%0A
 ) %7B%0A

Fix docs build on Windows