Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

hook-spawn.js 687B

123456789101112131415161718192021
  1. 'use strict';
  2. const path = require('path');
  3. const processOnSpawn = require('process-on-spawn');
  4. const {needsPathEnv, processNodePath} = require('./generate-require.js');
  5. const processNodeOptions = require('./process-node-options.js');
  6. const preloadList = require('./preload-list.js');
  7. const preloadListEnv = require('./preload-list-env.js');
  8. processOnSpawn.addListener(({env}) => {
  9. env.NODE_OPTIONS = processNodeOptions(
  10. env.NODE_OPTIONS || /* istanbul ignore next: impossible under nyc 15 */ ''
  11. );
  12. /* istanbul ignore next */
  13. if (needsPathEnv(__dirname)) {
  14. env.NODE_PATH = processNodePath(env.NODE_PATH || '');
  15. }
  16. env[preloadListEnv] = preloadList.join(path.delimiter);
  17. });