homelab/services/parts-inventory/api/node_modules/ts-node-dev/lib/get-compiled-path.js
Dan V deb6c38d7b chore: commit homelab setup — deployment, services, orchestration, skill
- Add .gitignore: exclude compiled binaries, build artifacts, and Helm
  values files containing real secrets (authentik, prometheus)
- Add all Kubernetes deployment manifests (deployment/)
- Add services source code: ha-sync, device-inventory, games-console,
  paperclip, parts-inventory
- Add Ansible orchestration: playbooks, roles, inventory, cloud-init
- Add hardware specs, execution plans, scripts, HOMELAB.md
- Add skills/homelab/SKILL.md + skills/install.sh to preserve Copilot skill
- Remove previously-tracked inventory-cli binary from git index

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-09 08:10:32 +02:00

18 lines
749 B
JavaScript

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCompiledPath = void 0;
var crypto_1 = __importDefault(require("crypto"));
var path_1 = __importDefault(require("path"));
var cwd = process.cwd();
exports.getCompiledPath = function (code, fileName, compiledDir) {
var hash = crypto_1.default
.createHash('sha256')
.update(fileName + code, 'utf8')
.digest('hex');
fileName = path_1.default.relative(cwd, fileName);
var hashed = fileName.replace(/[^\w]/g, '_') + '_' + hash + '.js';
return path_1.default.join(compiledDir, hashed);
};