-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
72 lines (72 loc) · 2.37 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
{
"name": "@closeio/best-practices-documentation",
"version": "0.4.2",
"description": "Tooling to document best practices in your code base.",
"author": "Trey Cucco",
"main": "index.js",
"scripts": {
"build": "npm run clean && npm run build:esm && npm run build:cjs",
"build:best-practices": "node ./lib/cjs/best-practices.js write -s ./sample/src -d ./sample/docs -g ./sample/docs/best-practices -u https://github.com/closeio/best-practices-documentation/tree/main/sample/src",
"build:cjs": "tsc -p ./configs/tsconfig.cjs.lib.json",
"build:esm": "tsc -p ./configs/tsconfig.esm.json && mv lib/esm/index.js lib/esm/index.mjs",
"check": "npm run build && npm run test:typecheck && npm run test:prettier && npm run test:eslint && npm run test:best-practices && npm run test",
"clean": "rm -rf ./lib",
"prepack": "npm run build",
"prettier:fix": "prettier --fix src/ tests/",
"test": "vitest run",
"test:best-practices": "node ./lib/cjs/best-practices.js check -s ./sample/src -g ./sample/docs/best-practices",
"test:eslint": "eslint src/ tests/",
"test:prettier": "prettier --check src/ tests/",
"test:typecheck": "tsc",
"test:watch": "vitest watch"
},
"bin": {
"best-practices": "lib/cjs/best-practices.js"
},
"exports": {
".": {
"import": {
"types": "./lib/esm/types/index.d.ts",
"default": "./lib/esm/index.mjs"
},
"require": {
"types": "./lib/cjs/types/index.d.ts",
"default": "./lib/cjs/index.js"
}
}
},
"files": [
"lib/**/*"
],
"repository": {
"type": "git",
"url": "git+https://github.com/closeio/best-practices-documentation.git"
},
"keywords": [
"documentation"
],
"license": "MIT",
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/crypto-js": "^4.2.2",
"@types/node": "^20.16.10",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"eslint": "^8.57.1",
"prettier": "^3.3.3",
"typescript": "^5.6.2",
"vitest": "^2.1.1"
},
"dependencies": {
"commander": "^11.1.0",
"crypto-js": "^4.1.1"
},
"bugs": {
"url": "https://github.com/closeio/best-practices-documentation/issues"
},
"homepage": "https://github.com/closeio/best-practices-documentation#readme",
"directories": {
"lib": "lib",
"test": "tests"
}
}