Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions actions/setup/js/check_workflow_timestamp_api.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/workflow/main_export_validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ func TestScriptsExportMain(t *testing.T) {
// follow the correct pattern and include the require.main check for direct execution
func TestScriptsWithMainExportPattern(t *testing.T) {
jsDir := "js"

// Pattern to match: module.exports = { main }
mainExportPattern := regexp.MustCompile(`module\.exports\s*=\s*\{[^}]*\bmain\b[^}]*\}`)

// Pattern to check for require.main === module check
requireMainPattern := regexp.MustCompile(`require\.main\s*===\s*module`)

Expand Down