copilot/add-bun-rules-package #1
@@ -57,7 +57,7 @@ bun = module_extension(
|
||||
|
||||
_install = tag_class(
|
||||
attrs = {
|
||||
"name": attr.string(default = "node_modules"),
|
||||
"name": attr.string(mandatory = True),
|
||||
"package_json": attr.string(mandatory = True),
|
||||
"bun_lockfile": attr.string(mandatory = True),
|
||||
},
|
||||
|
||||
@@ -3,7 +3,8 @@ set -euo pipefail
|
||||
|
||||
extension_file="$1"
|
||||
|
||||
grep -q 'bun_install = module_extension(' "${extension_file}"
|
||||
grep -q 'tag_classes = {"install": _install}' "${extension_file}"
|
||||
grep -q '"package_json": attr.string(mandatory = True)' "${extension_file}"
|
||||
grep -q '"bun_lockfile": attr.string(mandatory = True)' "${extension_file}"
|
||||
grep -Eq 'bun_install[[:space:]]*=[[:space:]]*module_extension\(' "${extension_file}"
|
||||
grep -Eq 'tag_classes[[:space:]]*=[[:space:]]*\{"install":[[:space:]]*_install\}' "${extension_file}"
|
||||
grep -Eq '"name":[[:space:]]*attr\.string\(mandatory[[:space:]]*=[[:space:]]*True\)' "${extension_file}"
|
||||
grep -Eq '"package_json":[[:space:]]*attr\.string\(mandatory[[:space:]]*=[[:space:]]*True\)' "${extension_file}"
|
||||
grep -Eq '"bun_lockfile":[[:space:]]*attr\.string\(mandatory[[:space:]]*=[[:space:]]*True\)' "${extension_file}"
|
||||
|
||||
Reference in New Issue
Block a user