Skip to content

Commit

Permalink
chore(deps): use lodash instead of per method packages (#859)
Browse files Browse the repository at this point in the history
* Use lodash instead of per method packages

* fix: use `lodash-es` instead

---------

Co-authored-by: Kanad Gupta <[email protected]>
Co-authored-by: Kanad Gupta <[email protected]>
  • Loading branch information
3 people authored Mar 11, 2024
1 parent 201d22c commit a199735
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 69 deletions.
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

0 comments on commit a199735

Please sign in to comment.