|
3 | 3 | "version": "16.2.0-beta.11", |
4 | 4 | "protocolVersion": "2.0.0", |
5 | 5 | "description": "React on Rails Pro Node Renderer for server-side rendering", |
6 | | - "type": "module", |
7 | | - "main": "lib/ReactOnRailsProNodeRenderer.js", |
8 | | - "scripts": { |
9 | | - "build": "yarn run clean && tsc --project src", |
10 | | - "build-watch": "yarn run clean && tsc --project src --watch", |
11 | | - "clean": "rm -rf ./lib", |
12 | | - "test": "jest tests", |
13 | | - "type-check": "tsc --project src --noEmit --noErrorTruncation", |
14 | | - "prepack": "yarn run build", |
15 | | - "prepare": "yarn run build", |
16 | | - "prepublishOnly": "yarn run build", |
17 | | - "yalc:publish": "yalc publish", |
18 | | - "yalc": "yalc" |
| 6 | + "directories": { |
| 7 | + "doc": "docs" |
19 | 8 | }, |
20 | | - "repository": { |
21 | | - "type": "git", |
22 | | - "url": "git+https://github.com/shakacode/react_on_rails.git" |
| 9 | + "exports": { |
| 10 | + ".": { |
| 11 | + "types": "./lib/ReactOnRailsProNodeRenderer.d.ts", |
| 12 | + "default": "./lib/ReactOnRailsProNodeRenderer.js" |
| 13 | + }, |
| 14 | + "./integrations/*": { |
| 15 | + "types": "./lib/integrations/*.d.ts", |
| 16 | + "default": "./lib/integrations/*.js" |
| 17 | + }, |
| 18 | + "./package.json": "./package.json" |
| 19 | + }, |
| 20 | + "resolutions": { |
| 21 | + "sentry-testkit/body-parser": "npm:[email protected]", |
| 22 | + "sentry-testkit/express": "npm:[email protected]" |
23 | 23 | }, |
24 | | - "keywords": [ |
25 | | - "react", |
26 | | - "react-on-rails", |
27 | | - "node-renderer", |
28 | | - "server-side-rendering", |
29 | | - "ssr" |
30 | | - ], |
31 | | - |
32 | | - "license": "UNLICENSED", |
33 | 24 | "dependencies": { |
34 | 25 | "@fastify/formbody": "^7.4.0 || ^8.0.2", |
35 | 26 | "@fastify/multipart": "^8.3.1 || ^9.0.3", |
36 | 27 | "fastify": "^4.29.0 || ^5.2.1", |
37 | 28 | "fs-extra": "^11.2.0", |
38 | 29 | "jsonwebtoken": "^9.0.2", |
39 | 30 | "lockfile": "^1.0.4", |
40 | | - "pino": "^9.0.0", |
41 | | - "pino-pretty": "^13.0.0", |
42 | | - "react-on-rails": "16.2.0-beta.11", |
43 | | - "react-on-rails-pro": "16.2.0-beta.11" |
| 31 | + "pino": "^9.0.0" |
44 | 32 | }, |
45 | 33 | "devDependencies": { |
| 34 | + "@babel/core": "^7.26.10", |
| 35 | + "@babel/eslint-parser": "^7.27.0", |
| 36 | + "@babel/preset-react": "^7.26.3", |
46 | 37 | "@honeybadger-io/js": "^6.10.1", |
47 | | - "@jest/globals": "^29.7.0", |
48 | 38 | "@sentry/node": "^7.120.0", |
49 | | - "@sentry/types": "^7.120.0", |
50 | | - "@tsconfig/node14": "^14.1.2", |
51 | 39 | "@types/fs-extra": "^11.0.4", |
| 40 | + "@types/jest": "^29.5.12", |
52 | 41 | "@types/jsonwebtoken": "^9.0.10", |
53 | 42 | "@types/lockfile": "^1.0.4", |
54 | | - "@types/node": "^20.0.0", |
55 | 43 | "@types/touch": "^3.1.5", |
| 44 | + "babel-jest": "^29.7.0", |
56 | 45 | "form-auto-content": "^3.2.1", |
57 | 46 | "form-data": "^4.0.1", |
| 47 | + "jsdom": "^16.5.0", |
58 | 48 | "node-html-parser": "^7.0.1", |
| 49 | + "nps": "^5.9.12", |
| 50 | + "pino-pretty": "^13.0.0", |
| 51 | + "react-on-rails": "./packages/react-on-rails", |
59 | 52 | "redis": "^5.0.1", |
60 | 53 | "sentry-testkit": "^5.0.6", |
61 | | - "touch": "^3.1.0" |
| 54 | + "touch": "^3.1.0", |
| 55 | + "typescript": "^5.4.3" |
62 | 56 | }, |
63 | 57 | "peerDependencies": { |
64 | 58 | "@honeybadger-io/js": ">=4.0.0", |
65 | 59 | "@sentry/node": ">=5.0.0 <9.0.0", |
66 | | - "@sentry/tracing": ">=5.0.0", |
67 | | - "react": ">= 16", |
68 | | - "react-dom": ">= 16" |
| 60 | + "@sentry/tracing": ">=5.0.0" |
69 | 61 | }, |
70 | 62 | "peerDependenciesMeta": { |
71 | 63 | "@honeybadger-io/js": { |
|
78 | 70 | "optional": true |
79 | 71 | } |
80 | 72 | }, |
81 | | - "files": [ |
82 | | - "lib/**/*.js", |
83 | | - "lib/**/*.d.ts" |
| 73 | + "scripts": { |
| 74 | + "build": "yarn run clean && yarn run tsc --project src/tsconfig.json", |
| 75 | + "build-watch": "yarn run clean && yarn run tsc --watch --project src/tsconfig.json", |
| 76 | + "clean": "rm -rf ./lib", |
| 77 | + "ci": "jest --ci --runInBand --reporters=default --reporters=jest-junit", |
| 78 | + "developing": "nps node-renderer.debug", |
| 79 | + "test": "jest tests", |
| 80 | + "type-check": "yarn run tsc --noEmit --noErrorTruncation --project src/tsconfig.json", |
| 81 | + "prepack": "nps build.prepack", |
| 82 | + "prepare": "nps build.prepack", |
| 83 | + "prepublishOnly": "yarn run build", |
| 84 | + "yalc:publish": "yalc publish", |
| 85 | + "yalc": "yalc" |
| 86 | + }, |
| 87 | + "repository": { |
| 88 | + "type": "git", |
| 89 | + "url": "git+https://github.com/shakacode/react_on_rails.git" |
| 90 | + }, |
| 91 | + "keywords": [ |
| 92 | + "react", |
| 93 | + "webpack", |
| 94 | + "JavaScript", |
| 95 | + "Ruby", |
| 96 | + "on", |
| 97 | + "Rails" |
84 | 98 | ], |
| 99 | + |
| 100 | + "license": "UNLICENSED", |
85 | 101 | "bugs": { |
86 | 102 | "url": "https://github.com/shakacode/react_on_rails/issues" |
87 | 103 | }, |
88 | | - "homepage": "https://github.com/shakacode/react_on_rails#readme" |
| 104 | + "homepage": "https://github.com/shakacode/react_on_rails/tree/master/packages/react-on-rails-pro-node-renderer#readme", |
| 105 | + "jest": { |
| 106 | + "clearMocks": true, |
| 107 | + "moduleNameMapper": { |
| 108 | + "^(\\.{1,2}/.*)\\.js$": "$1" |
| 109 | + }, |
| 110 | + "resetModules": true, |
| 111 | + "resetMocks": true, |
| 112 | + "roots": [ |
| 113 | + "." |
| 114 | + ], |
| 115 | + "setupFiles": [ |
| 116 | + "./tests/helper.ts" |
| 117 | + ], |
| 118 | + "testEnvironment": "node", |
| 119 | + "transform": { |
| 120 | + "^.+\\.[jt]sx?$": "babel-jest" |
| 121 | + } |
| 122 | + }, |
| 123 | + "husky": { |
| 124 | + "hooks": { |
| 125 | + "pre-commit": "yalc check" |
| 126 | + } |
| 127 | + }, |
| 128 | + "packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" |
89 | 129 | } |
0 commit comments