mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
[Fix] CI/Tooling: Correct min-release-age value in .npmrc files
npm's `min-release-age` config has type `[null, Number]`. The value `3d` parses to NaN, which propagates into `before = new Date(NaN)` (Invalid Date). Pacote then calls `.toISOString()` on it and throws `RangeError: Invalid time value`, breaking every local `npm install`. Drop the `d` suffix in all six `.npmrc` files. The `<days>` in npm's type hint is a label, not part of the value. This is a no-op for CI (`npm ci` ignores this setting per the comment in the file) but unblocks local `npm install`.
This commit is contained in:
parent
383bf12001
commit
1005fcd592
6 changed files with 6 additions and 6 deletions
2
.npmrc
2
.npmrc
|
|
@ -2,4 +2,4 @@
|
||||||
# Packages needing lifecycle scripts: npm rebuild <pkg>
|
# Packages needing lifecycle scripts: npm rebuild <pkg>
|
||||||
ignore-scripts=true
|
ignore-scripts=true
|
||||||
# Protects local npm install only — npm ci (used in CI) ignores this
|
# Protects local npm install only — npm ci (used in CI) ignores this
|
||||||
min-release-age=3d
|
min-release-age=3
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,4 @@
|
||||||
# Packages needing lifecycle scripts: npm rebuild <pkg>
|
# Packages needing lifecycle scripts: npm rebuild <pkg>
|
||||||
ignore-scripts=true
|
ignore-scripts=true
|
||||||
# Protects local npm install only — npm ci (used in CI) ignores this
|
# Protects local npm install only — npm ci (used in CI) ignores this
|
||||||
min-release-age=3d
|
min-release-age=3
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,4 @@
|
||||||
# Packages needing lifecycle scripts: npm rebuild <pkg>
|
# Packages needing lifecycle scripts: npm rebuild <pkg>
|
||||||
ignore-scripts=true
|
ignore-scripts=true
|
||||||
# Protects local npm install only — npm ci (used in CI) ignores this
|
# Protects local npm install only — npm ci (used in CI) ignores this
|
||||||
min-release-age=3d
|
min-release-age=3
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,4 @@
|
||||||
# Packages needing lifecycle scripts: npm rebuild <pkg>
|
# Packages needing lifecycle scripts: npm rebuild <pkg>
|
||||||
ignore-scripts=true
|
ignore-scripts=true
|
||||||
# Protects local npm install only — npm ci (used in CI) ignores this
|
# Protects local npm install only — npm ci (used in CI) ignores this
|
||||||
min-release-age=3d
|
min-release-age=3
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,4 @@
|
||||||
# Packages needing lifecycle scripts: npm rebuild <pkg>
|
# Packages needing lifecycle scripts: npm rebuild <pkg>
|
||||||
ignore-scripts=true
|
ignore-scripts=true
|
||||||
# Protects local npm install only — npm ci (used in CI) ignores this
|
# Protects local npm install only — npm ci (used in CI) ignores this
|
||||||
min-release-age=3d
|
min-release-age=3
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,4 @@
|
||||||
# Packages needing lifecycle scripts: npm rebuild <pkg>
|
# Packages needing lifecycle scripts: npm rebuild <pkg>
|
||||||
ignore-scripts=true
|
ignore-scripts=true
|
||||||
# Protects local npm install only — npm ci (used in CI) ignores this
|
# Protects local npm install only — npm ci (used in CI) ignores this
|
||||||
min-release-age=3d
|
min-release-age=3
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue