Files
altcha/package.json
Daniel Regeci bddbad588f 0.8.0
2024-08-09 19:05:28 -03:00

86 lines
2.2 KiB
JSON

{
"name": "altcha",
"description": "GDPR compliant, self-hosted CAPTCHA alternative.",
"version": "0.8.0",
"license": "MIT",
"author": {
"name": "Daniel Regeci",
"url": "https://altcha.org"
},
"homepage": "https://altcha.org",
"repository": {
"type": "git",
"url": "https://github.com/altcha-org/altcha"
},
"type": "module",
"keywords": [
"altcha",
"altcaptcha",
"captcha",
"captcha alternative",
"recaptcha",
"hcaptcha",
"antispam",
"spam",
"spam filter",
"protection",
"svelte"
],
"files": [
"dist",
"dist_external"
],
"main": "./dist/altcha.umd.cjs",
"module": "./dist/altcha.js",
"exports": {
".": {
"import": "./dist/altcha.js",
"require": "./dist/altcha.umd.cjs"
},
"./altcha.css": {
"import": "./dist_external/altcha.css",
"require": "./dist_external/altcha.css"
},
"./external/altcha.js": {
"import": "./dist_external/altcha.js",
"require": "./dist_external/altcha.umd.cjs"
},
"./external/worker.js": {
"import": "./dist_external/worker.js",
"require": "./dist_external/worker.js"
}
},
"scripts": {
"dev": "vite",
"build": "npm run build:bundle && npm run build:external",
"build:bundle": "rimraf dist && vite build && cp src/declarations.d.ts dist/altcha.d.ts",
"build:external": "rimraf dist_external && BUILD_EXTERNAL=1 vite build && cp src/declarations.d.ts dist_external/altcha.d.ts",
"preview": "vite preview",
"check": "svelte-check --tsconfig ./tsconfig.json",
"format": "prettier --write ./src/**/*",
"test": "vitest run tests/helpers.test.ts",
"test:e2e": "playwright test",
"prepare": "husky"
},
"devDependencies": {
"@playwright/test": "^1.44.1",
"@sveltejs/vite-plugin-svelte": "^3.0.2",
"@tsconfig/svelte": "^5.0.0",
"@types/node": "^20.11.19",
"body-parser": "^1.20.2",
"cors": "^2.8.5",
"express": "^4.18.2",
"husky": "^9.0.11",
"prettier": "3.2.5",
"prettier-plugin-svelte": "^3.2.3",
"rollup-plugin-css-only": "^4.5.2",
"sass": "^1.71.1",
"svelte": "^4.2.11",
"svelte-check": "^3.4.6",
"tslib": "^2.6.0",
"typescript": "^5.0.2",
"vite": "^5.3.0",
"vitest": "^0.34.6"
}
}