mirror of
https://github.com/altcha-org/altcha-lib.git
synced 2026-01-25 04:18:21 +00:00
69 lines
1.7 KiB
JSON
69 lines
1.7 KiB
JSON
{
|
|
"name": "altcha-lib",
|
|
"version": "0.3.0",
|
|
"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"
|
|
}
|
|
}
|