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

> [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.


@pravi
Copy link
Author

pravi commented May 18, 2022

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