-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
100 lines (100 loc) · 3.77 KB
/
package.json
File metadata and controls
100 lines (100 loc) · 3.77 KB
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
{
"author": {
"name": "Robert Lindley"
},
"bugs": {
"url": "https://github.com/Coderrob/typescript-type-guards/issues"
},
"description": "Reusable TypeScript type guards for narrowing unknown values in application and library code.",
"devDependencies": {
"@arethetypeswrong/cli": "^0.18.2",
"@changesets/cli": "^2.30.0",
"@coderrob/eslint-plugin-zero-tolerance": "^1.2.2",
"@emnapi/core": "^1.9.2",
"@emnapi/runtime": "^1.9.2",
"@emnapi/wasi-threads": "^1.2.1",
"@typescript-eslint/parser": "^8.58.0",
"@vitest/coverage-v8": "^4.1.2",
"eslint": "^10.1.0",
"jscpd": "^4.0.8",
"madge": "^8.0.0",
"prettier": "^3.8.1",
"publint": "^0.3.18",
"rimraf": "^6.1.3",
"tinybench": "^6.0.0",
"tsup": "^8.5.1",
"typescript": "^5.9.3",
"typescript-eslint": "^8.58.0",
"vitest": "^4.1.2"
},
"engines": {
"node": "^20 || ^22 || ^24"
},
"exports": {
".": {
"types": {
"import": "./dist/index.d.mts",
"require": "./dist/index.d.ts"
},
"import": "./dist/index.mjs",
"require": "./dist/index.js",
"default": "./dist/index.js"
},
"./package.json": "./package.json"
},
"files": [
"dist"
],
"homepage": "https://github.com/Coderrob/typescript-type-guards#readme",
"keywords": [
"typescript",
"type-guards",
"typeguard",
"guards",
"runtime-validation",
"utility"
],
"license": "Apache-2.0",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"name": "@coderrob/typescript-type-guards",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Coderrob/typescript-type-guards.git"
},
"scripts": {
"build": "tsup --config tsup.config.ts",
"changeset": "changeset",
"check:publint": "publint run --strict .",
"check:types:package": "attw --pack .",
"clean": "rimraf coverage dist",
"bench": "node benchmarks/guards.bench.mjs",
"duplication": "jscpd src",
"format": "prettier --write .",
"format:check": "prettier --check .",
"lint": "npm run lint:eslint && npm run lint:cycles",
"lint:cycles": "madge --circular --extensions ts --ts-config tsconfig.json src/index.ts",
"lint:eslint": "eslint .",
"lint:fix": "eslint . --fix",
"package:quality": "npm run check:publint && npm run check:types:package",
"prepack": "npm run clean && npm run build && npm run test:package && npm run typecheck",
"prepublishOnly": "npm run verify && npm run test:coverage",
"publish:package": "npm pack --dry-run && npm publish --access public",
"release:changesets": "npm run verify && npm run test:coverage && changeset publish",
"release:version": "changeset version",
"test": "vitest run --root . src/__tests__/runtime.test.ts --pool=threads --fileParallelism=false",
"test:consumers": "node scripts/run-consumer-smoke-tests.mjs",
"test:package": "node scripts/check-package-interop.mjs && npm run test:consumers",
"test:types": "tsc -p tsconfig.type-tests.json --noEmit",
"typecheck": "tsc -p tsconfig.json --noEmit && npm run test:types",
"test:coverage": "vitest run --root . src/__tests__/runtime.test.ts --pool=threads --fileParallelism=false --coverage --coverage.provider=v8 --coverage.all --coverage.include=src/**/*.ts --coverage.exclude=src/**/__tests__/** --coverage.exclude=src/index.ts --coverage.exclude=src/guards/types.ts --coverage.reporter=text --coverage.reporter=lcov --coverage.reporter=json-summary && node scripts/check-file-coverage.mjs",
"verify": "npm run format:check && npm run lint && npm run typecheck && npm test && npm run build && npm run test:package && npm run package:quality"
},
"sideEffects": false,
"type": "commonjs",
"types": "dist/index.d.ts",
"version": "1.0.1"
}