Skip to content

Commit 9b4e0a9

Browse files
authored
refactor: extract @poppinss/validator-lite (#31)
1 parent 8f29e1c commit 9b4e0a9

File tree

10 files changed

+3
-576
lines changed

10 files changed

+3
-576
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
},
7878
"dependencies": {
7979
"@poppinss/utils": "^5.0.0",
80+
"@poppinss/validator-lite": "^1.0.1",
8081
"dotenv": "^16.0.3",
8182
"validator": "^13.7.0"
8283
},

src/Env/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
import { DotenvParseOutput } from 'dotenv'
1313
import { EnvContract, ValidateFn } from '@ioc:Adonis/Core/Env'
14-
import { schema as EnvSchema } from '../Schema'
14+
import { schema as EnvSchema } from '@poppinss/validator-lite'
1515

1616
/**
1717
* The ENV module enables the use of environment variables by parsing dotfiles syntax

src/Schema/boolean.ts

Lines changed: 0 additions & 56 deletions
This file was deleted.

src/Schema/helpers.ts

Lines changed: 0 additions & 37 deletions
This file was deleted.

src/Schema/index.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/Schema/number.ts

Lines changed: 0 additions & 54 deletions
This file was deleted.

src/Schema/oneOf.ts

Lines changed: 0 additions & 76 deletions
This file was deleted.

src/Schema/string.ts

Lines changed: 0 additions & 91 deletions
This file was deleted.

test/env.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import { test } from '@japa/runner'
1111
import { Env } from '../src/Env'
12-
import { schema } from '../src/Schema'
12+
import { schema } from '@poppinss/validator-lite'
1313

1414
test.group('Env', (group) => {
1515
group.each.setup(() => {

0 commit comments

Comments
 (0)