UNPKG

express-post-task-scheduler

Version:

A lightweight npm package to create and manage scheduled tasks using Express middleware. Configure tasks via POST requests and execute them at specified times seamlessly.

17 lines (16 loc) 777 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const fs_1 = __importDefault(require("fs")); const path_1 = __importDefault(require("path")); const settings_1 = require("../src/settings"); function build() { const destinationPath = path_1.default.join(settings_1.SETTINGS.basePath, "dist", "prisma"); const schemaPath = path_1.default.join(settings_1.SETTINGS.basePath, "prisma", "schema.prisma"); const schemaDestination = path_1.default.join(destinationPath, "schema.prisma"); fs_1.default.mkdirSync(destinationPath); fs_1.default.copyFileSync(schemaPath, schemaDestination); } build();