Skip to content

Commit

Permalink
refactor: use @faker-js/faker instead of faker (#791)
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoufel authored Feb 22, 2022
1 parent f7aa5b9 commit 759f2e4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion adonis-typings/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

declare module '@ioc:Adonis/Lucid/Factory' {
import faker from 'faker'
import faker from '@faker-js/faker'
import {
OneOrMany,
QueryClientContract,
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@
},
"homepage": "https://github.com/adonisjs/lucid#readme",
"dependencies": {
"@faker-js/faker": "5.5.3",
"@poppinss/hooks": "^3.0.5",
"@poppinss/utils": "^3.2.1",
"@types/faker": "^5.5.7",
"faker": "^5.5.3",
"fast-deep-equal": "^3.1.3",
"igniculus": "^1.5.0",
"knex": "^0.95.11",
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/FactoryContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* file that was distributed with this source code.
*/

import faker from 'faker'
import faker from '@faker-js/faker'
import { FactoryContextContract } from '@ioc:Adonis/Lucid/Factory'
import { TransactionClientContract } from '@ioc:Adonis/Lucid/Database'

Expand Down

0 comments on commit 759f2e4

Please sign in to comment.