Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
76 lines (76 loc) · 2.27 KB
/
Copy pathpackage.json
File metadata and controls
76 lines (76 loc) · 2.27 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
{
"name": "light-print",
"version": "2.9.0",
"description": "Lightweight HTML element printing for browsers.",
"type": "module",
"main": "./dist/light-print.cjs",
"module": "./dist/light-print.js",
"types": "./dist/light-print.d.ts",
"unpkg": "./dist/light-print.global.min.js",
"jsdelivr": "./dist/light-print.global.min.js",
"exports": {
".": {
"import": {
"types": "./dist/light-print.d.ts",
"default": "./dist/light-print.js"
},
"require": {
"types": "./dist/light-print.d.cts",
"default": "./dist/light-print.cjs"
}
}
},
"files": [
"dist"
],
"scripts": {
"start": "vite preview --port 3100 --outDir ./ --logLevel error --open ./examples/",
"build": "npm run lint && npm run format && npm run build-ts && npm run build-rollup && npm run build-dts && rimraf .cache",
"build-ts": "rimraf .cache && tsc --outDir .cache --project tsconfig.lib.json",
"build-rollup": "rimraf dist && rollup -c scripts/rollup.config.js -i .cache/index.js",
"build-dts": "rollup -c scripts/rollup.dts.config.js -i .cache/index.d.ts",
"test:unit": "vitest",
"test:e2e": "rimraf tests/browser/__screenshots__ && playwright test",
"coverage": "vitest run --coverage",
"lint": "oxlint --fix -c oxlintrc.json",
"format": "prettier -w \"**/*\" -u"
},
"repository": {
"type": "git",
"url": "git+https://github.com/xunmi1/light-print.git"
},
"sideEffects": false,
"keywords": [
"print",
"printing",
"dom-print",
"browser-print",
"pdf",
"vue-print",
"react-print"
],
"author": "xunmi",
"license": "MIT",
"bugs": {
"url": "https://github.com/xunmi1/light-print/issues"
},
"homepage": "https://xunmi1.github.io/light-print/",
"devDependencies": {
"@playwright/test": "^1.64.0",
"@rollup/plugin-replace": "^6.0.3",
"@rollup/plugin-terser": "^1.0.0",
"@types/node": "^24.12.0",
"@vitest/coverage-v8": "^5.0.3",
"@xunmi/prettier-config": "^1.0.2",
"happy-dom": "^20.14.5",
"oxlint": "^1.87.0",
"prettier": "^3.9.9",
"rimraf": "^6.1.3",
"rollup": "^4.64.2",
"rollup-plugin-dts": "^6.5.1",
"typescript": "^5.9.3",
"vite": "^8.3.3",
"vitest": "^5.0.3"
},
"prettier": "@xunmi/prettier-config"
}