UNPKG

4.33 kBJSONView Raw
1{
2 "name": "ink",
3 "version": "4.0.0",
4 "description": "React for CLI",
5 "license": "MIT",
6 "repository": "vadimdemedes/ink",
7 "author": {
8 "name": "Vadim Demedes",
9 "email": "vadimdemedes@hey.com",
10 "url": "https://github.com/vadimdemedes"
11 },
12 "type": "module",
13 "exports": {
14 "types": "./build/index.d.ts",
15 "default": "./build/index.js"
16 },
17 "engines": {
18 "node": ">=14.16"
19 },
20 "scripts": {
21 "build": "tsc",
22 "prepare": "npm run build",
23 "test": "tsc --noEmit && xo && FORCE_COLOR=true ava",
24 "example": "NODE_NO_WARNINGS=1 node --loader ts-node/esm",
25 "benchmark": "NODE_NO_WARNINGS=1 node --loader ts-node/esm"
26 },
27 "files": [
28 "build"
29 ],
30 "keywords": [
31 "react",
32 "cli",
33 "jsx",
34 "stdout",
35 "components",
36 "command-line",
37 "preact",
38 "redux",
39 "print",
40 "render",
41 "colors",
42 "text"
43 ],
44 "dependencies": {
45 "ansi-escapes": "^6.0.0",
46 "auto-bind": "^5.0.1",
47 "chalk": "^5.2.0",
48 "cli-boxes": "^3.0.0",
49 "cli-cursor": "^4.0.0",
50 "cli-truncate": "^3.1.0",
51 "code-excerpt": "^4.0.0",
52 "indent-string": "^5.0.0",
53 "is-ci": "^3.0.1",
54 "lodash-es": "^4.17.21",
55 "patch-console": "^2.0.0",
56 "react-reconciler": "^0.29.0",
57 "scheduler": "^0.23.0",
58 "signal-exit": "^3.0.7",
59 "slice-ansi": "^5.0.0",
60 "stack-utils": "^2.0.6",
61 "string-width": "^5.1.2",
62 "type-fest": "^0.12.0",
63 "widest-line": "^4.0.1",
64 "wrap-ansi": "^8.1.0",
65 "ws": "^8.12.0",
66 "yoga-layout-prebuilt": "^1.9.6"
67 },
68 "devDependencies": {
69 "@faker-js/faker": "^7.6.0",
70 "@sindresorhus/tsconfig": "3.0.1",
71 "@types/benchmark": "^2.1.2",
72 "@types/is-ci": "^2.0.0",
73 "@types/lodash-es": "^4.17.6",
74 "@types/ms": "^0.7.31",
75 "@types/node": "*",
76 "@types/react": "^18.0.0",
77 "@types/react-reconciler": "^0.28.2",
78 "@types/scheduler": "^0.16.2",
79 "@types/signal-exit": "^3.0.0",
80 "@types/sinon": "^9.0.4",
81 "@types/slice-ansi": "^4.0.0",
82 "@types/stack-utils": "^1.0.1",
83 "@types/wrap-ansi": "^3.0.0",
84 "@types/ws": "^8.5.4",
85 "@vdemedes/prettier-config": "^1.0.1",
86 "ava": "^5.1.1",
87 "boxen": "^7.0.1",
88 "delay": "^5.0.0",
89 "eslint-config-xo-react": "^0.27.0",
90 "eslint-plugin-react": "^7.32.2",
91 "eslint-plugin-react-hooks": "^4.6.0",
92 "ms": "^2.1.3",
93 "node-pty": "0.10.1",
94 "p-queue": "^7.3.4",
95 "prettier": "^2.0.4",
96 "react": "^18.0.0",
97 "react-devtools-core": "^4.19.1",
98 "sinon": "^12.0.1",
99 "strip-ansi": "^6.0.0",
100 "ts-node": "10.9.1",
101 "typescript": "^4.9.4",
102 "xo": "^0.53.0"
103 },
104 "peerDependencies": {
105 "@types/react": ">=18.0.0",
106 "react": ">=18.0.0",
107 "react-devtools-core": "^4.19.1"
108 },
109 "peerDependenciesMeta": {
110 "@types/react": {
111 "optional": true
112 },
113 "react-devtools-core": {
114 "optional": true
115 }
116 },
117 "ava": {
118 "workerThreads": false,
119 "files": [
120 "test/**/*",
121 "!test/helpers/**/*",
122 "!test/fixtures/**/*"
123 ],
124 "extensions": {
125 "ts": "module",
126 "tsx": "module"
127 },
128 "nodeArguments": [
129 "--loader=ts-node/esm"
130 ]
131 },
132 "xo": {
133 "extends": [
134 "xo-react"
135 ],
136 "plugins": [
137 "react"
138 ],
139 "prettier": true,
140 "rules": {
141 "react/no-unescaped-entities": "off",
142 "react/state-in-constructor": "off",
143 "react/jsx-indent": "off",
144 "react/prop-types": "off",
145 "unicorn/import-index": "off",
146 "import/no-useless-path-segments": "off",
147 "react-hooks/exhaustive-deps": "off",
148 "complexity": "off"
149 },
150 "overrides": [
151 {
152 "files": [
153 "src/**/*.{ts,tsx}",
154 "test/**/*.{ts,tsx}"
155 ],
156 "rules": {
157 "no-unused-expressions": "off",
158 "camelcase": [
159 "error",
160 {
161 "allow": [
162 "^unstable__",
163 "^internal_"
164 ]
165 }
166 ],
167 "unicorn/filename-case": "off",
168 "react/default-props-match-prop-types": "off",
169 "unicorn/prevent-abbreviations": "off",
170 "react/require-default-props": "off",
171 "react/jsx-curly-brace-presence": "off",
172 "@typescript-eslint/no-empty-function": "off",
173 "@typescript-eslint/promise-function-async": "warn",
174 "@typescript-eslint/explicit-function-return": "off",
175 "@typescript-eslint/explicit-function-return-type": "off",
176 "dot-notation": "off",
177 "react/boolean-prop-naming": "off"
178 }
179 },
180 {
181 "files": [
182 "examples/**/*.{ts,tsx}",
183 "benchmark/**/*.{ts,tsx}"
184 ],
185 "rules": {
186 "import/no-unassigned-import": "off"
187 }
188 }
189 ]
190 },
191 "prettier": "@vdemedes/prettier-config"
192}