From 9370127aa053f165593caba41e80975185f9237f Mon Sep 17 00:00:00 2001 From: Omer Morad Date: Fri, 21 Jan 2022 17:35:59 +0200 Subject: [PATCH] chore: update old faker package to a new one (#136) Change dependency `faker` to `@faker-js/faker` package --- package.json | 2 +- packages/faker.d.ts | 4 ++++ yarn.lock | 5 +++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 packages/faker.d.ts diff --git a/package.json b/package.json index 4f8385e..fad0ade 100644 --- a/package.json +++ b/package.json @@ -58,6 +58,7 @@ "@commitlint/cli": "^12.1.4", "@commitlint/config-conventional": "^15.0.0", "@commitlint/config-lerna-scopes": "^12.1.4", + "@faker-js/faker": "^5.5.3", "@manypkg/cli": "^0.19.1", "@types/faker": "^5.5.7", "@types/jest": "26.0.24", @@ -73,7 +74,6 @@ "eslint-plugin-import": "^2.23.4", "eslint-plugin-jest": "^23.11.0", "eslint-plugin-prettier": "^3.1.3", - "faker": "^5.5.3", "husky": "^7.0.1", "jest": "27.0.6", "jest-gherkin": "^0.0.0", diff --git a/packages/faker.d.ts b/packages/faker.d.ts new file mode 100644 index 0000000..4b50c7a --- /dev/null +++ b/packages/faker.d.ts @@ -0,0 +1,4 @@ +declare module '@faker-js/faker' { + import faker from 'faker'; + export default faker; +} diff --git a/yarn.lock b/yarn.lock index 0389a33..b7b3313 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1323,6 +1323,11 @@ minimatch "^3.0.4" strip-json-comments "^3.1.1" +"@faker-js/faker@^5.5.3": + version "5.5.3" + resolved "https://registry.yarnpkg.com/@faker-js/faker/-/faker-5.5.3.tgz#18e3af6b8eae7984072bbeb0c0858474d7c4cefe" + integrity sha512-R11tGE6yIFwqpaIqcfkcg7AICXzFg14+5h5v0TfF/9+RMDL6jhzCy/pxHVOfbALGdtVYdt6JdR21tuxEgl34dw== + "@fimbul/bifrost@^0.21.0": version "0.21.0" resolved "https://registry.yarnpkg.com/@fimbul/bifrost/-/bifrost-0.21.0.tgz#d0fafa25938fda475657a6a1e407a21bbe02c74e"