"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
// @ts-ignore - Prevent TypeScript from copying the JSON file to the output folder
const projects_json_1 = __importDefault(require("../projects.json"));
const deep_clone_1 = require("./deep-clone");
/**
 * An array of Project objects. Unlike the raw JSON project data,
 * the date fields of these objects are `Date` objects rather than strings.
 */
exports.projects = [];
for (let jsonProject of projects_json_1.default) {
    // Deep-clone the JSON data, so we don't modify the original objects
    // (in case the consumer wants to use both the raw and enriched objects)
    jsonProject = deep_clone_1.deepClone(jsonProject);
    exports.projects.push(Object.assign({}, jsonProject, {
        startedOn: new Date(jsonProject.startedOn),
        endedOn: jsonProject.endedOn ? new Date(jsonProject.endedOn) : undefined,
    }));
}
//# sourceMappingURL=projects.js.map