Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
122 lines (122 loc) · 4.13 KB
/
Copy pathpackage.json
File metadata and controls
122 lines (122 loc) · 4.13 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"name": "@rviscomi/capo.js",
"version": "2.3.1",
"publishConfig": {
"access": "public"
},
"description": "Get your ﹤𝚑𝚎𝚊𝚍﹥ in order",
"author": "Rick Viscomi",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/rviscomi/capo.js.git"
},
"bugs": {
"url": "https://github.com/rviscomi/capo.js/issues"
},
"homepage": "https://rviscomi.github.io/capo.js/",
"files": [
"src",
"dist",
"!dist/*.zip",
"!dist/chrome",
"!dist/firefox"
],
"type": "module",
"main": "dist/index.cjs",
"module": "src/index.js",
"types": "./dist/types/index.d.ts",
"alias": {
"@rviscomi/capo.js": "./src/index.js",
"@rviscomi/capo.js/adapters/browser": "./src/adapters/browser.js",
"@rviscomi/capo.js/lib/io": "./src/lib/io.js",
"@rviscomi/capo.js/lib/options": "./src/lib/options.js"
},
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./src/index.js",
"require": "./dist/index.cjs"
},
"./adapters": {
"types": "./dist/types/adapters/index.d.ts",
"import": "./src/adapters/index.js",
"require": "./dist/adapters/index.cjs"
},
"./adapters/browser": {
"types": "./dist/types/adapters/browser.d.ts",
"import": "./src/adapters/browser.js",
"require": "./dist/adapters/browser.cjs"
},
"./rules": {
"types": "./dist/types/lib/rules.d.ts",
"import": "./src/lib/rules.js",
"require": "./dist/lib/rules.cjs"
},
"./validation": {
"types": "./dist/types/lib/validation.d.ts",
"import": "./src/lib/validation.js",
"require": "./dist/lib/validation.cjs"
},
"./lib/io": {
"types": "./dist/types/lib/io.d.ts",
"import": "./src/lib/io.js",
"require": "./dist/lib/io.cjs"
},
"./lib/options": {
"types": "./dist/types/lib/options.d.ts",
"import": "./src/lib/options.js",
"require": "./dist/lib/options.cjs"
},
"./adapters/test-suite": {
"types": "./dist/types/adapters/test-suite.d.ts",
"import": "./src/adapters/test-suite.js",
"require": "./dist/adapters/test-suite.cjs"
}
},
"directories": {
"doc": "docs"
},
"targets": {
"chrome": {
"source": "src/extension/capo.js",
"distDir": "dist/chrome",
"sourceMap": false
},
"chrome-options": {
"source": "src/extension/options.js",
"distDir": "dist/chrome/options",
"sourceMap": false
}
},
"scripts": {
"typecheck": "tsc --noEmit",
"typecheck:ext": "tsc --noEmit -p tsconfig.extension.json",
"typecheck:test": "tsc --noEmit -p tsconfig.test.json",
"build:types": "tsc -p tsconfig.json",
"watch": "parcel watch",
"build": "npm run build:cjs && npm run build:types && parcel build && node scripts/build-extension.js",
"package:source": "zip -r -q dist/source.zip . -x \"node_modules/*\" \"dist/*\" \".git/*\" \".parcel-cache/*\" \"docs/node_modules/*\" \"docs/.astro/*\" \"docs/dist/*\" \".github/*\" \"*/.DS_Store\" \".DS_Store\"",
"build:cjs": "esbuild src/index.js src/analyzer.js src/adapters/adapter.js src/adapters/index.js src/adapters/browser.js src/lib/rules.js src/lib/validation.js src/lib/io.js src/lib/options.js src/lib/colors.js src/adapters/test-suite.js --bundle --platform=node --format=cjs --outdir=dist --out-extension:.js=.cjs",
"test": "node --test tests/*.test.js tests/**/*.test.js",
"test:watch": "node --test --watch tests/*.test.js tests/**/*.test.js",
"test:coverage": "node --test --experimental-test-coverage tests/*.test.js tests/**/*.test.js",
"test:rules": "node --test tests/lib/rules.test.js",
"test:validation": "node --test tests/lib/validation.test.js",
"test:integration": "node --test tests/integration/*.test.js",
"format:check": "prettier --check .",
"format": "prettier --write ."
},
"devDependencies": {
"@parcel/cache": "^2.16.4",
"@types/jsdom": "^28.0.3",
"@types/node": "^26.1.1",
"chrome-types": "^0.1.436",
"dedent": "^1.7.2",
"esbuild": "^0.28.1",
"jsdom": "^29.1.1",
"parcel": "^2.16.4",
"prettier": "^3.5.3",
"typescript": "^7.0.2"
}
}