|
@@ -120,8 +120,23 @@ function ensureJupyterlab(): string[] {
|
|
|
} catch (e) {
|
|
|
return;
|
|
|
}
|
|
|
- // Only include packages marked as core.
|
|
|
- if (!data.jupyterlab || !data.jupyterlab.core) {
|
|
|
+ // Determine whether to include the package.
|
|
|
+ if (!data.jupyterlab) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ // Skip if explicitly marked as not a core dep.
|
|
|
+ if (
|
|
|
+ 'coreDependency' in data.jupyterlab &&
|
|
|
+ !data.jupyterlab.coreDependency
|
|
|
+ ) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ // Skip if it is not makred as an extension or a core dep.
|
|
|
+ if (
|
|
|
+ !data.jupyterlab.coreDependency &&
|
|
|
+ !data.jupyterlab.extension &&
|
|
|
+ !data.jupyterlab.mimeExtension
|
|
|
+ ) {
|
|
|
return;
|
|
|
}
|
|
|
|