ensure-buildutils.js 502 B

123456789101112131415
  1. /*-----------------------------------------------------------------------------
  2. | Copyright (c) Jupyter Development Team.
  3. | Distributed under the terms of the Modified BSD License.
  4. |----------------------------------------------------------------------------*/
  5. var fs = require('fs-extra');
  6. var path = require('path');
  7. var childProcess = require('child_process');
  8. if (!fs.existsSync(path.join('buildutils', 'lib'))) {
  9. childProcess.execSync('npm run build:utils',
  10. { 'stdio': [0, 1, 2] }
  11. );
  12. }