-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpackage.json
129 lines (129 loc) · 3.29 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
{
"name": "@hyzyla/pdfium",
"version": "2.1.2",
"description": "Universal wrapper for PDFium",
"type": "module",
"exports": {
".": {
"node": {
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
},
"browser": {
"default": "./dist/index.esm.browser.js",
"types": "./dist/index.esm.d.ts"
},
"default": "./dist/index.esm.js",
"types": "./dist/index.esm.d.ts"
},
"./browser/cdn": {
"default": "./dist/index.esm.cdn.js",
"types": "./dist/index.esm.cdn.d.ts"
},
"./browser/base64": {
"default": "./dist/index.esm.base64.js",
"types": "./dist/index.esm.base64.d.ts"
},
"./pdfium.wasm": "./dist/pdfium.wasm",
"./dist/*": "./dist/*"
},
"browser": {
"fs": false,
"url": false,
"node": false,
"path": false,
"crypto": false,
"module": false
},
"types": "dist/index.d.ts",
"scripts": {
"build:watch": "rollup --config rollup.config.mjs --watch",
"build:prod": "rollup --config rollup.config.mjs --environment NODE_ENV:production",
"clean": "rm -rf dist",
"check:fix": "biome check --write",
"check:ci": "biome ci",
"check:test": "vitest",
"check:types": "tsc --noEmit"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hyzyla/pdfium"
},
"author": "Yevhenii Hyzyla",
"license": "MIT",
"files": ["dist/**/*"],
"devDependencies": {
"@biomejs/biome": "1.8.3",
"@octokit/rest": "^19.0.13",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.7",
"@rollup/plugin-typescript": "^11.1.6",
"@types/axios": "^0.14.0",
"@types/jest-image-snapshot": "^6.4.0",
"@types/node": "^20.2.5",
"axios": "^1.4.0",
"jest-image-snapshot": "^6.4.0",
"prettier": "^3.3.2",
"rollup": "^4.20.0",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-delete": "^2.0.0",
"sharp": "^0.33.5",
"tar": "^6.1.15",
"ts-node": "^10.9.1",
"tslib": "^2.6.3",
"unzipper": "^0.10.14",
"vitest": "^2.0.5"
},
"publishConfig": {
"access": "public"
},
"========== Tools ==========": "",
"eslintConfig": {
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript"
],
"overrides": [],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "import"],
"rules": {
"import/order": [
"error",
{
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
"pathGroups": [
{
"pattern": "./vendor/**",
"group": "external",
"position": "after"
}
],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
]
},
"ignorePatterns": ["src/vendor/**/*"],
"settings": {
"import/resolver": {
"typescript": true,
"node": true
}
}
}
}