Skip to content

Commit

Permalink
deps: Upgrade recast to my branch fixing Flow function types
Browse files Browse the repository at this point in the history
I've sent the fix as a PR:
  benjamn/recast#1089
which hopefully will get merged in due course.  In the meantime,
start using it.

The library needs a build step.  Oddly it gives a couple of TS
warnings, which it doesn't when I build the same version in its own
worktree.  Perhaps `tsc` is letting this project's tsconfig leak in,
because it's at an ancestor directory?  Anyway, just ignore for now,
with `|| :`.
  • Loading branch information
gnprice committed Apr 26, 2022
1 parent 2ba9ea0 commit 8a3f4d6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@
"homepage": "https://github.com/gnprice/tsflower",
"dependencies": {
"ast-types": "^0.14.2",
"recast": "^0.20.5",
"recast": "gnprice/recast#3cf24324c",
"typescript": "^4.6.3"
},
"devDependencies": {
"@types/node": "^17.0.27"
},
"main": "lib/index.js",
"scripts": {
"postinstall": "cd node_modules/recast && npm install && npm run build || :",
"prepublishOnly": "npm run build",
"build": "tsc"
}
Expand Down
18 changes: 12 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.27.tgz#f4df3981ae8268c066e8f49995639f855469081e"
integrity sha512-4/Ke7bbWOasuT3kceBZFGakP1dYN2XFd8v2l9bqF2LNWrmeU07JLpp56aEeG6+Q3olqO5TvXpW0yaiYnZJ5CXg==

[email protected], ast-types@^0.14.2:
[email protected]:
version "0.15.2"
resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.15.2.tgz#39ae4809393c4b16df751ee563411423e85fb49d"
integrity sha512-c27loCv9QkZinsa5ProX751khO9DJl/AcB5c2KNtA6NRvHKS0PgLfcftz72KVq504vB0Gku5s2kUZzDBvQWvHg==
dependencies:
tslib "^2.0.1"

ast-types@^0.14.2:
version "0.14.2"
resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.14.2.tgz#600b882df8583e3cd4f2df5fa20fa83759d4bdfd"
integrity sha512-O0yuUDnZeQDL+ncNGlJ78BiO4jnYI3bvMsD5prT0/nsgijG/LpNBIr63gTjVTNsiGkgQhiyCShTgxt8oXOrklA==
Expand All @@ -19,12 +26,11 @@ esprima@~4.0.0:
resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71"
integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==

recast@^0.20.5:
version "0.20.5"
resolved "https://registry.yarnpkg.com/recast/-/recast-0.20.5.tgz#8e2c6c96827a1b339c634dd232957d230553ceae"
integrity sha512-E5qICoPoNL4yU0H0NoBDntNB0Q5oMSNh9usFctYniLBluTthi3RsQVBXIJNbApOlvSwW/RGxIuokPcAc59J5fQ==
recast@gnprice/recast#3cf24324c:
version "0.21.0"
resolved "https://codeload.github.com/gnprice/recast/tar.gz/3cf24324cf8baddeeeba83ac72042098a93121d5"
dependencies:
ast-types "0.14.2"
ast-types "0.15.2"
esprima "~4.0.0"
source-map "~0.6.1"
tslib "^2.0.1"
Expand Down

0 comments on commit 8a3f4d6

Please sign in to comment.