Skip to content

Commit

Permalink
change: display only relative path to project root
Browse files Browse the repository at this point in the history
  • Loading branch information
kissxp committed Oct 14, 2021
1 parent 5960838 commit 1b0116d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const action = ( pathToDelete ) => {
info( chalk.gray( ">" ), chalk.bgGray.white( pathToDelete ), chalk.gray( "does not exist" ) );
} else {
for ( const deletedPath of deletedFilePaths ) {
info( chalk.gray( ">" ), chalk.red.strikethrough( deletedPath ), chalk.red( "deleted" ) );
info( chalk.gray( ">" ), chalk.red.strikethrough( deletedPath.replace( path.resolve( "./" ), "" ) ), chalk.red( "deleted" ) );
}
}
})();
Expand Down
7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clear-path",
"version": "1.2.0",
"version": "1.2.1",
"description": "A node library for deleteing a path if exists using del",
"license": "MIT",
"repository": {
Expand Down Expand Up @@ -42,10 +42,5 @@
"chalk": "^4.1.2",
"cosmiconfig": "^7.0.1",
"del": "^6.0.0"
},
"clearpath": {
"routine": {
"teste": "dist"
}
}
}

0 comments on commit 1b0116d

Please sign in to comment.