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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user