DEV: Update core lint commands to only affect bundled plugins (#29824)

Non-bundled plugins have their own linting configs/commands, and should not be linted by these package.json commands
This commit is contained in:
David Taylor
2024-11-19 18:56:14 +00:00
committed by GitHub
parent 7776773a11
commit a10dcffb73
3 changed files with 23 additions and 13 deletions

16
script/list_bundled_plugins Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
# This script lists all bundled plugins in the Discourse project.
# It accepts an optional suffix argument that will be appended to each plugin name.
#
# Usage:
# ./list_bundled_plugins [suffix]
#
# Arguments:
# suffix: An optional string to append to each plugin name.
#
set -e -u -o pipefail
suffix=${1:-}
git ls-tree --name-only -d HEAD plugins/* | sed "s|$|$suffix|"