@softize/opus 9.0.1 → 9.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/registry/git/pre-push.d/opus +16 -2
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,12 @@ Depois de qualquer bump, rode os gates (`typecheck` · `test` · `opus check` ·
|
|
|
11
11
|
> tinha ficado sem registro nenhum, o que é exatamente o caso que este arquivo existe
|
|
12
12
|
> pra cobrir.
|
|
13
13
|
|
|
14
|
+
## 9.0.2 — 2026-08-12
|
|
15
|
+
|
|
16
|
+
**O pre-push entende monorepos.** Ele valida a materialização na raiz e executa as
|
|
17
|
+
convenções em cada projeto marcado por `opus.json`, sem exigir actions no diretório-raiz.
|
|
18
|
+
No repositório-fonte do SDK, a suíte continua sendo dona das fixtures negativas do linter.
|
|
19
|
+
|
|
14
20
|
## 9.0.1 — 2026-08-12
|
|
15
21
|
|
|
16
22
|
**A garantia de materialização volta a ser local.** `opus setup` deixa de criar o
|
package/package.json
CHANGED
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
if [ -f node_modules/@softize/opus/bin/cli.mjs ]; then
|
|
3
|
-
|
|
3
|
+
opus_cli=node_modules/@softize/opus/bin/cli.mjs
|
|
4
4
|
elif [ -f packages/opus/bin/cli.mjs ]; then
|
|
5
|
-
|
|
5
|
+
opus_cli=packages/opus/bin/cli.mjs
|
|
6
6
|
else
|
|
7
7
|
echo "opus pre-push: @softize/opus não está instalado." >&2
|
|
8
8
|
exit 1
|
|
9
9
|
fi
|
|
10
|
+
|
|
11
|
+
node "$opus_cli" pre-push materialization || exit $?
|
|
12
|
+
|
|
13
|
+
# No repositório-fonte do próprio Opus, os exemplos deliberadamente inválidos dos testes
|
|
14
|
+
# exercitam o linter. A suíte é o gate dessa árvore; não escaneie fixtures como consumidor.
|
|
15
|
+
[ -f packages/opus/bin/cli.mjs ] && exit 0
|
|
16
|
+
|
|
17
|
+
# A raiz de um monorepo não precisa ser um app. Cada marcador per-app define um alvo
|
|
18
|
+
# real do check; node_modules e .git nunca participam da descoberta.
|
|
19
|
+
find . -name opus.json -type f -not -path '*/node_modules/*' -not -path '*/.git/*' -exec dirname {} \; |
|
|
20
|
+
sort -u |
|
|
21
|
+
while IFS= read -r app_dir; do
|
|
22
|
+
node "$opus_cli" check "$app_dir" || exit $?
|
|
23
|
+
done
|