-
Notifications
You must be signed in to change notification settings - Fork 17
/
package.json
105 lines (105 loc) · 2.93 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
{
"name": "altcha",
"description": "GDPR compliant, self-hosted CAPTCHA alternative.",
"version": "1.0.7",
"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",
"dist_plugins",
"postinstall.js"
],
"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"
},
"./analytics": {
"import": "./dist_plugins/analytics.js",
"require": "./dist_plugins/analytics.umd.cjs"
},
"./obfuscation": {
"import": "./dist_plugins/obfuscation.js",
"require": "./dist_plugins/obfuscation.umd.cjs"
},
"./upload": {
"import": "./dist_plugins/upload.js",
"require": "./dist_plugins/upload.umd.cjs"
},
"./altcha.ext": {
"import": "./dist_external/altcha.js",
"require": "./dist_external/altcha.umd.cjs"
},
"./worker": {
"import": "./dist_external/worker.js",
"require": "./dist_external/worker.js"
}
},
"scripts": {
"dev": "vite",
"build": "npm run build:bundle && npm run build:external && npm run build:plugins",
"build:bundle": "rimraf dist && vite build && cp src/declarations.d.ts dist/altcha.d.ts",
"build:external": "rimraf dist_external && vite build -c vite.external.config.ts && cp src/declarations.d.ts dist_external/altcha.d.ts",
"build:plugins": "rimraf dist_plugins && find src/plugins -type f -name '*.ts' | xargs -I {} vite build -c vite.plugins.config.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",
"postinstall": "node postinstall.js"
},
"devDependencies": {
"@ovx/svelte": "4.2.19",
"@playwright/test": "^1.46.1",
"@sveltejs/vite-plugin-svelte": "^3.1.2",
"@tsconfig/svelte": "^5.0.4",
"@types/node": "^20.16.3",
"husky": "^9.1.5",
"prettier": "3.2.5",
"prettier-plugin-svelte": "^3.2.6",
"rollup-plugin-css-only": "^4.5.2",
"sass": "^1.77.8",
"svelte": "^4.2.19",
"svelte-check": "^3.8.6",
"tslib": "^2.7.0",
"typescript": "^5.5.4",
"vite": "^5.4.2",
"vitest": "^0.34.6"
},
"dependencies": {
"@altcha/crypto": "^0.0.1"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "4.18.0"
}
}