From fc1bd1342fecd07b3da5a31e32ee3fc63f384cf5 Mon Sep 17 00:00:00 2001 From: Don Jayamanne Date: Fri, 27 Oct 2023 10:06:16 +1100 Subject: [PATCH] Add scheduler package and update font-awesome version --- package-lock.json | 37 ++++++++++++++++++------------------- package.json | 5 +++-- webpack.config.js | 8 ++++++++ 3 files changed, 29 insertions(+), 21 deletions(-) diff --git a/package-lock.json b/package-lock.json index 077201b..12cca9c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,8 @@ "@lumino/properties": "^2.0.1", "@lumino/signaling": "^2.1.2", "@lumino/widgets": "^2.3.0", - "font-awesome": "^4.7.0" + "font-awesome": "^4.7.0", + "scheduler": "^0.23.0" }, "devDependencies": { "@jupyterlab/builder": "^4.0.6", @@ -8782,14 +8783,6 @@ "react": "^18.2.0" } }, - "node_modules/react-dom/node_modules/scheduler": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz", - "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==", - "dependencies": { - "loose-envify": "^1.1.0" - } - }, "node_modules/react-is": { "version": "16.13.1", "license": "MIT" @@ -9149,6 +9142,14 @@ "postcss": "^8.3.11" } }, + "node_modules/scheduler": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz", + "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==", + "dependencies": { + "loose-envify": "^1.1.0" + } + }, "node_modules/schema-utils": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", @@ -16955,16 +16956,6 @@ "requires": { "loose-envify": "^1.1.0", "scheduler": "^0.23.0" - }, - "dependencies": { - "scheduler": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz", - "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==", - "requires": { - "loose-envify": "^1.1.0" - } - } } }, "react-is": { @@ -17209,6 +17200,14 @@ "postcss": "^8.3.11" } }, + "scheduler": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz", + "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==", + "requires": { + "loose-envify": "^1.1.0" + } + }, "schema-utils": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", diff --git a/package.json b/package.json index f61cdfa..efeb0e8 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "prepack": "npm run clean && npm run build", "build": "node scripts/postInstall.js && npm run clean && tsc && webpack --mode=production", "build:dev": "node scripts/postInstall.js && npm run clean && tsc && webpack", - "analyze": "node scripts/postInstall.js && npm run clean && tsc && webpack --json > out/stats.json && npx webpack-bundle-analyzer out/stats.json -p=8981", + "analyze": "node scripts/postInstall.js && npm run clean && tsc && webpack --json > out/stats.json && npx webpack-bundle-analyzer out/stats.json -p", "clean": "rimraf out && rimraf tsconfig.tsbuildinfo && rimraf dist", "lint": "eslint -c .eslintrc.js --ext .ts src" }, @@ -85,6 +85,7 @@ "@lumino/properties": "^2.0.1", "@lumino/signaling": "^2.1.2", "@lumino/widgets": "^2.3.0", - "font-awesome": "^4.7.0" + "font-awesome": "^4.7.0", + "scheduler": "^0.23.0" } } diff --git a/webpack.config.js b/webpack.config.js index 366e5c9..b91824f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -31,6 +31,14 @@ module.exports = [ publicPath: 'built/', pathinfo: false }, + externals: [ + // These are used by @jupyterlab/ui-components + // However those UI components never end up getting displayed. + '@rjsf/core', + // These are used by @jupyterlab/ui-components + // However those UI components never end up getting displayed. + '@rjsf/utils' + ], resolve: { modules: [path.resolve(__dirname, 'node_modules'), path.resolve(__dirname, './')] },