Closed LucJosin closed 8 months ago
@LucJosin Hi!, thanks for the pr I will to check it and merge it
@LucJosin It will take me a while to publish the release since the packages I used to build astro-rename have been removed
@all-contributors please add @LucJosin for
@RodrigoTomeES
I couldn't determine any contributions to add, did you specify any contributions? Please make sure to use valid contribution names.
@all-contributors please add @jakebolam for bug
@RodrigoTomeES
I've put up a pull request to add @jakebolam! :tada:
Hi @RodrigoTomeES, this PR will fix and introduce a few things:
Features
MAPS_DIRECTORY
already exists beforemkdir
:Changes
no-console
rule to avoid usingeslint-disable-next-line no-console
20.2
to18.18
Fixes
readFile
method before JSON parsing.For some reason, the
classMap
always return a single item after thefor await
:https://github.com/RodrigoTomeES/astro-rename/blob/44ce009567ef82067a86e4099a517a0cdeccb926/src/index.ts#L94-L99
After this PR, we first wait for the
readFile
method and then parse withJSON.parse
:Issues