@azure-tools/extension
Version:
Yarn-Based extension aquisition (for Azure Open Source Projects)
25 lines • 749 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.LocalExtension = void 0;
const extension_1 = require("./extension");
/**
* LocalExtension is a local extension that must not be installed.
* @extends Extension
* */
class LocalExtension extends extension_1.Extension {
constructor(pkg, extensionPath) {
super(pkg, "");
this.extensionPath = extensionPath;
}
get location() {
return this.extensionPath;
}
get modulePath() {
return this.extensionPath;
}
async remove() {
throw new Error("Cannot remove local extension. Lifetime not our responsibility.");
}
}
exports.LocalExtension = LocalExtension;
//# sourceMappingURL=local-extension.js.map