From c69c55f44f39b6d1984adaded486e29759118375 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enes=20Gen=C3=A7?= Date: Wed, 22 Sep 2021 21:15:45 +0300 Subject: [PATCH] feat: add PWSH script for Windows Co-authored-by: Jeroen Claassens --- bin/run.js | 3 +++ bin/run.ps1 | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 bin/run.js create mode 100644 bin/run.ps1 diff --git a/bin/run.js b/bin/run.js new file mode 100644 index 0000000..ff35351 --- /dev/null +++ b/bin/run.js @@ -0,0 +1,3 @@ +#!/usr/bin/env node + +require('@oclif/command').run().then(require('@oclif/command/flush')).catch(require('@oclif/errors/handle')); diff --git a/bin/run.ps1 b/bin/run.ps1 new file mode 100644 index 0000000..d384813 --- /dev/null +++ b/bin/run.ps1 @@ -0,0 +1,5 @@ +#!/usr/bin/env pwsh + +$basedir = Split-Path $MyInvocation.MyCommand.Definition -Parent + +& node "$basedir/run.js" $args