diff --git a/bin/lscdiag.js b/bin/lscdiag.js index 12b6fd8..8826ddb 100644 --- a/bin/lscdiag.js +++ b/bin/lscdiag.js @@ -1,7 +1,4 @@ -// Use the LSC test suite to test for missing source map information in LSC output. - -// XXX: This may not be the ideal way to do this, but I don't want to mess with the -// `babel-helper-plugin-test-runner`. +#!/usr/bin/env node const fs = require("fs"); const glob = require("glob"); diff --git a/package.json b/package.json index 4328b9d..9f9bb9d 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "test": "mocha test", "test:debug": "node --inspect --debug-brk mocha test", "build": "babel src --out-dir .", - "prepublish": "npm run build && npm test" + "prepublish": "npm run build && npm test", + "diag": "./bin/lscdiag.js" }, "bin": { "lscdiag": "./bin/lscdiag.js" @@ -22,7 +23,7 @@ "@oigroup/babylon-lightscript": "^0.4.8" }, "files": [ - "bin/", + "bin", "stdlib.js", "index.js" ],