-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
79 lines (79 loc) · 3.06 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
{
"name": "safunc",
"version": "0.1.3",
"private": true,
"description": "Create runtime-validated functions for both synchronous and asynchronous ones with ease, supporting optional parameters and overloaded signatures with smart type inference in TypeScript",
"keywords": [
"typescript",
"schema",
"validation",
"type",
"inference"
],
"homepage": "https://github.com/Snowflyt/safunc",
"bugs": {
"url": "https://github.com/Snowflyt/safunc/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/Snowflyt/safunc"
},
"license": "MIT",
"author": "Snowflyt <gaoge011022@163.com>",
"type": "module",
"main": "./cjs/index.js",
"types": "./types/index.d.ts",
"exports": {
".": {
"types": "./types/index.d.ts",
"import": "./esm/index.js",
"require": "./cjs/index.js"
}
},
"scripts": {
"prebuild": "npm run clean",
"build": "tsc -p ./tsconfig.esm.json && tsc-alias -p ./tsconfig.esm.json && tsc -p ./tsconfig.cjs.json && rimraf -g ./dist/{esm,cjs}/tools/ && prettier --log-level=silent --print-width 80 --write ./dist/ --ignore-path !dist/ && cpy ./package.json ./dist/ && replace-in-file \" \\\"private\\\": true,\" \"\" ./dist/package.json && replace-in-file \" \\\"prepare\\\": \\\"husky\\\",\" \"\" ./dist/package.json && prettier --log-level=silent --print-width 80 --write ./dist/package.json --ignore-path !package.json && cpy README.md LICENSE demo.gif screenshot.svg ./dist/",
"clean": "rimraf dist",
"format": "prettier --write {src,test}/**/*.{js,ts,json} *.{js,cjs,mjs,ts,cts,mts,json,md}",
"lint": "eslint {src,test}/**/*.{js,ts} *.{js,cjs,mjs,ts,cts,mts} --report-unused-disable-directives-severity error --max-warnings 0",
"lint:fix": "eslint --fix {src,test}/**/*.{js,ts} *.{js,cjs,mjs,ts,cts,mts} --report-unused-disable-directives-severity error --max-warnings 0",
"prepare": "husky",
"test": "vitest run",
"test-types": "typroof",
"test:cov": "vitest run --coverage",
"test:ui": "vitest --ui --coverage.enabled=true",
"test:watch": "vitest",
"test:watch-cov": "vitest --coverage"
},
"dependencies": {
"arktype": "1.0.29-alpha"
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@types/eslint": "^8.56.10",
"@types/lint-staged": "^13.3.0",
"@types/node": "^20.12.7",
"@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1",
"@vitest/coverage-v8": "^1.5.2",
"@vitest/ui": "^1.5.2",
"cpy-cli": "^5.0.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-sonarjs": "^0.25.1",
"eslint-plugin-sort-destructure-keys": "^2.0.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"prettier-plugin-packagejson": "^2.5.0",
"replace-in-file": "^7.1.0",
"rimraf": "^5.0.5",
"tsc-alias": "^1.8.8",
"typescript": "^5.4.5",
"typroof": "^0.2.7",
"vitest": "^1.5.2"
}
}