"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PluginPackageJsonGenerator = void 0;
const path = require("path");
const AbstractPackageJsonGenerator_1 = require("./AbstractPackageJsonGenerator");
class PluginPackageJsonGenerator extends AbstractPackageJsonGenerator_1.AbstractPackageJsonGenerator {
    constructor(plugin, repositoryDir) {
        super(repositoryDir);
        this.plugin = plugin;
    }
    getFilePath() {
        return path.join(this.plugin.assetsDir, this.packageJsonFile);
    }
    getPackageName() {
        return `@cplace-assets/${this.plugin.pluginDescriptor.repoName}_${this.plugin.pluginDescriptor.name.replace(/\./g, '-')}`.toLowerCase();
    }
    /**
     * Plugins don't list their rependencies in the assets/package.json
     * since that would create duplications of the same dependency in many plugins
     * (cf.cplace.platform would appear in all plugins).
     *
     * The dependencies are listed in the root package.json
     */
    getPluginDependencies() {
        return [];
    }
}
exports.PluginPackageJsonGenerator = PluginPackageJsonGenerator;
//# sourceMappingURL=PluginPackageJsonGenerator.js.map