Passed
Push — next ( 3d2ac2...bf7244 )
by Roy
01:37
created

src/index.ts   A

Complexity

Total Complexity 1
Complexity/F 0

Size

Lines of Code 17
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 12
mnd 1
bc 1
fnc 0
dl 0
loc 17
rs 10
bpm 0
cpm 0
noi 0
c 0
b 0
f 0
1
// spell-checker:ignore maint rivy
2
import { default as default_ } from './lib/OSPaths';
3
4
export * from './lib/OSPaths';
5
6
export default default_;
7
8
const haveModuleExports_ = typeof module === 'object' && module.exports;
9
// ## maint ~ [2020-12-23; rivy] although tested, `nyc` is unable to instrument ESM/.mjs correctly in order show coverage for testing the *else* clause
10
/* istanbul ignore else */
11
if (haveModuleExports_) {
12
	// enables direct require from CJS (eg, `const module = require('...');`), but generally disables any other exports
13
	// * skipped for ESM (missing `module.exports`)
14
	// eslint-disable-next-line functional/immutable-data
15
	module.exports = default_;
16
}
17