javascript - Rename file with NPM -
is there way rename single file in npm scripts? want prepare files distribution, need built files named differently in source...
i have tried orn, seems work on command line, not npm script. i'm looking add cross-platform dependency project, rather writing own javascript script copy files over.
my ideal solution can include in package.json
, 1 line command, e.g. rename old-file-name new-file-name
sure. npm script
can run node js file want.
for example:
require('fs').rename(oldpath,newpath)
more info:
Comments
Post a Comment