-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpackage.json
More file actions
70 lines (70 loc) · 2.09 KB
/
Copy pathpackage.json
File metadata and controls
70 lines (70 loc) · 2.09 KB
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
{
"private": true,
"name": "@denysvuika/preact-translate",
"description": "Minimalistic translate (i18n) library for Preact",
"version": "0.6.0",
"author": {
"name": "Denys Vuika",
"email": "denys.vuika@gmail.com",
"url": "https://denys.dev"
},
"license": "MIT",
"homepage": "https://github.com/DenysVuika/preact-translate",
"main": "dist/preact-translate.cjs.js",
"module": "dist/preact-translate.esm.js",
"browser": "dist/preact-translate.umd.js",
"scripts": {
"start": "npm run build.lib && if-env NODE_ENV=production && npm run -s serve || npm run -s dev",
"build": "preact build",
"serve": "preact build && preact serve",
"dev": "preact watch",
"lint": "biome check",
"build.lib": "rollup -c && npm run copy:modules && cp -r README.md dist",
"build.lib.dev": "rollup -c -w",
"copy:modules": "rm -rf node_modules/@denysvuika && mkdir -p node_modules/@denysvuika/preact-translate && cp -r dist/* node_modules/@denysvuika/preact-translate",
"size": "size-limit",
"test": "jest --coverage",
"test:watch": "jest --watchAll"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@rollup/plugin-terser": "^0.4.4",
"@size-limit/esbuild": "^11.2.0",
"@size-limit/esbuild-why": "^11.2.0",
"@size-limit/preset-small-lib": "^11.2.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/preact": "^3.2.4",
"@types/jest": "^29.5.14",
"@types/node": "^22.15.21",
"if-env": "^1.0.4",
"jest": "^29.7.0",
"jest-preset-preact": "^4.1.1",
"preact-cli": "^3.5.1",
"rollup": "^2.79.2",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-esbuild": "^6.2.1",
"size-limit": "^11.2.0",
"typescript": "^4.9.5"
},
"dependencies": {
"preact": "^10.13.0",
"tslib": "^2.8.1"
},
"size-limit": [
{
"path": "dist/preact-translate.cjs.js",
"limit": "7 KB"
},
{
"path": "dist/preact-translate.esm.js",
"limit": "5.5 KB"
},
{
"path": "dist/preact-translate.umd.js",
"limit": "6.5 KB"
}
],
"jest": {
"preset": "jest-preset-preact"
}
}