Skip to content

Commit

Permalink
Fix the xviz cli tool for the ocular-dev related changes
Browse files Browse the repository at this point in the history
  • Loading branch information
twojtasz committed May 24, 2019
1 parent 51e6c9f commit e61bf70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions modules/cli/bin/babel-xviz
Expand Up @@ -23,6 +23,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

# Enable automatic babel in the "xviz" program
export XVIZ_DEV=1
export BABEL_ENV='es5'

# Call the main CLI
exec -a "xviz" "$DIR/xviz" "$@"
6 changes: 4 additions & 2 deletions modules/cli/bin/xviz
Expand Up @@ -33,12 +33,14 @@ if (
// global process
require('@babel/register')({
configFile: resolve(__dirname, '../../../babel.config.js'),
ignore: []
ignore: [/node_modules\/(?!@xviz)/]
});

require('source-map-support').install();

const ALIASES = require('../../../aliases');
const ALIASES = require('ocular-dev-tools/config/ocular.config')({
root: resolve(__dirname, '../../..')
}).aliases;
const moduleAlias = require('module-alias');
moduleAlias.addAliases(ALIASES);

Expand Down

0 comments on commit e61bf70

Please sign in to comment.