Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cosmiconfig module to latest upstream release #572

Open
pravi opened this issue May 18, 2022 · 1 comment
Open

Update cosmiconfig module to latest upstream release #572

pravi opened this issue May 18, 2022 · 1 comment

Comments

@pravi
Copy link

pravi commented May 18, 2022

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.


@pravi
Copy link
Author

pravi commented May 18, 2022

Breaking changes in cosmiconfig 6.0 https://github.com/davidtheclark/cosmiconfig/blob/main/CHANGELOG.md#600

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant