refactor: optimize error handling and npm install performance

Remove redundant error type handling in webcontainer to simplify logic and improve maintainability. Additionally, comment out lock file patterns to speed up npm install process.
This commit is contained in:
KevIsDev
2025-05-10 13:24:08 +01:00
parent 9a5076d8c6
commit 9a748177ef
3 changed files with 7 additions and 19 deletions

View File

@@ -27,7 +27,8 @@ const IGNORE_PATTERNS = [
'**/npm-debug.log*',
'**/yarn-debug.log*',
'**/yarn-error.log*',
'**/*lock.json',
// Include this so npm install runs much faster '**/*lock.json',
'**/*lock.yaml',
];

View File

@@ -31,7 +31,8 @@ const IGNORE_PATTERNS = [
'**/npm-debug.log*',
'**/yarn-debug.log*',
'**/yarn-error.log*',
'**/*lock.json',
// Include this so npm install runs much faster '**/*lock.json',
'**/*lock.yaml',
];