@jcoreio/toolchain-mocha 5.3.0 → 5.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.mocharc.cjs CHANGED
@@ -8,14 +8,14 @@ module.exports = {
8
8
  recursive: true,
9
9
  spec: getSpecs(getPluginsArraySync('mochaSpecs')),
10
10
  watchIgnore: ['**/node_modules', '**/.git'],
11
- ...(process.env.JCOREIO_TOOLCHAIN_ESM
12
- ? {
13
- 'node-option': [
14
- 'experimental-default-type=module',
15
- `import=@jcoreio/toolchain-esnext/util/esmLoader.cjs`,
16
- ],
17
- }
18
- : {}),
11
+ ...(process.env.JCOREIO_TOOLCHAIN_ESM ?
12
+ {
13
+ 'node-option': [
14
+ 'experimental-default-type=module',
15
+ `import=@jcoreio/toolchain-esnext/util/esmLoader.cjs`,
16
+ ],
17
+ }
18
+ : {}),
19
19
  ...(process.env.CI ? { forbidOnly: true } : {}),
20
20
  extension: extensions,
21
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jcoreio/toolchain-mocha",
3
- "version": "5.3.0",
3
+ "version": "5.3.1",
4
4
  "description": "Mocha build toolchain",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,7 +27,7 @@
27
27
  "nyc": "^15.1.0",
28
28
  "resolve-bin": "^1.0.0",
29
29
  "semver": "^7.5.3",
30
- "@jcoreio/toolchain": "5.3.0"
30
+ "@jcoreio/toolchain": "5.3.1"
31
31
  },
32
32
  "toolchainManaged": {
33
33
  "devDependencies": {
@@ -7,16 +7,16 @@ module.exports = [
7
7
  async function getConfigFiles({ fromVersion }) {
8
8
  return {
9
9
  'nyc.config.cjs': async (existing) =>
10
- existing && fromVersion
11
- ? existing
12
- : dedent`
10
+ existing && fromVersion ? existing : (
11
+ dedent`
13
12
  /* eslint-env node, es2018 */
14
13
  const base = require('${name}/nyc.config.cjs')
15
14
  module.exports = {
16
15
  ...base,
17
16
  }
18
17
 
19
- `,
18
+ `
19
+ ),
20
20
  '.mocharc.cjs': async (existing) => {
21
21
  if (existing && fromVersion) return existing
22
22
  const specs = []
@@ -29,9 +29,9 @@ const makeScripts = ({
29
29
  `coverage${name.substring(4)}${suffix}`,
30
30
  {
31
31
  description: `${
32
- typeof value.description === 'string'
33
- ? value.description
34
- : `run ${name}`
32
+ typeof value.description === 'string' ?
33
+ value.description
34
+ : `run ${name}`
35
35
  }${descriptionSuffix} with code coverage`,
36
36
  run: async (args = []) => {
37
37
  await execa('nyc', ['tc', name, ...args], {