-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
102 lines (102 loc) · 3.15 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{
"$schema": "https://json.schemastore.org/package",
"name": "yup-phone-lite",
"version": "2.0.1",
"description": "Adds a phone number validation check to yup using libphonenumber-js.",
"license": "MIT",
"author": "Chris Sandvik <[email protected]> (https://github.com/csandman)",
"repository": {
"type": "git",
"url": "https://github.com/csandman/yup-phone-lite"
},
"bugs": {
"url": "https://github.com/csandman/yup-phone-lite/issues"
},
"exports": {
".": {
"import": "./dist/esm/yup-phone-lite.js",
"require": "./dist/cjs/yup-phone-lite.js",
"types": "./dist/types/yup-phone-lite.d.ts",
"default": "./dist/esm/yup-phone-lite.js"
}
},
"main": "dist/cjs/yup-phone-lite.js",
"module": "dist/esm/yup-phone-lite.js",
"files": [
"dist"
],
"scripts": {
"prebuild": "rimraf dist",
"build": "concurrently npm:build:*",
"postbuild": "rimraf dist/**/*.test.*",
"build:cjs": "cross-env BABEL_ENV=cjs babel src --extensions .ts -d dist/cjs --source-maps --ignore **/*.test.ts",
"build:esm": "cross-env BABEL_ENV=esm babel src --extensions .ts -d dist/esm --source-maps --ignore **/*.test.ts",
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
"dev": "nodemon --watch src -e ts --exec npm run build",
"format": "concurrently npm:format:*",
"format:code": "prettier --write .",
"format:package": "prettier-package-json --write",
"lint": "concurrently npm:lint:*",
"lint:code": "eslint . --fix",
"lint:types": "tsc --noEmit",
"prepare": "husky install",
"prepublishOnly": "npm test && npm run lint && npm run build",
"postpublish": "git push --tags",
"test": "cross-env BABEL_ENV=cjs jest src",
"preversion": "git fetch --tags --force"
},
"types": "dist/types/yup-phone-lite.d.ts",
"dependencies": {
"libphonenumber-js": "^1.10.18"
},
"peerDependencies": {
"yup": ">0.32.0"
},
"devDependencies": {
"@babel/cli": "^7.20.7",
"@babel/core": "^7.20.12",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.18.6",
"@types/jest": "^29.2.5",
"@typescript-eslint/eslint-plugin": "^5.48.2",
"@typescript-eslint/parser": "^5.48.2",
"concurrently": "^7.6.0",
"cross-env": "^7.0.3",
"eslint": "^8.32.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-deprecation": "^1.3.3",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-tsdoc": "^0.2.17",
"husky": "^8.0.3",
"jest": "^29.3.1",
"lint-staged": "^13.1.0",
"nodemon": "^2.0.20",
"prettier": "^2.8.3",
"prettier-package-json": "^2.8.0",
"rimraf": "^4.1.1",
"typescript": "^4.9.4",
"yup": "^0.32.11"
},
"keywords": [
"google",
"google-libphonenumber",
"libphonenumber-js",
"number",
"phone",
"schema",
"validation",
"yup",
"yup-phone-lite"
],
"engines": {
"node": ">=12"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"browsers": "> 0.25%, not dead",
"readme": "README.md"
}