webfont
webfont copied to clipboard
Update cosmiconfig module to latest upstream release
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
> [email protected] pretest
> npm run build
> [email protected] prebuild
> npm run clean && npm run lint
> [email protected] clean
> rm -rf dist/ temp/
> [email protected] 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
> [email protected] 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
> [email protected] 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.
Breaking changes in cosmiconfig 6.0 https://github.com/davidtheclark/cosmiconfig/blob/main/CHANGELOG.md#600