Closed countergram closed 5 years ago
Thanks for reporting this. Could you provide an example which file complains of missing tslib?
I'm also encountering this issue Cannot find module 'tslib'
when running it via command line.
This fixes it:
npm i -D tslib
but we should not have to do this
It's put into most/all the files by the build process.
npm i mocha-parallel-tests
grep -rl tslib node_modules/mocha-parallel-tests
node_modules/mocha-parallel-tests/dist/bin/options/reporter.js
node_modules/mocha-parallel-tests/dist/bin/cli.js
node_modules/mocha-parallel-tests/dist/subprocess/reporter.js
node_modules/mocha-parallel-tests/dist/subprocess/runner.js
node_modules/mocha-parallel-tests/dist/subprocess/cli.js
node_modules/mocha-parallel-tests/dist/main/runner.js
node_modules/mocha-parallel-tests/dist/main/thread.js
node_modules/mocha-parallel-tests/dist/main/task-manager.js
node_modules/mocha-parallel-tests/dist/main/mocha.js
Thanks again @countergram, version 2.2.2 should contain the fix.
tslib
is required in multiple places in the distributed version of this library, including the CLI, so it should be a dependency. Currently it's not a dependency butmocha-parallel-tests
can't be run without it.