From 46e43f4bde4a35785b4997b81e86cd19f046b69b Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 21 Dec 2021 16:52:28 +0100 Subject: Commit --- src/node_modules/.bin/opencollective.ps1 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/node_modules/.bin/opencollective.ps1 (limited to 'src/node_modules/.bin/opencollective.ps1') diff --git a/src/node_modules/.bin/opencollective.ps1 b/src/node_modules/.bin/opencollective.ps1 new file mode 100644 index 0000000..600a106 --- /dev/null +++ b/src/node_modules/.bin/opencollective.ps1 @@ -0,0 +1,18 @@ +#!/usr/bin/env pwsh +$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent + +$exe="" +if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { + # Fix case when both the Windows and Linux builds of Node + # are installed in the same directory + $exe=".exe" +} +$ret=0 +if (Test-Path "$basedir/node$exe") { + & "$basedir/node$exe" "$basedir/../@nuxtjs/opencollective/bin/opencollective.js" $args + $ret=$LASTEXITCODE +} else { + & "node$exe" "$basedir/../@nuxtjs/opencollective/bin/opencollective.js" $args + $ret=$LASTEXITCODE +} +exit $ret -- cgit