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 +3 -3
- package/dist/cli.cjs +84 -4
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +84 -4
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +82 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +82 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -63,8 +63,88 @@ __export(index_exports, {
|
|
|
63
63
|
});
|
|
64
64
|
module.exports = __toCommonJS(index_exports);
|
|
65
65
|
|
|
66
|
+
// package.json
|
|
67
|
+
var package_default = {
|
|
68
|
+
name: "react-native-doctor-ci",
|
|
69
|
+
version: "0.1.2",
|
|
70
|
+
description: "Policy-as-code CI gate for React Native dependency health: fail PRs that add abandoned, non-New-Architecture, or npm-deprecated dependencies.",
|
|
71
|
+
keywords: [
|
|
72
|
+
"react-native",
|
|
73
|
+
"ci",
|
|
74
|
+
"dependencies",
|
|
75
|
+
"new-architecture",
|
|
76
|
+
"policy",
|
|
77
|
+
"lint",
|
|
78
|
+
"github-actions",
|
|
79
|
+
"sarif"
|
|
80
|
+
],
|
|
81
|
+
license: "MIT",
|
|
82
|
+
author: "Amrith Vengalath",
|
|
83
|
+
repository: {
|
|
84
|
+
type: "git",
|
|
85
|
+
url: "git+https://github.com/AmrithVengalath/react-native-doctor-ci.git"
|
|
86
|
+
},
|
|
87
|
+
homepage: "https://github.com/AmrithVengalath/react-native-doctor-ci#readme",
|
|
88
|
+
bugs: "https://github.com/AmrithVengalath/react-native-doctor-ci/issues",
|
|
89
|
+
type: "module",
|
|
90
|
+
bin: {
|
|
91
|
+
"rn-doctor": "./dist/cli.js"
|
|
92
|
+
},
|
|
93
|
+
exports: {
|
|
94
|
+
".": {
|
|
95
|
+
types: "./dist/index.d.ts",
|
|
96
|
+
import: "./dist/index.js",
|
|
97
|
+
require: "./dist/index.cjs"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
main: "./dist/index.cjs",
|
|
101
|
+
module: "./dist/index.js",
|
|
102
|
+
types: "./dist/index.d.ts",
|
|
103
|
+
files: [
|
|
104
|
+
"dist"
|
|
105
|
+
],
|
|
106
|
+
engines: {
|
|
107
|
+
node: ">=20"
|
|
108
|
+
},
|
|
109
|
+
packageManager: "pnpm@11.11.0",
|
|
110
|
+
publishConfig: {
|
|
111
|
+
access: "public",
|
|
112
|
+
provenance: true
|
|
113
|
+
},
|
|
114
|
+
scripts: {
|
|
115
|
+
typecheck: "tsc --noEmit",
|
|
116
|
+
lint: "eslint .",
|
|
117
|
+
"lint:fix": "eslint . --fix",
|
|
118
|
+
test: "vitest run",
|
|
119
|
+
"test:watch": "vitest",
|
|
120
|
+
"test:cov": "vitest run --coverage",
|
|
121
|
+
build: "tsup",
|
|
122
|
+
dev: "tsup --watch",
|
|
123
|
+
prepublishOnly: "pnpm run build",
|
|
124
|
+
release: "release-it"
|
|
125
|
+
},
|
|
126
|
+
devDependencies: {
|
|
127
|
+
"@eslint/js": "^10.0.1",
|
|
128
|
+
"@release-it/conventional-changelog": "^11.0.1",
|
|
129
|
+
"@types/node": "^20.19.0",
|
|
130
|
+
"@vitest/coverage-v8": "^4.1.10",
|
|
131
|
+
ajv: "^8.20.0",
|
|
132
|
+
eslint: "^10.7.0",
|
|
133
|
+
jiti: "^2.7.0",
|
|
134
|
+
msw: "^2.15.0",
|
|
135
|
+
"release-it": "^20.2.1",
|
|
136
|
+
tsup: "^8.5.1",
|
|
137
|
+
typescript: "6.0.3",
|
|
138
|
+
"typescript-eslint": "^8.63.0",
|
|
139
|
+
vitest: "^4.1.10"
|
|
140
|
+
},
|
|
141
|
+
dependencies: {
|
|
142
|
+
yaml: "^2.9.0"
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
|
|
66
146
|
// src/version.ts
|
|
67
|
-
var VERSION =
|
|
147
|
+
var VERSION = package_default.version;
|
|
68
148
|
|
|
69
149
|
// src/cache.ts
|
|
70
150
|
var fs = __toESM(require("fs"), 1);
|
|
@@ -157,7 +237,7 @@ async function fetchJson(url, options = {}) {
|
|
|
157
237
|
try {
|
|
158
238
|
const response = await fetch(url, {
|
|
159
239
|
headers: {
|
|
160
|
-
"user-agent":
|
|
240
|
+
"user-agent": `rn-doctor/${VERSION}`,
|
|
161
241
|
...options.headers
|
|
162
242
|
},
|
|
163
243
|
signal: controller.signal
|