From e9a648930df535f33e197f0a706a9e58700744a6 Mon Sep 17 00:00:00 2001 From: Ross Stenersen Date: Thu, 8 Jan 2026 11:06:07 -0600 Subject: [PATCH] fix: make install via npm work again --- .changeset/sour-snakes-sneeze.md | 5 +++++ bin/dev.cmd | 3 --- bin/run | 9 --------- bin/run.cmd | 3 --- package.json | 1 + src/run.ts | 2 ++ 6 files changed, 8 insertions(+), 15 deletions(-) create mode 100644 .changeset/sour-snakes-sneeze.md delete mode 100644 bin/dev.cmd delete mode 100755 bin/run delete mode 100644 bin/run.cmd 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'