From 63fad36079aa8e4eddd3c315c4fc1666263c2e23 Mon Sep 17 00:00:00 2001 From: Sam Lijin Date: Tue, 2 Jul 2024 09:38:23 -0700 Subject: [PATCH] restore cli.js --- .gitignore | 1 + engine/.gitignore | 5 ----- engine/language_client_typescript/cli.js | 6 ++++++ 3 files changed, 7 insertions(+), 5 deletions(-) delete mode 100644 engine/.gitignore create mode 100755 engine/language_client_typescript/cli.js diff --git a/.gitignore b/.gitignore index e6b27083e..a82d4d444 100644 --- a/.gitignore +++ b/.gitignore @@ -125,6 +125,7 @@ $RECYCLE.BIN/ engine/language_client_typescript/*.d.ts engine/language_client_typescript/*.d.ts.map engine/language_client_typescript/*.js +!engine/language_client_typescript/cli.js engine/language_client_ruby/**/*.bundle engine/target/ Cargo.lock diff --git a/engine/.gitignore b/engine/.gitignore deleted file mode 100644 index a7456499a..000000000 --- a/engine/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -target -*.env -**/__pycache__ -test_logs/** -*.so \ No newline at end of file diff --git a/engine/language_client_typescript/cli.js b/engine/language_client_typescript/cli.js new file mode 100755 index 000000000..eb94e2f2e --- /dev/null +++ b/engine/language_client_typescript/cli.js @@ -0,0 +1,6 @@ +#!/usr/bin/env node + +if (require.main === module) { + const baml = require('./native') + baml.invoke_runtime_cli(process.argv.slice(1)) +}