Skip to content

Commit 3778cb8

Browse files
authored
fix: jupyterlit (#378)
1 parent 02ace14 commit 3778cb8

File tree

7 files changed

+25
-46
lines changed

7 files changed

+25
-46
lines changed

lerna.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"version": "independent",
3-
"npmClient": "yarn"
3+
"npmClient": "npm",
4+
"useWorkspaces": true
45
}

package.json

Lines changed: 3 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -54,57 +54,22 @@
5454
"storybook"
5555
],
5656
"devDependencies": {
57-
"babel-eslint": "^10.0.1",
5857
"concurrently": "^6.2.0",
59-
"eslint": "^9.0.0",
60-
"eslint-config-prettier": "^10.1.2",
61-
"eslint-config-xo": "^0.26.0",
62-
"eslint-config-xo-react": "^0.19.0",
63-
"eslint-plugin-import": "^2.17.2",
64-
"eslint-plugin-jsx-a11y": "^6.2.1",
65-
"eslint-plugin-prettier": "^5.2.6",
66-
"eslint-plugin-react": "^7.12.4",
67-
"eslint-plugin-react-hooks": "^5.2.0",
6858
"fkill-cli": "^7.1.0",
69-
"jest-prop-type-error": "^1.1.0",
70-
"lerna": "^8.1.2",
71-
"patch-package": "^8.0.0",
72-
"prettier": "^3.5.3",
73-
"rimraf": "^6.0.1",
74-
"vercel": "^21.3.3"
59+
"lerna": "^6.6.2",
60+
"npm-run-all": "^4.1.5",
61+
"patch-package": "^8.0.0"
7562
},
7663
"resolutions": {
77-
"@atlassiansox/analytics-web-client": "npm:empty-npm-package@1.0.0",
78-
"@microsoft/fast-colors": "5.3.1",
79-
"@microsoft/fast-components": "2.30.6",
80-
"@microsoft/fast-element": "1.13.0",
81-
"@microsoft/fast-foundation": "2.49.6",
82-
"@microsoft/fast-react-wrapper": "0.3.24",
83-
"@microsoft/fast-web-utilities": "5.4.1",
84-
"@microsoft/load-themed-styles": "1.10.295",
85-
"@jupyterlab/services": "^7.0.0",
8664
"@types/react": "18.3.20",
8765
"@types/react-dom": "18.3.6",
88-
"crypto": "npm:empty-npm-package@1.0.0",
89-
"pyodide": "^0.27.5",
9066
"react": "18.3.1",
9167
"react-dom": "18.3.1",
9268
"typescript": "^5.8.3"
9369
},
9470
"overrides": {
95-
"@atlassiansox/analytics-web-client": "npm:empty-npm-package@1.0.0",
96-
"@microsoft/fast-colors": "5.3.1",
97-
"@microsoft/fast-components": "2.30.6",
98-
"@microsoft/fast-element": "1.13.0",
99-
"@microsoft/fast-foundation": "2.49.6",
100-
"@microsoft/fast-react-wrapper": "0.3.24",
101-
"@microsoft/fast-web-utilities": "5.4.1",
102-
"@microsoft/load-themed-styles": "1.10.295",
103-
"@jupyterlab/services": "^7.0.0",
10471
"@types/react": "18.3.20",
10572
"@types/react-dom": "18.3.6",
106-
"crypto": "npm:empty-npm-package@1.0.0",
107-
"pyodide": "^0.27.5",
10873
"react": "18.3.1",
10974
"react-dom": "18.3.1",
11075
"typescript": "^5.8.3"

packages/react/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@
131131
"@jupyterlab/ui-components-extension": "^4.0.0",
132132
"@jupyterlite/licenses": "^0.5.1",
133133
"@jupyterlite/localforage": "^0.5.1",
134+
"@jupyterlite/kernel": "^0.5.1",
134135
"@jupyterlite/pyodide-kernel": "^0.5.1",
135136
"@jupyterlite/pyodide-kernel-extension": "^0.5.1",
136137
"@jupyterlite/server": "^0.5.1",

packages/react/src/jupyter/services/ServiceManagerLite.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { ServiceManager } from '@jupyterlab/services';
88
import { createLiteServer, Lite } from '../lite';
99

1010
export const createLiteServiceManager = (lite: Lite = true): Promise<ServiceManager.IManager> => {
11-
return createLiteServer().then(async liteServer => {
11+
const liteServiceManager = createLiteServer().then(async liteServer => {
1212
// Load the browser kernel.
1313
const mod = typeof lite === 'boolean'
1414
? await import('@jupyterlite/pyodide-kernel-extension')
@@ -40,4 +40,6 @@ export const createLiteServiceManager = (lite: Lite = true): Promise<ServiceMana
4040
console.log("Lite Service Manager is created", liteServiceManager);
4141
return liteServiceManager;
4242
});
43+
// TODO remove `as any` once we bump to jupyterlite 0.6.x.
44+
return liteServiceManager as any;
4345
}

packages/react/tsconfig.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,13 @@
3232
"skipLibCheck": true,
3333
"strictNullChecks": true,
3434
"target": "ESNext",
35-
"types": ["jest", "node"],
36-
"lib": ["ESNext", "DOM"]
35+
"types": [
36+
"jest",
37+
"node"
38+
],
39+
"lib": [
40+
"ESNext",
41+
"DOM"
42+
]
3743
}
3844
}

packages/react/typedoc.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
2-
"entryPoints": ["./src/index.ts"],
2+
"entryPoints": [
3+
"./src/index.ts"
4+
],
35
"out": "typedoc",
4-
"exclude": "src/examples"
6+
"exclude": [
7+
"src/examples"
8+
]
59
}

packages/react/webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const ENTRY =
4444
// './src/examples/Kernels';
4545
// './src/examples/Lumino';
4646
// './src/examples/Matplotlib';
47-
'./src/examples/Notebook';
47+
// './src/examples/Notebook';
4848
// './src/examples/Notebook2';
4949
// './src/examples/NotebookCellSidebar';
5050
// './src/examples/NotebookCellToolbar';
@@ -53,7 +53,7 @@ const ENTRY =
5353
// './src/examples/NotebookExtension';
5454
// './src/examples/NotebookKernelChange';
5555
// './src/examples/NotebookLess';
56-
// './src/examples/NotebookLite';
56+
'./src/examples/NotebookLite';
5757
// './src/examples/NotebookLiteContext';
5858
// './src/examples/NotebookLocalServer';
5959
// './src/examples/NotebookMutationsKernel';

0 commit comments

Comments
 (0)