With cosmiconfig 7.0.1, build fails with the following error. I'm packaging webfont for debian and would like to use cosmiconfig 7.0.1 from debian archive (we prefer to use only one version of a module - in rare cases, we can use multiple versions but we prefer to avoid such cases if possible).
$ npm run test
> webfont@11.3.0 pretest
> npm run build
> webfont@11.3.0 prebuild
> npm run clean && npm run lint
> webfont@11.3.0 clean
> rm -rf dist/ temp/
> webfont@11.3.0 lint
> eslint .
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
> webfont@11.3.0 build
> rollup -c
src/cli/index.ts → dist/cli.js...
(!) Plugin typescript: @rollup/plugin-typescript TS2349: This expression is not callable.
Type 'typeof import("/home/pravi/forge/js-team/upstream/webfont/node_modules/cosmiconfig/dist/index")' has no call signatures.
src/standalone/index.ts: (28:26)
28 const configExplorer = cosmiconfig("webfont");
~~~~~~~~~~~
created dist/cli.js in 6.4s
src/index.ts → dist...
created dist in 153ms
> webfont@11.3.0 postbuild
> tsc --declaration --declarationDir dist --emitDeclarationOnly
src/standalone/index.ts:28:26 - error TS2349: This expression is not callable.
Type 'typeof import("/home/pravi/forge/js-team/upstream/webfont/node_modules/cosmiconfig/dist/index")' has no call signatures.
28 const configExplorer = cosmiconfig("webfont");
~~~~~~~~~~~
Found 1 error.
With cosmiconfig 7.0.1, build fails with the following error. I'm packaging webfont for debian and would like to use cosmiconfig 7.0.1 from debian archive (we prefer to use only one version of a module - in rare cases, we can use multiple versions but we prefer to avoid such cases if possible).