From 5b08411ca63df4ea89f510899718dccdf487a6a6 Mon Sep 17 00:00:00 2001 From: Cedric van Putten Date: Thu, 12 Sep 2019 21:40:16 +0000 Subject: [PATCH] fix(cli): unpack load from default when importing --- @commitlint/cli/src/cli.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/@commitlint/cli/src/cli.js b/@commitlint/cli/src/cli.js index cad49f191f..366b3fcdad 100755 --- a/@commitlint/cli/src/cli.js +++ b/@commitlint/cli/src/cli.js @@ -1,7 +1,8 @@ #!/usr/bin/env node require('babel-polyfill'); // eslint-disable-line import/no-unassigned-import -const load = require('@commitlint/load'); +// fix: commitlint load is ported to typescript, until this one is ported we need to unpack it +const {default: load} = require('@commitlint/load'); const lint = require('@commitlint/lint'); const read = require('@commitlint/read'); const meow = require('meow');