1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
From: Yadd <yadd@debian.org>
Date: Wed, 5 Jun 2024 15:52:53 +0200
Subject: use system-provided yarnpkg
Bug-Debian: https://bugs.debian.org/1060772
Forwarded: not-needed
Last-Update: 2024-06-02
---
jupyterlab/staging/yarn.js | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
create mode 100644 jupyterlab/staging/yarn.js
diff --git a/jupyterlab/staging/yarn.js b/jupyterlab/staging/yarn.js
new file mode 100644
index 0000000..b63aa13
--- /dev/null
+++ b/jupyterlab/staging/yarn.js
@@ -0,0 +1,22 @@
+#!/usr/bin/node
+
+let yarnpkg = '/usr/bin/yarnpkg';
+let command = process.env.YARNCOMMAND || yarnpkg;
+
+const { spawn } = require('child_process');
+
+let argv = process.argv.slice(2)
+
+const ls = spawn(command, argv);
+
+ls.stdout.on('data', (data) => {
+ console.log(data.toString());
+});
+
+ls.stderr.on('data', (data) => {
+ console.error(data.toString());
+});
+
+ls.on('close', (code) => {
+ process.exit(code);
+});
|