-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
86 lines (86 loc) · 3.13 KB
/
package.json
File metadata and controls
86 lines (86 loc) · 3.13 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"name": "@twistezo/react-text-scramble",
"version": "2.1.1",
"author": "twistezo",
"license": "MIT",
"description": "React text scramble effect",
"keywords": [
"text",
"scramble",
"effect",
"react",
"typescript"
],
"homepage": "https://github.com/twistezo/react-text-scramble",
"repository": {
"type": "git",
"url": "git+https://github.com/twistezo/react-text-scramble.git"
},
"bugs": {
"url": "https://github.com/twistezo/react-text-scramble/issues"
},
"publishConfig": {
"access": "public"
},
"type": "module",
"exports": {
".": {
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs",
"types": "./dist/index.d.ts"
},
"./vanilla": {
"import": "./dist/esm/vanilla.mjs",
"require": "./dist/cjs/vanilla.cjs",
"types": "./dist/vanilla.d.ts"
}
},
"main": "dist/cjs/index.cjs",
"module": "dist/esm/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"prebuild": "rm -rf dist",
"build:react:esm": "bun build src/index.ts --outdir dist/esm --format esm --external react --external react-dom",
"build:react:cjs": "bun build src/index.ts --outdir dist/cjs --format cjs --external react --external react-dom",
"build:react": "bun run build:react:esm && bun run build:react:cjs && mv dist/cjs/index.js dist/cjs/index.cjs && mv dist/esm/index.js dist/esm/index.mjs",
"build:vanilla:esm": "bun build src/vanilla.ts --format esm --outfile dist/esm/vanilla.js",
"build:vanilla:cjs": "bun build src/vanilla.ts --format cjs --outfile dist/cjs/vanilla.js",
"build:vanilla": "bun run build:vanilla:esm && bun run build:vanilla:cjs && mv dist/cjs/vanilla.js dist/cjs/vanilla.cjs && mv dist/esm/vanilla.js dist/esm/vanilla.mjs",
"build:types": "bun run tsc --emitDeclarationOnly",
"build": "bun run build:react && bun run build:vanilla && bun run build:types",
"health-check": "bun run lint && bun run typecheck && bun run test && bun run build",
"lint": "bun run eslint src tests --ext cjs,mjs,ts,tsx",
"typecheck": "bun run tsc --noEmit",
"test": "bun test && bun run test:integration",
"test:integration": "bun run build && for f in tests/integration/*; do bun run $f; done",
"prepublishOnly": "bun run test && bun run lint && bun run typecheck && bun run build",
"example:react": "cd example/react && bun install && bun run dev",
"example:vanilla": "bun run example/vanilla/index.html"
},
"peerDependencies": {
"react": ">=16.8",
"typescript": ">=4.7"
},
"devDependencies": {
"@eslint/js": "^9.39.2",
"@happy-dom/global-registrator": "^17.4.4",
"@testing-library/react": "^16.2.0",
"@types/bun": "latest",
"@types/react": "^18.3.0",
"@types/react-dom": "^18.3.0",
"eslint": "^9.39.2",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-perfectionist": "^5.4.0",
"eslint-plugin-prettier": "^5.5.5",
"eslint-plugin-react": "^7.37.0",
"eslint-plugin-react-hooks": "^5.0.0",
"globals": "^16.2.0",
"prettier": "^3.8.1",
"react": "^18.3.0",
"react-dom": "^18.3.0",
"typescript-eslint": "^8.53.1"
}
}