Skip to content

Commit

Permalink
[#101] add tests to lowercase script
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-alford committed Oct 10, 2022
1 parent b78224f commit efb86fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/lowercase-modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ const renameToLowercase: (prim: Primitive, name: ModuleWithExtension) => Build<v
(prim, name) => C =>
pipe(
C.exec(`git mv src/${prim}/${name} src/${prim}/${camelFromPascal(name)}`),
TE.apFirst(
C.exec(`git mv tests/${prim}/${name} tests/${prim}/${camelFromPascal(name)}`)
),
TE.chainFirstIOK(() =>
Cons.log(Color.green(`✔️ Renamed ${name} to ${camelFromPascal(name)}`))
)
Expand Down

0 comments on commit efb86fe

Please sign in to comment.