@criticalmanufacturing/node-package-bundler
Version:
Connect IoT Package Bundler
29 lines • 1.3 kB
JavaScript
;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Paths = void 0;
const inversify_1 = require("inversify");
let Paths = class Paths {
setup(source, destination, temp, addons) {
this._source = source;
this._destination = destination;
this._temp = temp;
this._addons = addons;
}
transform(path) {
return (path.replace("${Source}", this._source)
.replace("${Temp}", this._temp)
.replace("${Destination}", this._destination)
.replace("${Addons}", this._addons));
}
};
exports.Paths = Paths;
exports.Paths = Paths = __decorate([
(0, inversify_1.injectable)()
], Paths);
//# sourceMappingURL=paths.js.map