UNPKG
@torchlight-api/torchlight-cli
Version:
latest (0.1.7)
0.1.7
0.1.6
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.2
0.0.1
A CLI for Torchlight - the syntax highlighting API
@torchlight-api/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'
) }