source: trip-planner-front/node_modules/node-gyp-build/build-test.js@ 571e0df

Last change on this file since 571e0df was e29cc2e, checked in by Ema <ema_spirova@…>, 3 years ago

primeNG components

  • Property mode set to 100644
File size: 398 bytes
Line 
1#!/usr/bin/env node
2
3process.env.NODE_ENV = 'test'
4
5var path = require('path')
6var test = null
7
8try {
9 var pkg = require(path.join(process.cwd(), 'package.json'))
10 if (pkg.name && process.env[pkg.name.toUpperCase().replace(/-/g, '_')]) {
11 process.exit(0)
12 }
13 test = pkg.prebuild.test
14} catch (err) {
15 // do nothing
16}
17
18if (test) require(path.join(process.cwd(), test))
19else require('./')()
Note: See TracBrowser for help on using the repository browser.