1 | {
|
2 | "name": "superstruct",
|
3 | "type": "module",
|
4 | "description": "A simple and composable way to validate data in JavaScript (and TypeScript).",
|
5 | "version": "0.14.0",
|
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 | "exports": {
|
13 | "import": "./lib/index.es.js",
|
14 | "require": "./lib/index.cjs"
|
15 | },
|
16 | "sideEffects": false,
|
17 | "files": [
|
18 | "umd",
|
19 | "lib"
|
20 | ],
|
21 | "devDependencies": {
|
22 | "@babel/cli": "^7.6.3",
|
23 | "@babel/core": "^7.6.3",
|
24 | "@babel/plugin-transform-modules-commonjs": "^7.12.1",
|
25 | "@babel/preset-env": "^7.6.3",
|
26 | "@babel/preset-typescript": "^7.6.0",
|
27 | "@babel/register": "^7.6.2",
|
28 | "@types/lodash": "^4.14.144",
|
29 | "@types/mocha": "^8.0.3",
|
30 | "@types/node": "^14.0.6",
|
31 | "@typescript-eslint/eslint-plugin": "^4.8.2",
|
32 | "@typescript-eslint/parser": "^4.8.2",
|
33 | "babel-eslint": "^10.0.3",
|
34 | "eslint": "^7.14.0",
|
35 | "eslint-config-prettier": "^7.2.0",
|
36 | "eslint-plugin-import": "^2.22.1",
|
37 | "eslint-plugin-prettier": "^3.1.4",
|
38 | "is-email": "^1.0.0",
|
39 | "is-url": "^1.2.4",
|
40 | "is-uuid": "^1.0.2",
|
41 | "lodash": "^4.17.15",
|
42 | "mocha": "^8.0.1",
|
43 | "np": "^7.0.0",
|
44 | "prettier": "^2.0.5",
|
45 | "rollup": "^2.12.0",
|
46 | "rollup-plugin-babel": "^4.3.3",
|
47 | "rollup-plugin-commonjs": "^10.1.0",
|
48 | "rollup-plugin-node-resolve": "^5.2.0",
|
49 | "rollup-plugin-replace": "^2.2.0",
|
50 | "rollup-plugin-terser": "^7.0.2",
|
51 | "rollup-plugin-ts": "^1.2.24",
|
52 | "typescript": "^4.1.2"
|
53 | },
|
54 | "scripts": {
|
55 | "build": "yarn build:types && yarn build:es && yarn build:cjs && yarn build:max && yarn build:min",
|
56 | "build:cjs": "rollup --config ./config/rollup-cjs.js",
|
57 | "build:es": "rollup --config ./config/rollup.js",
|
58 | "build:max": "rollup --config ./config/rollup-umd.js",
|
59 | "build:min": "rollup --config ./config/rollup-umd-min.js",
|
60 | "build:types": "tsc --emitDeclarationOnly --declarationMap --outDir ./lib",
|
61 | "clean": "rm -rf ./{lib,umd,node_modules}",
|
62 | "fix": "yarn fix:eslint && yarn fix:prettier",
|
63 | "fix:eslint": "yarn lint:eslint --fix",
|
64 | "fix:prettier": "yarn lint:prettier --write",
|
65 | "lint": "yarn lint:eslint && yarn lint:prettier",
|
66 | "lint:eslint": "eslint '{src,test}/*.{js,ts}'",
|
67 | "lint:prettier": "prettier --list-different '**/*.{js,json,ts}'",
|
68 | "release": "yarn build && yarn lint && np",
|
69 | "test": "yarn build:types && yarn test:types && yarn build:cjs && yarn test:mocha",
|
70 | "test:mocha": "mocha --require ./test/register.cjs --require source-map-support/register ./test/index.ts",
|
71 | "test:types": "tsc --noEmit && tsc --project ./test/tsconfig.json --noEmit",
|
72 | "watch": "yarn build:cjs --watch",
|
73 | "watch:types": "yarn build:types --watch"
|
74 | },
|
75 | "keywords": [
|
76 | "api",
|
77 | "array",
|
78 | "assert",
|
79 | "cast",
|
80 | "check",
|
81 | "checker",
|
82 | "collection",
|
83 | "data",
|
84 | "error",
|
85 | "express",
|
86 | "hapi",
|
87 | "interface",
|
88 | "invalid",
|
89 | "joi",
|
90 | "json",
|
91 | "list",
|
92 | "model",
|
93 | "object",
|
94 | "orm",
|
95 | "scalar",
|
96 | "schema",
|
97 | "struct",
|
98 | "throw",
|
99 | "type",
|
100 | "types",
|
101 | "valid",
|
102 | "validate",
|
103 | "validation",
|
104 | "validator"
|
105 | ]
|
106 | }
|