tempest-react-sdk 0.85.0 → 0.86.0
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/bin/create-tempest-app.mjs +10 -1
- package/package.json +7 -1
- package/template/package.json +6 -1
|
@@ -172,7 +172,15 @@ async function writeFreshPackageJson(destDir, name, sdkVersion) {
|
|
|
172
172
|
await writeFile(join(destDir, "package.json"), JSON.stringify(pkg, null, 2) + "\n");
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
/**
|
|
175
|
+
/**
|
|
176
|
+
* Merge Tempest scripts + deps into an existing package.json (non-destructive).
|
|
177
|
+
*
|
|
178
|
+
* The template's `overrides` are merged too: they carry dependency-tree fixes
|
|
179
|
+
* (e.g. forcing a patched `minimatch` under `@typescript-eslint/typescript-estree`
|
|
180
|
+
* until upstream ships it), and dropping them would leave a merged project with
|
|
181
|
+
* the `npm audit` findings a fresh scaffold does not have. An override the
|
|
182
|
+
* project already declares for the same package wins.
|
|
183
|
+
*/
|
|
176
184
|
async function mergePackageJson(destDir, sdkVersion) {
|
|
177
185
|
const tpl = JSON.parse(await readFile(join(TEMPLATE_DIR, "package.json"), "utf8"));
|
|
178
186
|
const target = JSON.parse(await readFile(join(destDir, "package.json"), "utf8"));
|
|
@@ -182,6 +190,7 @@ async function mergePackageJson(destDir, sdkVersion) {
|
|
|
182
190
|
target.dependencies = { ...(target.dependencies ?? {}), ...tpl.dependencies };
|
|
183
191
|
target.dependencies["tempest-react-sdk"] = `^${sdkVersion}`;
|
|
184
192
|
target.devDependencies = { ...(target.devDependencies ?? {}), ...tpl.devDependencies };
|
|
193
|
+
if (tpl.overrides) target.overrides = { ...tpl.overrides, ...(target.overrides ?? {}) };
|
|
185
194
|
|
|
186
195
|
await writeFile(join(destDir, "package.json"), JSON.stringify(target, null, 2) + "\n");
|
|
187
196
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tempest-react-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.86.0",
|
|
4
4
|
"description": "SDK público da Tempest com componentes, hooks e integrações para projetos React.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -249,6 +249,12 @@
|
|
|
249
249
|
"node": ">=22.12"
|
|
250
250
|
},
|
|
251
251
|
"overrides": {
|
|
252
|
+
"@microsoft/api-extractor": {
|
|
253
|
+
"minimatch": "^11.0.1"
|
|
254
|
+
},
|
|
255
|
+
"@typescript-eslint/typescript-estree": {
|
|
256
|
+
"minimatch": "^11.0.1"
|
|
257
|
+
},
|
|
252
258
|
"rolldown": "1.2.14"
|
|
253
259
|
}
|
|
254
260
|
}
|
package/template/package.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@types/react": "^19.2.17",
|
|
25
25
|
"@types/react-dom": "^19.2.3",
|
|
26
26
|
"@vitejs/plugin-react": "^6.0.4",
|
|
27
|
-
"eslint": "^10.
|
|
27
|
+
"eslint": "^10.15.0",
|
|
28
28
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
29
29
|
"eslint-plugin-react-refresh": "^0.5.3",
|
|
30
30
|
"eslint-plugin-simple-import-sort": "^14.0.0",
|
|
@@ -34,5 +34,10 @@
|
|
|
34
34
|
"typescript": "~6.0.3",
|
|
35
35
|
"typescript-eslint": "^8.65.0",
|
|
36
36
|
"vite": "^8.3.3"
|
|
37
|
+
},
|
|
38
|
+
"overrides": {
|
|
39
|
+
"@typescript-eslint/typescript-estree": {
|
|
40
|
+
"minimatch": "^11.0.1"
|
|
41
|
+
}
|
|
37
42
|
}
|
|
38
43
|
}
|