summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authormatt korwel <[email protected]>2025-06-08 02:05:55 -0700
committerGitHub <[email protected]>2025-06-08 02:05:55 -0700
commit584286cfd9b53eee8f1189a3ad98462c77eb8fb9 (patch)
tree7c55df6bd6fbc60c3264f2a58ee531b3517f639e /scripts
parentd0b78225a1dc559ed325f2bc0040a50430fe9838 (diff)
fix(deps): externalize tree-sitter (#840)
Submitting without approval to fix broken deployment on main. But also, we should lock this down.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/esbuild-banner.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/esbuild-banner.js b/scripts/esbuild-banner.js
new file mode 100644
index 00000000..98b14617
--- /dev/null
+++ b/scripts/esbuild-banner.js
@@ -0,0 +1,11 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+// esbuild-banner.js
+import { createRequire } from 'module';
+const require = createRequire(import.meta.url);
+globalThis.__filename = require('url').fileURLToPath(import.meta.url);
+globalThis.__dirname = require('path').dirname(globalThis.__filename);