summaryrefslogtreecommitdiff
path: root/distribution/src/js/npm/bin/cli.js
blob: d692d5aafafedebf7f308326e00046a85a6a6140 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env node
// **********************************************************************
//
// Copyright (c) 2003-2015 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

'use strict';

var binPath = require('../installSlice2js').path;
var spawn = require('child_process').spawn;
var path = require('path');

var SLICE_DIR = path.resolve(path.join('..', 'slice'));

var args = process.argv.slice(2);
args.push('-I'+SLICE_DIR);

spawn(binPath, args, { stdio: 'inherit' }).on('exit', process.exit);