UNPKG
@aaron-dev/torchlight-cli
Version:
latest (0.1.1655323821)
0.1.1655323821
0.1.1655322570
0.1.1655322309
0.1.1655321213
0.1.1655321148
0.1.1655321105
0.1.1655320933
0.1.1655320863
0.1.1655320751
0.1.1655312631
0.1.4
A CLI for Torchlight - the syntax highlighting API
@aaron-dev/torchlight-cli
/
bin
/
postpublish.js
10 lines
(7 loc)
•
247 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
const
{ removeSync, pathExistsSync, moveSync } =
require
(
'fs-extra'
)
if
(
pathExistsSync
(
'./package.json'
)) {
removeSync
(
'./package.json'
) }
if
(
pathExistsSync
(
'./package.backup.json'
)) {
moveSync
(
'./package.backup.json'
,
'./package.json'
) }