Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add missing singleton packages for RTC#6816

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
jtpio merged 3 commits intojupyter:mainfromjtpio:singleton-packages
Apr 4, 2023
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NextNext commit
Add missing singleton packages for RTC
  • Loading branch information
@jtpio
jtpio committedApr 4, 2023
commit264a909c251f372916a8b878617ab72129183e0a
8 changes: 8 additions & 0 deletionsapp/package.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,6 +10,8 @@
"watch": "webpack --config ./webpack.config.watch.js"
},
"resolutions": {
"@codemirror/state": "~6.2.0",
"@codemirror/view": "~6.9.3",
"@jupyter-notebook/application": "~7.0.0-alpha.18",
"@jupyter-notebook/application-extension": "~7.0.0-alpha.18",
"@jupyter-notebook/console-extension": "~7.0.0-alpha.18",
Expand DownExpand Up@@ -90,6 +92,8 @@
"@jupyterlab/ui-components": "~4.0.0-beta.0",
"@jupyterlab/ui-components-extension": "~4.0.0-beta.0",
"@jupyterlab/vega5-extension": "~4.0.0-beta.0",
"@lezer/common": "~1.0.2",
"@lezer/highlight": "~1.1.4",
"@lumino/algorithm": "~2.0.0",
"@lumino/application": "~2.0.1",
"@lumino/commands": "~2.0.1",
Expand DownExpand Up@@ -318,6 +322,8 @@
}
},
"singletonPackages": [
"@codemirror/state",
"@codemirror/view",
"@jupyter-notebook/tree",
"@jupyter/ydoc",
"@jupyterlab/application",
Expand DownExpand Up@@ -352,6 +358,8 @@
"@jupyterlab/tooltip",
"@jupyterlab/translation",
"@jupyterlab/ui-components",
"@lezer/common",
"@lezer/highlight",
"@lumino/algorithm",
"@lumino/application",
"@lumino/commands",
Expand Down
17 changes: 14 additions & 3 deletionsbuildutils/src/ensure-repo.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -18,10 +18,21 @@ function ensureResolutions(): string[] {
corePackage.jupyterlab.singletonPackages
);

packages.forEach((name) => {
const data = require(`${name}/package.json`);
packages.forEach(async (name) => {
const modulePath = require.resolve(name);
let version = '';
try {
const parentDir = path.dirname(modulePath);
const data = require(path.join(parentDir, 'package.json'));
version = data.version;
} catch {
// try one folder above
const parentDir = path.dirname(path.dirname(modulePath));
const data = require(path.join(parentDir, 'package.json'));
version = data.version;
}
// Insist on a restricted version in the yarn resolution.
corePackage.resolutions[name] = `~${data.version}`;
corePackage.resolutions[name] = `~${version}`;
});

// Write the package.json back to disk.
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp