File: 0003-Use-system-provided-yarn.js.patch

package info (click to toggle)
jupyterlab 4.0.11%2Bds1%2B~cs11.25.27-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 43,496 kB
  • sloc: javascript: 18,395; python: 8,932; sh: 399; makefile: 95; perl: 33; xml: 1
file content (40 lines) | stat: -rw-r--r-- 966 bytes parent folder | download
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);
+});