duffman / tspath

TypeScript path alias resolver
GNU Lesser General Public License v2.1
151 stars 33 forks source link

Make bin point at tspath.js not src/tspath.js #26

Closed mattroberts297 closed 5 years ago

mattroberts297 commented 5 years ago

Because the files in src are not up-to-date.

You can test this out in a project with: npm i --save-dev tspath.

Then compare: grep compact node_modules/tspath/src/parser-engine.js.

let option = { comment: true, format: { compact: true, quotes: '"' } };

To: grep compact node_modules/tspath/parser-engine.js.

this.compactMode = true;
let option = { comment: true, format: { compact: this.compactMode, quotes: '"' } };

And finally check out which one bin points at: grep -A 3 bin node_modules/tspath/package.json.

  "bin": {
    "tspath": "src/tspath.js"
  },

Thanks for the awesome tool - very much appreciated.