Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(
truffleDirectory?: string,
workingDirectory?: string,
network?: any
) {
this._deepCopy = ["compilers"];
this._values = getInitialConfig({
truffleDirectory,
workingDirectory,
network
});
const eventsOptions = this.eventManagerOptions(this);
this.events = new EventManager(eventsOptions);
const props = configProps({ configObject: this });
Object.entries(props).forEach(([propName, descriptor]) =>
this.addProp(propName, descriptor)
);
}