nats-io / nats.ts

TypeScript Node.js client for NATS, the cloud native messaging system
https://www.nats.io
Apache License 2.0
178 stars 13 forks source link

In version 1.2.12 the method of finding package.json is causing problems #87

Closed CycoPH closed 4 years ago

CycoPH commented 4 years ago

The version 1.2.12 on npm has this code: let pkgFile = __dirname + '/../package.json'; if (!fs_1.existsSync(pkgFile)) { // tests will find it here pkgFile = __dirname + '/../../package.json'; }

This fails on non-unix based systems. Should use the path helper to build the path.

aricart commented 4 years ago

@CycoPH this has been since fixed in master. You can reference npm install ts-nats@next.