react-native-doctor-ci 0.1.0 → 0.1.2

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/dist/cli.js CHANGED
@@ -94,6 +94,89 @@ async function mapWithConcurrency(items, fn, concurrency = 8) {
94
94
  return results;
95
95
  }
96
96
 
97
+ // package.json
98
+ var package_default = {
99
+ name: "react-native-doctor-ci",
100
+ version: "0.1.2",
101
+ description: "Policy-as-code CI gate for React Native dependency health: fail PRs that add abandoned, non-New-Architecture, or npm-deprecated dependencies.",
102
+ keywords: [
103
+ "react-native",
104
+ "ci",
105
+ "dependencies",
106
+ "new-architecture",
107
+ "policy",
108
+ "lint",
109
+ "github-actions",
110
+ "sarif"
111
+ ],
112
+ license: "MIT",
113
+ author: "Amrith Vengalath",
114
+ repository: {
115
+ type: "git",
116
+ url: "git+https://github.com/AmrithVengalath/react-native-doctor-ci.git"
117
+ },
118
+ homepage: "https://github.com/AmrithVengalath/react-native-doctor-ci#readme",
119
+ bugs: "https://github.com/AmrithVengalath/react-native-doctor-ci/issues",
120
+ type: "module",
121
+ bin: {
122
+ "rn-doctor": "./dist/cli.js"
123
+ },
124
+ exports: {
125
+ ".": {
126
+ types: "./dist/index.d.ts",
127
+ import: "./dist/index.js",
128
+ require: "./dist/index.cjs"
129
+ }
130
+ },
131
+ main: "./dist/index.cjs",
132
+ module: "./dist/index.js",
133
+ types: "./dist/index.d.ts",
134
+ files: [
135
+ "dist"
136
+ ],
137
+ engines: {
138
+ node: ">=20"
139
+ },
140
+ packageManager: "pnpm@11.11.0",
141
+ publishConfig: {
142
+ access: "public",
143
+ provenance: true
144
+ },
145
+ scripts: {
146
+ typecheck: "tsc --noEmit",
147
+ lint: "eslint .",
148
+ "lint:fix": "eslint . --fix",
149
+ test: "vitest run",
150
+ "test:watch": "vitest",
151
+ "test:cov": "vitest run --coverage",
152
+ build: "tsup",
153
+ dev: "tsup --watch",
154
+ prepublishOnly: "pnpm run build",
155
+ release: "release-it"
156
+ },
157
+ devDependencies: {
158
+ "@eslint/js": "^10.0.1",
159
+ "@release-it/conventional-changelog": "^11.0.1",
160
+ "@types/node": "^20.19.0",
161
+ "@vitest/coverage-v8": "^4.1.10",
162
+ ajv: "^8.20.0",
163
+ eslint: "^10.7.0",
164
+ jiti: "^2.7.0",
165
+ msw: "^2.15.0",
166
+ "release-it": "^20.2.1",
167
+ tsup: "^8.5.1",
168
+ typescript: "6.0.3",
169
+ "typescript-eslint": "^8.63.0",
170
+ vitest: "^4.1.10"
171
+ },
172
+ dependencies: {
173
+ yaml: "^2.9.0"
174
+ }
175
+ };
176
+
177
+ // src/version.ts
178
+ var VERSION = package_default.version;
179
+
97
180
  // src/http.ts
98
181
  async function fetchJson(url, options = {}) {
99
182
  const controller = new AbortController();
@@ -102,7 +185,7 @@ async function fetchJson(url, options = {}) {
102
185
  try {
103
186
  const response = await fetch(url, {
104
187
  headers: {
105
- "user-agent": "rn-doctor/0.0.0",
188
+ "user-agent": `rn-doctor/${VERSION}`,
106
189
  ...options.headers
107
190
  },
108
191
  signal: controller.signal
@@ -1200,9 +1283,6 @@ function renderPretty(report, options) {
1200
1283
  `;
1201
1284
  }
1202
1285
 
1203
- // src/version.ts
1204
- var VERSION = "0.0.0";
1205
-
1206
1286
  // src/report-sarif.ts
1207
1287
  var INFORMATION_URI = "https://www.npmjs.com/package/react-native-doctor-ci";
1208
1288
  var RULE_IDS = [