From dac89fbd991c936a2ed9763dbc45a7506e59780e Mon Sep 17 00:00:00 2001 From: Matti Virkkunen <51646225+WuggyX2@users.noreply.github.com> Date: Mon, 23 Oct 2023 23:14:52 +0300 Subject: [PATCH] Make lwc & aura language server available to be run from an executable file (#580) * feat: add an executable file * feat: add executable for aura ls --------- Co-authored-by: gbockus-sf <76090802+gbockus-sf@users.noreply.github.com> --- packages/aura-language-server/bin/aura-language-server.js | 2 ++ packages/aura-language-server/package.json | 3 +++ packages/lwc-language-server/bin/lwc-language-server.js | 2 ++ packages/lwc-language-server/package.json | 3 +++ 4 files changed, 10 insertions(+) create mode 100755 packages/aura-language-server/bin/aura-language-server.js create mode 100755 packages/lwc-language-server/bin/lwc-language-server.js diff --git a/packages/aura-language-server/bin/aura-language-server.js b/packages/aura-language-server/bin/aura-language-server.js new file mode 100755 index 00000000..3b4bd9ba --- /dev/null +++ b/packages/aura-language-server/bin/aura-language-server.js @@ -0,0 +1,2 @@ +#!/usr/bin/env node +require('../lib/server.js'); diff --git a/packages/aura-language-server/package.json b/packages/aura-language-server/package.json index d295131d..cc6007e1 100644 --- a/packages/aura-language-server/package.json +++ b/packages/aura-language-server/package.json @@ -9,6 +9,9 @@ "type": "git", "url": "https://github.com/forcedotcom/lightning-language-server.git" }, + "bin": { + "aura-language-server": "bin/aura-language-server.js" + }, "scripts": { "clean": "rm -rf lib", "cleanTestData": "node ../../scripts/removeTestData.js", diff --git a/packages/lwc-language-server/bin/lwc-language-server.js b/packages/lwc-language-server/bin/lwc-language-server.js new file mode 100755 index 00000000..3b4bd9ba --- /dev/null +++ b/packages/lwc-language-server/bin/lwc-language-server.js @@ -0,0 +1,2 @@ +#!/usr/bin/env node +require('../lib/server.js'); diff --git a/packages/lwc-language-server/package.json b/packages/lwc-language-server/package.json index a7c4cfab..3b74faa3 100644 --- a/packages/lwc-language-server/package.json +++ b/packages/lwc-language-server/package.json @@ -8,6 +8,9 @@ "type": "git", "url": "https://github.com/forcedotcom/lightning-language-server.git" }, + "bin": { + "lwc-language-server": "./bin/lwc-language-server.js" + }, "scripts": { "clean": "rm -rf lib && rm -rf src/resources/sfdx/typings/copied", "cleanTestData": "node ../../scripts/removeTestData.js",