Skip to content

Commit 448822b

Browse files
committed
deps: Upgrade ast-types to my branch with ImportSpecifier fix
I've sent the fix as a PR: benjamn/ast-types#745 which hopefully will get merged in due course. In the meantime, start using it. Like Recast, the library needs a build step, so add that to our postinstall script.
1 parent 0507779 commit 448822b

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"homepage": "https://github.com/gnprice/tsflower",
1212
"dependencies": {
13-
"ast-types": "^0.14.2",
13+
"ast-types": "gnprice/ast-types#24ac46577",
1414
"recast": "gnprice/recast#3cf24324c",
1515
"typescript": "^4.6.3"
1616
},
@@ -23,9 +23,9 @@
2323
"tsflower": "bin/tsflower"
2424
},
2525
"scripts": {
26-
"postinstall": "cd node_modules/recast && npm install && npm run build || :",
26+
"postinstall": "( cd node_modules/recast && npm install && npm run build || : ) && ( cd node_modules/ast-types && npm install )",
2727
"prepublishOnly": "npm run build",
2828
"test": "t/run",
2929
"build": "tsc"
3030
}
31-
}
31+
}

yarn.lock

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,9 @@
77
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.27.tgz#f4df3981ae8268c066e8f49995639f855469081e"
88
integrity sha512-4/Ke7bbWOasuT3kceBZFGakP1dYN2XFd8v2l9bqF2LNWrmeU07JLpp56aEeG6+Q3olqO5TvXpW0yaiYnZJ5CXg==
99

10-
10+
[email protected], ast-types@gnprice/ast-types#24ac46577:
1111
version "0.15.2"
12-
resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.15.2.tgz#39ae4809393c4b16df751ee563411423e85fb49d"
13-
integrity sha512-c27loCv9QkZinsa5ProX751khO9DJl/AcB5c2KNtA6NRvHKS0PgLfcftz72KVq504vB0Gku5s2kUZzDBvQWvHg==
14-
dependencies:
15-
tslib "^2.0.1"
16-
17-
ast-types@^0.14.2:
18-
version "0.14.2"
19-
resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.14.2.tgz#600b882df8583e3cd4f2df5fa20fa83759d4bdfd"
20-
integrity sha512-O0yuUDnZeQDL+ncNGlJ78BiO4jnYI3bvMsD5prT0/nsgijG/LpNBIr63gTjVTNsiGkgQhiyCShTgxt8oXOrklA==
12+
resolved "https://codeload.github.com/gnprice/ast-types/tar.gz/24ac46577b1fa7587e3741b827339f18711f2bc6"
2113
dependencies:
2214
tslib "^2.0.1"
2315

0 commit comments

Comments
 (0)