Skip to content

Commit

Permalink
feat: add change dir
Browse files Browse the repository at this point in the history
  • Loading branch information
afeiship committed Oct 14, 2023
1 parent 511c36c commit 4adeeea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import cd from './lib/cd';
import cp_r from './lib/cp_r';
import ls from './lib/ls';
import mkdir_p from './lib/mkdir_p';
Expand All @@ -10,6 +11,7 @@ import rm_rf from './lib/rm_rf';
declare var wx: any;

const Fileutils = {
cd,
cp_r,
ls,
mkdir_p,
Expand Down
3 changes: 3 additions & 0 deletions src/lib/cd.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default (dir) => {
return process.chdir(dir);
};

0 comments on commit 4adeeea

Please sign in to comment.