UNPKG

a2r

Version:
19 lines (18 loc) 697 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const path_1 = __importDefault(require("path")); const settings_1 = require("../../settings"); /** * Gets file path to touch and trigger hot reload * @param projectType Project type */ const getFileToTouch = (projectType) => { if (projectType === 'next') { return path_1.default.resolve(settings_1.defaultDockerWorkDir, 'pages', 'index.tsx'); } return path_1.default.resolve(settings_1.defaultDockerWorkDir, 'index.ts'); }; exports.default = getFileToTouch;