node-red / node-red-node-test-helper

A test framework for Node-RED nodes
Apache License 2.0
57 stars 40 forks source link

wrong deep dependency v0.2.3 by read-pkg-up #36

Closed biancode closed 4 years ago

biancode commented 4 years ago
TypeError: pathType.dirSync is not a function

  at Function.Object.<anonymous>.module.exports.sync (node_modules/read-pkg/index.js:38:16)
  at Function.Object.<anonymous>.module.exports.sync.opts [as sync] (node_modules/read-pkg-up/index.js:23:16)
  at findRuntimePath (node_modules/node-red-node-test-helper/index.js:37:29)
  at NodeTestHelper.init (node_modules/node-red-node-test-helper/index.js:132:38)
  at new NodeTestHelper (node_modules/node-red-node-test-helper/index.js:78:14)
  at Object.<anonymous> (node_modules/node-red-node-test-helper/index.js:325:18)

fixed by setting "path-type": "^3.0.0" in my package.json

knolleary commented 4 years ago

I've just published 0.2.4 of this module that updates to the latest version of read-pkg-up which no longer appears to have a dependency on path-type.