forked from altcha-org/altcha-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
68 lines (68 loc) · 1.71 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
{
"name": "altcha-lib",
"version": "0.1.4",
"description": "A library for creating and verifying ALTCHA challenges for Node.js, Bun and Deno.",
"author": "Daniel Regeci",
"license": "MIT",
"keywords": [
"altcha",
"captcha",
"antispam",
"captcha alternative"
],
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"type": "module",
"scripts": {
"build": "rimraf dist && rimraf cjs/dist && tsc -b tsconfig.build.json tsconfig.cjs.json",
"denoify": "rimraf deno_dist && denoify && find deno_dist/. -type f -exec sed -i '' -e 's/node:node:/node:/g' {} +",
"eslint": "eslint ./lib/**/*",
"format": "prettier --write './(lib|tests)/**/*'",
"test": "vitest --run",
"test:deno": "deno test --allow-read tests/deno.ts",
"prepare": "husky"
},
"files": [
"cjs",
"dist"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./cjs/dist/index.js",
"default": "./dist/index.js"
},
"./types": {
"types": "./dist/types.d.ts",
"import": "./dist/types.js"
},
"./worker": {
"types": "./dist/worker.d.ts",
"import": "./dist/worker.js",
"require": "./cjs/dist/worker.js",
"default": "./dist/worker.js"
}
},
"typesVersions": {
"*": {
"types": [
"./dist/types"
]
}
},
"devDependencies": {
"@types/node": "^20.9.0",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"denoify": "^1.6.9",
"eslint": "^8.56.0",
"husky": "^9.0.11",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"ts-node": "^10.9.1",
"tsx": "^4.0.0",
"typescript": "^5.2.2",
"vitest": "^1.0.1"
}
}