paths.js 210 B

123456789
  1. const path = require("path");
  2. const appRoot = process.cwd(); // 命令行运行的根目录
  3. const resolveApp = (resolvePath) => {
  4. return path.resolve(appRoot, resolvePath);
  5. };
  6. module.exports = resolveApp;