Thanks for all your work on dts-cli, really appreciate it! I got into an issue while upgrading to v2, it seems like babel-jest is missing in the package dependencies.
Current Behavior
After upgrading to fts-cli@2.0.2 and running dts test, I get the error
Error: Cannot find module 'babel-jest'
Require stack:
- /home/runner/work/tailwind-merge/tailwind-merge/node_modules/dts-cli/dist/utils.js
- /home/runner/work/tailwind-merge/tailwind-merge/node_modules/dts-cli/dist/constants.js
- /home/runner/work/tailwind-merge/tailwind-merge/node_modules/dts-cli/dist/index.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1026:15)
at Function.resolve (node:internal/modules/cjs/helpers:[11](https://github.com/dcastil/tailwind-merge/actions/runs/4859688240/jobs/8662615486#step:7:12)4:19)
at resolve (/home/runner/work/tailwind-merge/tailwind-merge/node_modules/dts-cli/dist/utils.js:53:20)
at createJestConfig (/home/runner/work/tailwind-merge/tailwind-merge/node_modules/dts-cli/dist/createJestConfig.js:9:47)
at /home/runner/work/tailwind-merge/tailwind-merge/node_modules/dts-cli/dist/index.js:452:94
at o.parse (/home/runner/work/tailwind-merge/tailwind-merge/node_modules/sade/lib/index.js:1:3402)
at Object.<anonymous> (/home/runner/work/tailwind-merge/tailwind-merge/node_modules/dts-cli/dist/index.js:540:6)
at Module._compile (node:internal/modules/cjs/loader:1196:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:[12](https://github.com/dcastil/tailwind-merge/actions/runs/4859688240/jobs/8662615486#step:7:13)50:10)
at Module.load (node:internal/modules/cjs/loader:1074:32) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/runner/work/tailwind-merge/tailwind-merge/node_modules/dts-cli/dist/utils.js',
'/home/runner/work/tailwind-merge/tailwind-merge/node_modules/dts-cli/dist/constants.js',
'/home/runner/work/tailwind-merge/tailwind-merge/node_modules/dts-cli/dist/index.js'
]
}
Expected behavior
No error
Suggested solution(s)
I think babel-jest needs to be included as a dependency or peerDependency of dts-cli.
Thanks for all your work on dts-cli, really appreciate it! I got into an issue while upgrading to v2, it seems like babel-jest is missing in the package dependencies.
Current Behavior
After upgrading to fts-cli@2.0.2 and running
dts test
, I get the errorExpected behavior
No error
Suggested solution(s)
I think
babel-jest
needs to be included as adependency
orpeerDependency
of dts-cli.Additional context
Happened in PR https://github.com/dcastil/tailwind-merge/pull/223, in workflow run https://github.com/dcastil/tailwind-merge/actions/runs/4859688240/jobs/8662615486.
Your environment