Cli-microsoft365: Update documentation to reflect required Node version

Created on 9 Jan 2020  路  5Comments  路  Source: pnp/cli-microsoft365

With the release of v2.5, we changed from istanbuljs (nyc) to using c8 as our test coverage tool.

This change now means that we no longer support older versions of Node when contributing to the CLI, we now require v12 or higher.

We should update our documentation to reflect this change.

docs work in progress

Most helpful comment

package.json is not the right place to do it, because it would indicate that you need Node@12 to use the CLI. We require Node@12 only when contributing to it to run tests using c8. You should be be able to use the CLI with older Node versions as well though. So instead, we should include the reference in the docs directed at contributors.

All 5 comments

package.json is not the right place to do it, because it would indicate that you need Node@12 to use the CLI. We require Node@12 only when contributing to it to run tests using c8. You should be be able to use the CLI with older Node versions as well though. So instead, we should include the reference in the docs directed at contributors.

Good spot @waldekmastykarz 馃憤馃徎

I have updated the issue description.

Coming back to this, the c8 docs state that the version of node required is >= 10.12.0 not 12 so will update our docs based on this.

https://github.com/bcoe/c8#supported-nodejs-versions

v10 is the minimum, but some of our tests fail if you don't run them on v12 馃槉

Updated 馃憤馃徎

Was this page helpful?
0 / 5 - 0 ratings