Repository navigation
Commit 196049c
fix: remove fixed engines field and add npm install cooldown (#23)
# Description
Closes #7.
The `engines` field pinned exact versions of Node.js and npm. It
propagates to consumers, so installing `@line/liff-cli` printed
`EBADENGINE` warnings on any other version. I removed it and moved the
npm requirement to `devEngines`, which is not propagated.
I also added new configs to `.npmrc` as a mitigation against supply
chain attacks.
- `min-release-age=3`: It makes npm ignore versions published less than
3 days ago.
- `strict-allow-scripts=true` in `.npmrc` and `allowScripts` in
`package.json`: prevent install scripts of third-party packages from
running.
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>1 parent 82aac91 commit 196049c
4 files changed
Lines changed: 39 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
29 | 38 | | |
30 | 39 | | |
31 | 40 | | |
32 | 41 | | |
33 | 42 | | |
34 | | - | |
| 43 | + | |
35 | 44 | | |
36 | 45 | | |
37 | 46 | | |
| |||
0 commit comments