UNPKG

3.45 kBJSONView Raw
1{
2 "name": "superstruct",
3 "type": "module",
4 "description": "A simple, expressive way to validate data in JavaScript.",
5 "version": "0.8.3",
6 "license": "MIT",
7 "repository": "git://github.com/ianstormtaylor/superstruct.git",
8 "source": "./src/index.ts",
9 "types": "./lib/index.d.ts",
10 "main": "./lib/index.cjs",
11 "module": "./lib/index.es.js",
12 "files": [
13 "umd",
14 "lib"
15 ],
16 "dependencies": {
17 "kind-of": "^6.0.2",
18 "tiny-invariant": "^1.0.6"
19 },
20 "devDependencies": {
21 "@babel/cli": "^7.6.3",
22 "@babel/core": "^7.6.3",
23 "@babel/plugin-proposal-class-properties": "^7.5.5",
24 "@babel/plugin-proposal-object-rest-spread": "^7.6.2",
25 "@babel/plugin-transform-modules-commonjs": "^7.6.0",
26 "@babel/preset-env": "^7.6.3",
27 "@babel/preset-typescript": "^7.6.0",
28 "@babel/register": "^7.6.2",
29 "@gnd/typedoc": "^0.15.0-0",
30 "@types/lodash": "^4.14.144",
31 "@types/mocha": "^5.2.7",
32 "@types/node": "^12.7.12",
33 "@typescript-eslint/eslint-plugin": "^2.3.3",
34 "@typescript-eslint/parser": "^2.3.3",
35 "babel-eslint": "^10.0.3",
36 "babel-plugin-dev-expression": "^0.2.2",
37 "eslint": "^6.5.1",
38 "eslint-config-prettier": "^6.4.0",
39 "eslint-plugin-import": "^2.18.2",
40 "eslint-plugin-prettier": "^3.1.1",
41 "is-email": "^1.0.0",
42 "is-url": "^1.2.4",
43 "is-uuid": "^1.0.2",
44 "lodash": "^4.17.15",
45 "mocha": "^6.2.1",
46 "prettier": "^1.18.2",
47 "rollup": "^1.23.1",
48 "rollup-plugin-babel": "^4.3.3",
49 "rollup-plugin-commonjs": "^10.1.0",
50 "rollup-plugin-node-resolve": "^5.2.0",
51 "rollup-plugin-replace": "^2.2.0",
52 "rollup-plugin-terser": "^5.1.2",
53 "rollup-plugin-typescript2": "^0.24.3",
54 "typescript": "^3.6.4"
55 },
56 "scripts": {
57 "build": "yarn build:es && yarn build:cjs && yarn build:max && yarn build:min && yarn build:types && yarn build:docs",
58 "build:cjs": "rollup --config ./config/rollup-cjs.js",
59 "build:docs": "typedoc ./src/index.ts ./src/@types/*.ts && cp -f ./site/globals.html ./site/index.html",
60 "build:es": "rollup --config ./config/rollup.js",
61 "build:max": "rollup --config ./config/rollup-umd.js",
62 "build:min": "rollup --config ./config/rollup-umd-min.js",
63 "build:types": "tsc --emitDeclarationOnly --declarationMap --outDir ./lib",
64 "clean": "rm -rf ./{lib,umd,node_modules}",
65 "fix": "yarn fix:eslint && yarn fix:prettier",
66 "fix:eslint": "yarn lint:eslint --fix",
67 "fix:prettier": "yarn lint:prettier --write",
68 "lint": "yarn lint:eslint && yarn lint:prettier",
69 "lint:eslint": "eslint '{src,test}/*.{js,ts}'",
70 "lint:prettier": "prettier --list-different '**/*.{js,json,ts}'",
71 "release": "yarn build && yarn lint && np",
72 "test": "yarn test:types && yarn test:mocha",
73 "test:mocha": "yarn build:cjs && mocha --require ./test/register.cjs --require source-map-support/register ./test/index.ts",
74 "test:types": "yarn build:types && tsc --noEmit && tsc --project ./test/tsconfig.json --noEmit",
75 "watch": "yarn build:cjs --watch"
76 },
77 "keywords": [
78 "api",
79 "array",
80 "assert",
81 "cast",
82 "check",
83 "checker",
84 "collection",
85 "data",
86 "error",
87 "express",
88 "hapi",
89 "interface",
90 "invalid",
91 "joi",
92 "json",
93 "list",
94 "model",
95 "object",
96 "orm",
97 "scalar",
98 "schema",
99 "struct",
100 "throw",
101 "type",
102 "types",
103 "valid",
104 "validate",
105 "validation",
106 "validator"
107 ]
108}