crosscode: envtpl as .cjs (Node CommonJS for the root lint)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 13:26:00 +02:00
co-authored by Claude Opus 5.5
parent d61b3e5978
commit 92869d2683
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
#!/usr/bin/env bats
# .env files from a product's env template (lib/envtpl.js, AGENT-1.0-PLAN §5): written whole on
# .env files from a product's env template (lib/envtpl.cjs, AGENT-1.0-PLAN §5): written whole on
# install, only appended to on deploy, nothing written when a required value is missing.
setup() {
TMP="$BATS_TEST_TMPDIR"
TPL_JS="$BATS_TEST_DIRNAME/../lib/envtpl.js"
TPL_JS="$BATS_TEST_DIRNAME/../lib/envtpl.cjs"
APP="$TMP/app"
mkdir -p "$APP/backend" "$APP/frontend"
cat > "$TMP/template.json" <<'EOF'