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/README.md CHANGED
@@ -40,7 +40,7 @@ jobs:
40
40
  with:
41
41
  fetch-depth: 0 # required for changed-only (merge-base diff)
42
42
 
43
- - uses: AmrithVengalath/react-native-doctor-ci/action@v0.1.0
43
+ - uses: AmrithVengalath/react-native-doctor-ci/action@v0.1.2
44
44
  with:
45
45
  changed-only: "true"
46
46
  base: origin/${{ github.base_ref }}
@@ -61,9 +61,9 @@ npx --yes --package react-native-doctor-ci rn-doctor
61
61
  ## GitHub Action reference
62
62
 
63
63
  ```yaml
64
- - uses: AmrithVengalath/react-native-doctor-ci/action@v0.1.0
64
+ - uses: AmrithVengalath/react-native-doctor-ci/action@v0.1.2
65
65
  with:
66
- version: "0.1.0" # npm version/dist-tag to run (default: latest)
66
+ version: "0.1.2" # npm version/dist-tag to run (default: latest)
67
67
  policy: ".rn-doctor.yml" # policy file path (default: auto-detect)
68
68
  changed-only: "true" # only deps added/changed vs base (default: "false")
69
69
  base: origin/main # base ref for changed-only (default: origin/main)
package/dist/cli.cjs CHANGED
@@ -117,6 +117,89 @@ async function mapWithConcurrency(items, fn, concurrency = 8) {
117
117
  return results;
118
118
  }
119
119
 
120
+ // package.json
121
+ var package_default = {
122
+ name: "react-native-doctor-ci",
123
+ version: "0.1.2",
124
+ description: "Policy-as-code CI gate for React Native dependency health: fail PRs that add abandoned, non-New-Architecture, or npm-deprecated dependencies.",
125
+ keywords: [
126
+ "react-native",
127
+ "ci",
128
+ "dependencies",
129
+ "new-architecture",
130
+ "policy",
131
+ "lint",
132
+ "github-actions",
133
+ "sarif"
134
+ ],
135
+ license: "MIT",
136
+ author: "Amrith Vengalath",
137
+ repository: {
138
+ type: "git",
139
+ url: "git+https://github.com/AmrithVengalath/react-native-doctor-ci.git"
140
+ },
141
+ homepage: "https://github.com/AmrithVengalath/react-native-doctor-ci#readme",
142
+ bugs: "https://github.com/AmrithVengalath/react-native-doctor-ci/issues",
143
+ type: "module",
144
+ bin: {
145
+ "rn-doctor": "./dist/cli.js"
146
+ },
147
+ exports: {
148
+ ".": {
149
+ types: "./dist/index.d.ts",
150
+ import: "./dist/index.js",
151
+ require: "./dist/index.cjs"
152
+ }
153
+ },
154
+ main: "./dist/index.cjs",
155
+ module: "./dist/index.js",
156
+ types: "./dist/index.d.ts",
157
+ files: [
158
+ "dist"
159
+ ],
160
+ engines: {
161
+ node: ">=20"
162
+ },
163
+ packageManager: "pnpm@11.11.0",
164
+ publishConfig: {
165
+ access: "public",
166
+ provenance: true
167
+ },
168
+ scripts: {
169
+ typecheck: "tsc --noEmit",
170
+ lint: "eslint .",
171
+ "lint:fix": "eslint . --fix",
172
+ test: "vitest run",
173
+ "test:watch": "vitest",
174
+ "test:cov": "vitest run --coverage",
175
+ build: "tsup",
176
+ dev: "tsup --watch",
177
+ prepublishOnly: "pnpm run build",
178
+ release: "release-it"
179
+ },
180
+ devDependencies: {
181
+ "@eslint/js": "^10.0.1",
182
+ "@release-it/conventional-changelog": "^11.0.1",
183
+ "@types/node": "^20.19.0",
184
+ "@vitest/coverage-v8": "^4.1.10",
185
+ ajv: "^8.20.0",
186
+ eslint: "^10.7.0",
187
+ jiti: "^2.7.0",
188
+ msw: "^2.15.0",
189
+ "release-it": "^20.2.1",
190
+ tsup: "^8.5.1",
191
+ typescript: "6.0.3",
192
+ "typescript-eslint": "^8.63.0",
193
+ vitest: "^4.1.10"
194
+ },
195
+ dependencies: {
196
+ yaml: "^2.9.0"
197
+ }
198
+ };
199
+
200
+ // src/version.ts
201
+ var VERSION = package_default.version;
202
+
120
203
  // src/http.ts
121
204
  async function fetchJson(url, options = {}) {
122
205
  const controller = new AbortController();
@@ -125,7 +208,7 @@ async function fetchJson(url, options = {}) {
125
208
  try {
126
209
  const response = await fetch(url, {
127
210
  headers: {
128
- "user-agent": "rn-doctor/0.0.0",
211
+ "user-agent": `rn-doctor/${VERSION}`,
129
212
  ...options.headers
130
213
  },
131
214
  signal: controller.signal
@@ -1223,9 +1306,6 @@ function renderPretty(report, options) {
1223
1306
  `;
1224
1307
  }
1225
1308
 
1226
- // src/version.ts
1227
- var VERSION = "0.0.0";
1228
-
1229
1309
  // src/report-sarif.ts
1230
1310
  var INFORMATION_URI = "https://www.npmjs.com/package/react-native-doctor-ci";
1231
1311
  var RULE_IDS = [