Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed Aug 1, 2023
1 parent 2466cb3 commit ffb2013
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions build/ci/postInstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,22 @@ function verifyMomentIsOnlyUsedByJupyterLabCoreUtils() {

/**
* Work around for https://github.com/microsoft/vscode-python/issues/21720
*
*
* The npm package @vscode/python-extension has a peer dependency on @types/vscode.
* However Jupyter extensions uses @vscode-dts with the cli arg '-f' instead of @types/vscode.
* The webpack builds when running the command `npm list --production --parseable --depth=99999 --loglevel=error`
* Work around is to remove the peerDepencency on @types/vscode.
*/
function fixPythonExtensionNpmPackageJson() {
const jsonFilePath = path.join(__dirname, '..', '..', 'node_modules','@vscode','python-extension','package.json');
const jsonFilePath = path.join(
__dirname,
'..',
'..',
'node_modules',
'@vscode',
'python-extension',
'package.json'
);
const packageJson = JSON.parse(fs.readFileSync(jsonFilePath));
if (packageJson.peerDependencies && packageJson.peerDependencies['@types/vscode']) {
delete packageJson.peerDependencies['@types/vscode'];
Expand Down

0 comments on commit ffb2013

Please sign in to comment.