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

chore(deps): use lodash instead of per method packages #859

Merged
merged 3 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
71 changes: 14 additions & 57 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 2 additions & 8 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@
"httpsnippet-client-api": "file:../httpsnippet-client-api",
"js-yaml": "^4.1.0",
"license": "^1.0.3",
"lodash.camelcase": "^4.3.0",
"lodash.deburr": "^4.1.0",
"lodash.setwith": "^4.3.2",
"lodash.startcase": "^4.4.0",
"lodash-es": "^4.17.21",
"oas": "^24.0.0",
"ora": "^8.0.1",
"prompts": "^2.4.2",
Expand All @@ -76,10 +73,7 @@
"@api/test-utils": "file:../test-utils",
"@readme/oas-examples": "^5.12.1",
"@types/js-yaml": "^4.0.9",
"@types/lodash.camelcase": "^4.3.9",
"@types/lodash.deburr": "^4.1.9",
"@types/lodash.setwith": "^4.3.9",
"@types/lodash.startcase": "^4.4.9",
"@types/lodash-es": "^4.17.12",
"@types/prompts": "^2.4.9",
"@types/semver": "^7.5.6",
"@types/ssri": "^7.1.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/codegen/languages/typescript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import path from 'node:path';
import corePkg from '@readme/api-core/package.json' assert { type: 'json' };
import { execa } from 'execa';
import { getLicense } from 'license';
import setWith from 'lodash.setwith';
import { setWith } from 'lodash-es';
import semver from 'semver';
import { IndentationText, Project, QuoteKind, ScriptTarget, VariableDeclarationKind } from 'ts-morph';

Expand Down
4 changes: 1 addition & 3 deletions packages/api/src/codegen/languages/typescript/util.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import camelCase from 'lodash.camelcase';
import deburr from 'lodash.deburr';
import startCase from 'lodash.startcase';
import { camelCase, deburr, startCase } from 'lodash-es';

/**
* This is a mix of reserved JS words and keywords in TypeScript that might be reserved or
Expand Down