fix(refactor): use named imports (#879)

Allows better tree shaking while bundling.
This commit is contained in:
Michael Kriese 2024-11-08 13:41:42 +01:00 committed by GitHub
parent 5343762d53
commit 4d91b7f286
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 77 additions and 36 deletions

38
.github/renovate.json vendored
View file

@ -28,6 +28,28 @@
"description": "Use ci semantic type for some deps",
"matchFileNames": [".github/workflows/**"],
"semanticCommitType": "ci"
},
{
"description": "Don't require approval for renovate",
"matchDepNames": [
"ghcr.io/renovatebot/renovate",
"renovatebot/github-action"
],
"dependencyDashboardApproval": false
},
{
"description": "Don't pin renovate updates",
"matchDepNames": ["ghcr.io/renovatebot/renovate"],
"matchFileNames": ["action.yml", "src/docker.ts"],
"pinDigests": false
},
{
"description": "Use feat! semantic type for renovate major",
"matchDepNames": ["ghcr.io/renovatebot/renovate"],
"matchFileNames": ["action.yml", "src/docker.ts"],
"matchUpdateTypes": ["major"],
"commitMessagePrefix": "feat(deps)!:",
"additionalBranchPrefix": "renovate-major"
}
],
"customManagers": [
@ -46,6 +68,22 @@
"matchStrings": ["renovate-version: (?<currentValue>[^\\s]+)"],
"depNameTemplate": "ghcr.io/renovatebot/renovate",
"datasourceTemplate": "docker"
},
{
"description": "Update renovate version in action.yml",
"customType": "regex",
"fileMatch": ["^action\\.yml$"],
"matchStrings": ["default: '(?<currentValue>[^\\s]+)' # renovate"],
"depNameTemplate": "ghcr.io/renovatebot/renovate",
"datasourceTemplate": "docker"
},
{
"description": "Update renovate version in src/docker.ts",
"customType": "regex",
"fileMatch": ["^src/docker\\.ts$"],
"matchStrings": ["version = '(?<currentValue>[^\\s]+)'; // renovate"],
"depNameTemplate": "ghcr.io/renovatebot/renovate",
"datasourceTemplate": "docker"
}
]
}