lib/CustomPostType.php
protected function generateCustomPostTypeName()
    {
        $matches = [];
        preg_match('@(\\\\)?([\w]+)$@', get_called_class(), $matches);
        $cptName = strtolower(
            preg_replace('/(?<=\\w)(?=[A-Z])/', "-$1", $matches[2])
        );
        return $cptName;
    }
protected function generateCustomPostTypeName()
    {
        $matches = [];
        preg_match('@(\\\\)?([\w]+)$@', get_called_class(), $matches);
        $cptName = strtolower(
            preg_replace('/(?<=\\w)(?=[A-Z])/', "-$1", $matches[2])
        );
        return $cptName;
    }
Overwrite to change the way the custom post type name is determined.
This value is fed into the PostTypeBuilder. If an existing post type of
the same name exist, it will load the existing configuration to allow
modification.

@return string