-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
140 lines (140 loc) · 4.22 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
{
"name": "csp-typed-directives",
"version": "1.1.10",
"description": "Provides type information for all CSP directives and related headers' directives; as well as a basic utility funtion that helps convert the typed properties to the header content's policy string.",
"type": "module",
"scripts": {
"dev": "npm run build -- --watch",
"pre-push": "run-s build lint:* test:*",
"build": "tsup src/index.ts --sourcemap --dts --minify --format cjs,esm",
"log": "conventional-changelog -p angular -i CHANGELOG.md -s",
"lint": "run-s lint:*",
"lint:typescript": "eslint src --ext .ts --fix",
"lint:markdown": "markdownlint-cli2-fix \"**/*.md\" \"#node_modules\" \"#CHANGELOG.md\"",
"test": "run-s test:*",
"test:lint": "eslint src --ext .ts",
"test:markdown": "markdownlint-cli2 \"**/*.md\" \"#node_modules\" \"#CHANGELOG.md\"",
"test:spelling": "cspell --config ./cSpell.json \"{README.md,.github/*.md,src/**/*.ts,docs/**/*.md}\"",
"test:unit": "vitest run -c config/vitest.config.ts --coverage",
"watch:test": "vitest watch -c config/vitest.config.ts --watch",
"cov:send": "run-s build test && codecov",
"doc": "run-s doc:html && open-cli build/docs/index.html",
"doc:html": "typedoc src/ --exclude **/*.test.ts --target ES6 --mode file --out build/docs",
"doc:json": "typedoc src/ --exclude **/*.test.ts --target ES6 --mode file --json build/docs/typedoc.json",
"reset-hard": "git clean -dfx && git reset --hard && npm i",
"prepare-release": "run-s reset-hard test doc:html version doc:publish",
"ci:validate": "rm -rf node_modules && npm ci && npm run test",
"prepublishOnly": "run-s pinst:disable ci:validate build",
"semantic-release": "semantic-release",
"install:husky": "is-ci || husky install",
"pinst:disable": "pinst --disable",
"postpublish": "pinst --enable"
},
"repository": {
"type": "git",
"url": "git+https://github.com/josh-hemphill/csp-typed-directives.git"
},
"keywords": [
"CSP",
"CSPs",
"content-security-policy",
"header",
"security",
"generate",
"directive",
"types",
"typescript"
],
"maintainers": [
{
"name": "Joshua Hemphill",
"email": "[email protected]",
"url": "https://joshuahemphill.com"
}
],
"author": {
"name": "Joshua Hemphill",
"email": "[email protected]",
"url": "https://joshuahemphill.com"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/josh-hemphill/csp-typed-directives/issues"
},
"homepage": "https://github.com/josh-hemphill/csp-typed-directives#readme",
"files": [
"dist",
"mod.ts",
"CHANGELOG.md",
"LICENSE",
"SECURITY.md",
"README.md"
],
"main": "dist/index.cjs",
"module": "dist/index.js",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"types": "dist/index.d.ts",
"typings": "dist/index.d.ts",
"devDependencies": {
"@commitlint/cli": "^17.5.1",
"@commitlint/config-conventional": "^17.4.4",
"@jest/types": "^29.5.0",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/npm": "^10.0.3",
"@types/node": "^18.15.11",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"@vitest/coverage-c8": "^0.30.1",
"codecov": "^3.8.2",
"commitizen": "^4.3.0",
"conventional-changelog-cli": "^2.2.2",
"cspell": "^6.31.1",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.38.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-vitest": "^0.1.4",
"gh-pages": "^5.0.0",
"husky": "^8.0.3",
"lint-staged": "^13.2.1",
"markdownlint-cli2": "^0.6.0",
"npm-run-all": "^4.1.5",
"open-cli": "^7.2.0",
"pinst": "^3.0.0",
"rimraf": "^5.0.0",
"semantic-release": "^21.0.1",
"semantic-release-license": "^1.0.3",
"ts-node": "^10.9.1",
"tsup": "^6.7.0",
"typedoc": "^0.24.1",
"typescript": "^5.0.4",
"vitest": "^0.30.1"
},
"publishConfig": {
"access": "public"
},
"release": {
"extends": "./config/.releaserc.json"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "npm run test"
}
},
"eslintConfig": {
"extends": "./config/.eslintrc.json"
},
"lint-staged": {
"*.js": [
"eslint --cache --fix",
"git add ."
]
}
}