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/index.d.cts CHANGED
@@ -4,9 +4,11 @@
4
4
  * @packageDocumentation
5
5
  */
6
6
  /**
7
- * The rn-doctor tool version. Kept in sync with package.json by release-it.
7
+ * The rn-doctor tool version. Read from package.json and inlined into the
8
+ * build, so `prepublishOnly` (which runs after release-it bumps the version)
9
+ * always ships the released number.
8
10
  */
9
- declare const VERSION = "0.0.0";
11
+ declare const VERSION: string;
10
12
 
11
13
  /**
12
14
  * Core types for the enrichment engine.
package/dist/index.d.ts CHANGED
@@ -4,9 +4,11 @@
4
4
  * @packageDocumentation
5
5
  */
6
6
  /**
7
- * The rn-doctor tool version. Kept in sync with package.json by release-it.
7
+ * The rn-doctor tool version. Read from package.json and inlined into the
8
+ * build, so `prepublishOnly` (which runs after release-it bumps the version)
9
+ * always ships the released number.
8
10
  */
9
- declare const VERSION = "0.0.0";
11
+ declare const VERSION: string;
10
12
 
11
13
  /**
12
14
  * Core types for the enrichment engine.
package/dist/index.js CHANGED
@@ -1,5 +1,85 @@
1
+ // package.json
2
+ var package_default = {
3
+ name: "react-native-doctor-ci",
4
+ version: "0.1.2",
5
+ description: "Policy-as-code CI gate for React Native dependency health: fail PRs that add abandoned, non-New-Architecture, or npm-deprecated dependencies.",
6
+ keywords: [
7
+ "react-native",
8
+ "ci",
9
+ "dependencies",
10
+ "new-architecture",
11
+ "policy",
12
+ "lint",
13
+ "github-actions",
14
+ "sarif"
15
+ ],
16
+ license: "MIT",
17
+ author: "Amrith Vengalath",
18
+ repository: {
19
+ type: "git",
20
+ url: "git+https://github.com/AmrithVengalath/react-native-doctor-ci.git"
21
+ },
22
+ homepage: "https://github.com/AmrithVengalath/react-native-doctor-ci#readme",
23
+ bugs: "https://github.com/AmrithVengalath/react-native-doctor-ci/issues",
24
+ type: "module",
25
+ bin: {
26
+ "rn-doctor": "./dist/cli.js"
27
+ },
28
+ exports: {
29
+ ".": {
30
+ types: "./dist/index.d.ts",
31
+ import: "./dist/index.js",
32
+ require: "./dist/index.cjs"
33
+ }
34
+ },
35
+ main: "./dist/index.cjs",
36
+ module: "./dist/index.js",
37
+ types: "./dist/index.d.ts",
38
+ files: [
39
+ "dist"
40
+ ],
41
+ engines: {
42
+ node: ">=20"
43
+ },
44
+ packageManager: "pnpm@11.11.0",
45
+ publishConfig: {
46
+ access: "public",
47
+ provenance: true
48
+ },
49
+ scripts: {
50
+ typecheck: "tsc --noEmit",
51
+ lint: "eslint .",
52
+ "lint:fix": "eslint . --fix",
53
+ test: "vitest run",
54
+ "test:watch": "vitest",
55
+ "test:cov": "vitest run --coverage",
56
+ build: "tsup",
57
+ dev: "tsup --watch",
58
+ prepublishOnly: "pnpm run build",
59
+ release: "release-it"
60
+ },
61
+ devDependencies: {
62
+ "@eslint/js": "^10.0.1",
63
+ "@release-it/conventional-changelog": "^11.0.1",
64
+ "@types/node": "^20.19.0",
65
+ "@vitest/coverage-v8": "^4.1.10",
66
+ ajv: "^8.20.0",
67
+ eslint: "^10.7.0",
68
+ jiti: "^2.7.0",
69
+ msw: "^2.15.0",
70
+ "release-it": "^20.2.1",
71
+ tsup: "^8.5.1",
72
+ typescript: "6.0.3",
73
+ "typescript-eslint": "^8.63.0",
74
+ vitest: "^4.1.10"
75
+ },
76
+ dependencies: {
77
+ yaml: "^2.9.0"
78
+ }
79
+ };
80
+
1
81
  // src/version.ts
2
- var VERSION = "0.0.0";
82
+ var VERSION = package_default.version;
3
83
 
4
84
  // src/cache.ts
5
85
  import * as fs from "fs";
@@ -92,7 +172,7 @@ async function fetchJson(url, options = {}) {
92
172
  try {
93
173
  const response = await fetch(url, {
94
174
  headers: {
95
- "user-agent": "rn-doctor/0.0.0",
175
+ "user-agent": `rn-doctor/${VERSION}`,
96
176
  ...options.headers
97
177
  },
98
178
  signal: controller.signal