diff --git a/.changeset/sour-snakes-sneeze.md b/.changeset/sour-snakes-sneeze.md new file mode 100644 index 00000000..89ceb1ef --- /dev/null +++ b/.changeset/sour-snakes-sneeze.md @@ -0,0 +1,5 @@ +--- +"@smartthings/cli": patch +--- + +fix binary installed via npm diff --git a/bin/dev.cmd b/bin/dev.cmd deleted file mode 100644 index 8ae2b12c..00000000 --- a/bin/dev.cmd +++ /dev/null @@ -1,3 +0,0 @@ -@echo off - -node "%~dp0\dev" %* diff --git a/bin/run b/bin/run deleted file mode 100755 index 4e197af8..00000000 --- a/bin/run +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env node - -const oclif = require('@oclif/core') -const log4js = require('log4js') - -oclif.run() - .then(oclif.flush) - .catch(oclif.Errors.handle) - .finally(log4js.shutdown) diff --git a/bin/run.cmd b/bin/run.cmd deleted file mode 100644 index 968fc307..00000000 --- a/bin/run.cmd +++ /dev/null @@ -1,3 +0,0 @@ -@echo off - -node "%~dp0\run" %* diff --git a/package.json b/package.json index 2118e8ed..cbee540f 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "dist/src", "dist/tsconfig.tsbuildinfo", "README.md", + "package.json", "/npm-shrinkwrap.json", "!*/src/build-tools", "!*/src/__tests__" diff --git a/src/run.ts b/src/run.ts index 817d4878..0254cf6a 100644 --- a/src/run.ts +++ b/src/run.ts @@ -1,3 +1,5 @@ +#!/usr/bin/env node + import { buildInstance } from './index.js'