-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.json
65 lines (65 loc) · 2.23 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
{
"name": "@wikimedia/codex-icons",
"version": "1.6.1",
"type": "module",
"description": "Icons for Codex",
"author": "Wikimedia Foundation (https://wikimediafoundation.org/)",
"homepage": "https://doc.wikimedia.org/codex/",
"repository": {
"type": "git",
"url": "https://gerrit.wikimedia.org/g/design/codex/"
},
"bugs": "https://phabricator.wikimedia.org/tag/codex/",
"license": "MIT",
"engines": {
"npm": ">=7.21.0",
"node": ">=18"
},
"main": "dist/codex-icons.cjs",
"module": "dist/codex-icons.js",
"types": "./dist/types/index.d.ts",
"files": [
"dist",
"codex-icon-paths.less"
],
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/codex-icons.js",
"require": "./dist/codex-icons.cjs"
},
"./dist/*": "./dist/*",
"./codex-icon-paths.less": "./dist/codex-icon-paths.less"
},
"scripts": {
"build": "npm run minify:svg && npm run build:vite && npm run build:svg && npm run build:json && npm run build:less && npm run test:output",
"build:vite": "vite build",
"build:json": "node ./build/buildIconsJson.js",
"build:less": "node ./build/buildIconsLess.js",
"build:svg": "cp -a src/images dist/",
"build-if-missing": "test -e dist/codex-icons.json || npm run build",
"lint": "npm run lint:svg && npm run lint:ts",
"lint:svg": "svglint --ci src/images/*.svg",
"lint:ts": "tsc -p ./tsconfig-check.json",
"minify:svg": "svgo --config=.svgo.config.js --quiet --recursive --folder ./src/images",
"test": "npm run lint && npm run build && npm run test:clean-git && npm run test:unit",
"test:unit": "NODE_OPTIONS=--experimental-vm-modules jest -c .jest/jest.config.json",
"test:output": "npm run test:unit -- tests/outputTypes.test.ts --coverage=false",
"test:clean-git": "test $(git diff ./src/images | wc -l) -eq 0 || (echo 'Uncommitted SVG changes:'; git diff ./src/images; false)",
"prepublishOnly": "cp dist/codex-icon-paths.less .",
"postpublish": "rm codex-icon-paths.less"
},
"devDependencies": {
"@rollup/plugin-typescript": "11.1.5",
"@types/estree": "1.0.0",
"@types/jest": "29.5.6",
"glob": "10.3.10",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"svglint": "2.7.1",
"svgo": "3.2.0",
"ts-jest": "29.1.1",
"typescript": "5.2.2",
"vite": "5.2.11"
}
}