Previous versions (<=v.2.2.1) worked because module resolver loaded the index.js after failing resolving out/index.js in package.json .
While v2.2.2 and v2.2.3 worked because you accidentally published the source repo. There is actually an out/index.js. But require('sinon-chrome/extensions') and require('sinon-chrome/webextensions') break because they are also in ./out.
@acvetkov This is actually a tricky bug.
Previous versions (<=v.2.2.1) worked because module resolver loaded the
index.js
after failing resolvingout/index.js
inpackage.json
.While v2.2.2 and v2.2.3 worked because you accidentally published the source repo. There is actually an
out/index.js
. Butrequire('sinon-chrome/extensions')
andrequire('sinon-chrome/webextensions')
break because they are also in./out
.Perhaps you should
npm publish
within./out
?