Skip to content

Commit

Permalink
feat: add pwd
Browse files Browse the repository at this point in the history
  • Loading branch information
afeiship committed Aug 9, 2023
1 parent ce7c609 commit 3dba297
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
import cp_r from './lib/cp_r';
import cp from './lib/cp';
import mkdir_p from './lib/mkdir_p';
import mv from './lib/mv';
import pwd from './lib/pwd';
import rm_rf from './lib/rm_rf';
import cp_r from './lib/cp_r';
import cp from './lib/cp';

// https://cloud.tencent.com/developer/section/1377051

declare var wx: any;

const Fileutils = {
mkdir_p,
rm_rf,
mv,
cp_r,
cp,
mkdir_p,
mv,
pwd,
rm_rf,
};

// for commonjs es5 require
Expand Down
3 changes: 3 additions & 0 deletions src/lib/pwd.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default () => {
return process.cwd();
};

0 comments on commit 3dba297

Please sign in to comment.