File: ava.config.cjs

package info (click to toggle)
node-cbor 8.1.0%2Bdfsg%2B~cs5.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 1,220 kB
  • sloc: javascript: 7,450; makefile: 11
file content (17 lines) | stat: -rw-r--r-- 398 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
'use strict'

const path = require('path')
const config = {}

if (process.env.CBOR_PACKAGE) {
  const NODE_PATH = [
    path.resolve(__dirname, 'packages', 'cbor', 'node_modules'),
  ]
  if (process.env.NODE_PATH) {
    NODE_PATH.push(...process.env.NODE_PATH.split(path.delimiter))
  }
  config.environmentVariables = {
    NODE_PATH: NODE_PATH.join(path.delimiter),
  }
}
module.exports = config