From 2088cfce80a90881dcffde5983f34c71df598fb4 Mon Sep 17 00:00:00 2001 From: Harold Hunt Date: Fri, 26 Apr 2024 00:26:03 -0400 Subject: [PATCH] Try to fix microapps-publish old package (#370) - Trying to get `npx microapps-publish` to suggest installing the package again --- packages/microapps-publish/bin/run | 3 +++ packages/microapps-publish/package.json | 3 +++ packages/pwrdrvr/bin/run | 7 ++++--- packages/pwrdrvr/package.json | 1 - 4 files changed, 10 insertions(+), 4 deletions(-) create mode 100755 packages/microapps-publish/bin/run diff --git a/packages/microapps-publish/bin/run b/packages/microapps-publish/bin/run new file mode 100755 index 00000000..b98df366 --- /dev/null +++ b/packages/microapps-publish/bin/run @@ -0,0 +1,3 @@ +#!/usr/bin/env node + +require('pwrdrvr/bin/run'); diff --git a/packages/microapps-publish/package.json b/packages/microapps-publish/package.json index d79a427f..e06cd268 100644 --- a/packages/microapps-publish/package.json +++ b/packages/microapps-publish/package.json @@ -5,6 +5,9 @@ "publishConfig": { "access": "public" }, + "bin": { + "microapps-publish": "./bin/run" + }, "engineStrict": true, "engine": { "node": ">= 16.0.0" diff --git a/packages/pwrdrvr/bin/run b/packages/pwrdrvr/bin/run index 30b14e17..24930806 100755 --- a/packages/pwrdrvr/bin/run +++ b/packages/pwrdrvr/bin/run @@ -1,5 +1,6 @@ #!/usr/bin/env node -require('@oclif/command').run() -.then(require('@oclif/command/flush')) -.catch(require('@oclif/errors/handle')) +require('@oclif/command') + .run() + .then(require('@oclif/command/flush')) + .catch(require('@oclif/errors/handle')); diff --git a/packages/pwrdrvr/package.json b/packages/pwrdrvr/package.json index e241c10e..ae768599 100644 --- a/packages/pwrdrvr/package.json +++ b/packages/pwrdrvr/package.json @@ -8,7 +8,6 @@ "access": "public" }, "bin": { - "microapps-publish": "./bin/run", "pwrdrvr": "./bin/run" }, "engineStrict": true,