redist libs message altered, and now shows on plugins too

This commit is contained in:
coolbot100s committed 2025-07-29 23:59:42 -07:00
1 parent 85e47e60e4
commit e3105b3f98
2 files changed
+4 -3

No files matched your search

@@ -1,4 +1,4 @@
## Excessive File Size
## Unnecessary redistribution of dependencies
This project appears to include libs or dependencies, unnecessarily redistributing their entire contents.
This is often due to an error in project structure or compilation, and in some cases, may violate the copyrights or licensing agreements of these libraries.
+3 -2
View File
@@ -1,6 +1,7 @@
import type { Stage } from '../../types/stage'
import type { ButtonAction, DropdownAction, DropdownActionOption } from '../../types/actions'
import { VersionIcon } from '@modrinth/assets'
import type { Project } from '@modrinth/utils'
const versions: Stage = {
title: "Are this project's files correct?",
@@ -135,11 +136,11 @@ const versions: Stage = {
{
id: 'versions_redist_libs',
type: 'button',
label: 'Oversized File',
label: 'Packed Libs',
suggestedStatus: `rejected`,
severity: `medium`,
weight: 1003,
shouldShow: (project) => project.project_type === 'mod',
shouldShow: (project) => project.project_type === 'mod' || project.project_type === 'plugin',
message: async () => (await import('../messages/versions/redist_libs.md?raw')).default,
} as ButtonAction,
{