Skip to content

Commit

Permalink
fix: failed to pack the installer due to the changes of two dependenc…
Browse files Browse the repository at this point in the history
…ies ripgrep and node-pty. (#112)
  • Loading branch information
john-deng authored Jul 30, 2024
1 parent 6537640 commit 06f71ad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ electronBuilder.build({
output: outputPath,
},
asar: true,
asarUnpack: ['node_modules/@opensumi/vscode-ripgrep'],
asarUnpack: ['node_modules/@opensumi/ripgrep'],
mac: {
icon: 'build/icon/sumi.png',
artifactName: '${productName}-${version}-${arch}.${ext}',
Expand Down
4 changes: 2 additions & 2 deletions build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"description": "OpenSumi Desktop",
"private": true,
"dependencies": {
"@opensumi/vscode-ripgrep": "^1.4.0",
"node-pty": "0.10.0",
"@opensumi/ripgrep": "^1.4.0",
"node-pty": "1.0.0",
"@parcel/watcher": "2.1.0",
"spdlog": "0.11.1",
"vscode-oniguruma": "^1.5.1"
Expand Down
4 changes: 1 addition & 3 deletions build/webpack.node.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ module.exports = createConfig({
},
({ context, request }, callback) => {
if (
['node-pty', '@parcel/watcher', 'spdlog', '@opensumi/vscode-ripgrep', 'vm2', 'keytar', 'vertx'].indexOf(
request,
) !== -1
['node-pty', '@parcel/watcher', 'spdlog', '@opensumi/ripgrep', 'vm2', 'keytar', 'vertx'].indexOf(request) !== -1
) {
return callback(null, 'commonjs ' + request);
}
Expand Down

0 comments on commit 06f71ad

Please sign in to comment.