Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion opsimate-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@docusaurus/module-type-aliases": "^3.9.2",
"@docusaurus/tsconfig": "^3.10.2",
"@docusaurus/types": "^3.9.2",
"typescript": "~5.6.2"
"typescript": "^6.0.3"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

python - <<'PY'
import json
from pathlib import Path

manifest = json.loads(Path("opsimate-docs/package.json").read_text())
lockfile = json.loads(Path("opsimate-docs/package-lock.json").read_text())

assert (
    lockfile["packages"][""]["devDependencies"]["typescript"]
    == manifest["devDependencies"]["typescript"]
)
assert lockfile["packages"]["node_modules/typescript"]["version"] == "6.0.3"
PY

Repository: OpsiMate/documentation

Length of output: 248


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== package.json relevant deps =="
python3 - <<'PY'
import json
from pathlib import Path
p=Path("opsimate-docs/package.json")
m=json.loads(p.read_text())
print(m.get("devDependencies", {}).get("typescript"), m.get("dependencies", {}).get("typescript"))
PY

echo "== package-lock files mentioning typescript =="
rg -n '"typescript"|"node_modules/typescript"' opsimate-docs/package-lock.json || true
echo "== lockfile package entry =="
python3 - <<'PY'
import json
from pathlib import Path
lock=json.loads(Path("opsimate-docs/package-lock.json").read_text())
print("root ts range:", lock.get("packages", {}).get("", {}).get("devDependencies", {}).get("typescript"))
for k,v in lock.get("packages", {}).items():
    if k.endswith("node_modules/typescript"):
        print(k, v.get("version"), v.get("resolved"), v.get("dev", False), v.get("devDependencies"))
PY

Repository: OpsiMate/documentation

Length of output: 544


Update the lockfile with TypeScript 6.0.3.

opsimate-docs/package-lock.json still lists typescript as ~5.6.2 and resolves 5.6.3, but opsimate-docs/package.json requests ^6.0.3. Regenerate the lockfile so the root dependency range and node_modules/typescript resolved version match 6.0.3.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@opsimate-docs/package.json` at line 34, Regenerate
opsimate-docs/package-lock.json from the updated TypeScript dependency in
package.json so the root dependency range is ^6.0.3 and the
node_modules/typescript entry resolves to 6.0.3, including corresponding
metadata and integrity values.

},
"browserslist": {
"production": [
Expand Down
11 changes: 10 additions & 1 deletion opsimate-docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@
// This file is not used in compilation. It is here just for a nice editor experience.
"extends": "@docusaurus/tsconfig",
"compilerOptions": {
"baseUrl": "."
// Re-anchors @docusaurus/tsconfig's @site/* alias to this directory; an
// inherited baseUrl would otherwise resolve against the package's own
// location inside node_modules.
"baseUrl": ".",
// TypeScript 6 deprecates baseUrl and 7 removes it, but @docusaurus/tsconfig
// sets it upstream too, so we cannot drop it unilaterally -- the deprecation
// fires on the inherited option even if we remove ours. Remove this escape
// hatch (and the baseUrl above) once Docusaurus ships a baseUrl-free
// tsconfig; until then TS 7 is blocked on them, not on us.
"ignoreDeprecations": "6.0"
},
"exclude": [".docusaurus", "build"]
}
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading