Açıklama Yok
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

projectPath.js 632B

12345678910111213141516
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.resolveProjectPath = void 0;
  4. const path = require("path");
  5. const detectProjectRoot_1 = require("./detectProjectRoot");
  6. const error_1 = require("./error");
  7. function resolveProjectPath(options, filePath) {
  8. const projectRoot = (0, detectProjectRoot_1.detectProjectRoot)(options);
  9. if (!projectRoot) {
  10. throw new error_1.FirebaseError("Expected to be in a project directory, but none was found.", {
  11. exit: 2,
  12. });
  13. }
  14. return path.resolve(projectRoot, filePath);
  15. }
  16. exports.resolveProjectPath = resolveProjectPath;