Skip to content

Commit c3c851c

Browse files
authored
chore: add --ignore-engines to yarnExtraArgs (#98)
* chore: add --ignore-engines to yarnExtraArgs fixes build when node-version of host is > 16.x. oidc-provider in use requires older version of node, but no time for updating (and potentially fixing breaking changes) * added "Caveats" section to README
1 parent 4c76804 commit c3c851c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,10 @@ npm version patch
5656
git push
5757
git push --tags
5858
```
59+
60+
## Caveats
61+
62+
If you're using a node-version that's too new (>16.x), you might need to set this env-var if you get errors bundling the app.
63+
```sh
64+
export NODE_OPTIONS=--openssl-legacy-provider
65+
```

build.sbt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ lazy val cli = project
6868
"bufferutil",
6969
"utf-8-validate",
7070
),
71+
Compile / yarnExtraArgs ++= Seq(
72+
"--ignore-engines"
73+
),
7174
Compile / npmDependencies ++= Seq(
7275
/* "@types/oidc-provider" -> "^7.8.2", // TODO: crashes scalablytyped */
7376
"express" -> "^4.17.3",

0 commit comments

Comments
 (0)