Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Drop lodash #926

wants to merge 2 commits into from

Conversation

zulus
Copy link

@zulus zulus commented Sep 30, 2023

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

Copy link
Collaborator

@gorkem gorkem left a 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",

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

Suggested change
"lodash": "4.17.21",

@@ -33,6 +33,7 @@
"prettier": "2.8.7"
},
"dependencies": {
"@types/lodash.clonedeep": "^4.5.7",

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": {

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';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import cloneDeep from '@types/lodash.clonedeep';
import cloneDeep from 'lodash.clonedeep';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants