react-presenter 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "react-presenter",
3
+ "version": "0.1.0",
4
+ "description": "Clean presentation logic for React and Next.js applications with TypeScript presenters. The core is framework-agnostic and also works with NestJS, Angular, Vue.js, and Node.js.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "sideEffects": false,
8
+ "main": "./dist/index.cjs",
9
+ "module": "./dist/index.js",
10
+ "types": "./dist/index.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "import": "./dist/index.js",
15
+ "require": "./dist/index.cjs"
16
+ },
17
+ "./react": {
18
+ "types": "./dist/react.d.ts",
19
+ "import": "./dist/react.js",
20
+ "require": "./dist/react.cjs"
21
+ },
22
+ "./package.json": "./package.json"
23
+ },
24
+ "files": [
25
+ "dist"
26
+ ],
27
+ "scripts": {
28
+ "build": "tsup && node scripts/add-use-client.mjs",
29
+ "dev": "tsup --watch",
30
+ "test": "vitest run",
31
+ "test:watch": "vitest",
32
+ "typecheck": "tsc --noEmit",
33
+ "prepublishOnly": "npm run build && npm run test"
34
+ },
35
+ "peerDependencies": {
36
+ "react": ">=17"
37
+ },
38
+ "peerDependenciesMeta": {
39
+ "react": {
40
+ "optional": true
41
+ }
42
+ },
43
+ "devDependencies": {
44
+ "@testing-library/react": "^16.3.3",
45
+ "@types/node": "^20.14.0",
46
+ "@types/react": "^18.3.0",
47
+ "jsdom": "^30.0.1",
48
+ "react": "^18.3.0",
49
+ "react-dom": "^18.3.1",
50
+ "tsup": "^8.2.4",
51
+ "typescript": "^5.5.4",
52
+ "vitest": "^2.0.5"
53
+ },
54
+ "keywords": [
55
+ "react",
56
+ "nextjs",
57
+ "nestjs",
58
+ "angular",
59
+ "presenter",
60
+ "decorator",
61
+ "view-model",
62
+ "serializer",
63
+ "presentation",
64
+ "view-present",
65
+ "ts-presenter"
66
+ ],
67
+ "engines": {
68
+ "node": ">=18"
69
+ }
70
+ }