-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop lodash #926
base: main
Are you sure you want to change the base?
Drop lodash #926
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like CI fails with these changes. Can you check?
@@ -33,6 +33,7 @@ | |||
"prettier": "2.8.7" | |||
}, | |||
"dependencies": { | |||
"@types/lodash.clonedeep": "^4.5.7", | |||
"ajv": "^8.11.0", | |||
"lodash": "4.17.21", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you need to remove lodash
"lodash": "4.17.21", |
@@ -33,6 +33,7 @@ | |||
"prettier": "2.8.7" | |||
}, | |||
"dependencies": { | |||
"@types/lodash.clonedeep": "^4.5.7", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be devDependency
@@ -33,6 +33,7 @@ | |||
"prettier": "2.8.7" | |||
}, | |||
"dependencies": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you forget to install lodash.clonedeep
@@ -26,7 +26,7 @@ import { CST, isMap, isSeq, YAMLMap } from 'yaml'; | |||
import { yamlDocumentsCache } from '../parser/yaml-documents'; | |||
import { FlowStyleRewriter } from '../utils/flow-style-rewriter'; | |||
import { ASTNode } from '../jsonASTTypes'; | |||
import * as _ from 'lodash'; | |||
import cloneDeep from '@types/lodash.clonedeep'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import cloneDeep from '@types/lodash.clonedeep'; | |
import cloneDeep from 'lodash.clonedeep'; |
What does this PR do?
Reduce number files in node_modules (problematic on windows)
What issues does this PR fix or reference?
Reduce time necessary to extract zipped node_modules on windows
Is it tested? How?
I used modified version in wildwebdeveloper