Skip to content

Commit

Permalink
chore: update configurations and dependencies
Browse files Browse the repository at this point in the history
- enable formatting with errors in `biome.json` and rename `.releaserc.cjs` to `.releaserc.js` with updated syntax.
- upgrade AWS SDK and other dependencies
  • Loading branch information
mario-jerkovic committed Jan 10, 2025
1 parent ebd4e35 commit 195f30e
Show file tree
Hide file tree
Showing 7 changed files with 681 additions and 657 deletions.
3 changes: 2 additions & 1 deletion .releaserc.cjs → .releaserc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
/** @type { import('semantic-release').Options } */
export default {
branches: [
'+([0-9])?(.{+([0-9]),x}).x',
'master',
Expand Down
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"formatter": {
"enabled": true,
"formatWithErrors": false,
"formatWithErrors": true,
"attributePosition": "auto",
"indentStyle": "space",
"indentWidth": 4,
Expand Down
2 changes: 1 addition & 1 deletion cspell.config.cjs → cspell.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
useGitignore: true,
cache: {
useCache: true,
Expand Down
31 changes: 13 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
"name": "@rimac-technology/semantic-release-ecr",
"version": "2.1.1",
"description": "Semantic-release plugin to publish a docker image to the AWS Elastic Container Registry",
"keywords": [
"release",
"semantic-release",
"ecr",
"aws"
],
"keywords": ["release", "semantic-release", "ecr", "aws"],
"homepage": "https://github.com/RimacTechnology/semantic-release-ecr#readme",
"bugs": {
"url": "https://github.com/RimacTechnology/semantic-release-ecr/issues"
Expand All @@ -21,9 +16,7 @@
"default": "./dist/index.js"
}
},
"files": [
"dist"
],
"files": ["dist"],
"scripts": {
"build": "turbo run build:all",
"build:ts": "tsup --config tsup.config.ts",
Expand All @@ -39,37 +32,39 @@
"release": "semantic-release"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
"extends": ["@commitlint/config-conventional"],
"rules": {
"header-max-length": [2, "always", 500],
"body-max-line-length": [2, "always", 500]
}
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"dependencies": {
"@aws-sdk/client-ecr": "^3.720.0"
"@aws-sdk/client-ecr": "^3.726.0"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"@semantic-release/commit-analyzer": "^13.0.0",
"@semantic-release/commit-analyzer": "^13.0.1",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^11.0.1",
"@semantic-release/npm": "^12.0.1",
"@semantic-release/release-notes-generator": "^14.0.2",
"@types/node": "^22.10.3",
"@semantic-release/release-notes-generator": "^14.0.3",
"@types/node": "^22.10.5",
"commitizen": "^4.3.1",
"conventional-changelog-conventionalcommits": "^8.0.0",
"cspell": "^8.17.1",
"husky": "^9.1.7",
"pinst": "^3.0.0",
"semantic-release": "^24.2.0",
"semantic-release": "^24.2.1",
"tsup": "^8.3.5",
"turbo": "^2.3.3",
"typescript": "^5.7.2"
"typescript": "^5.7.3"
},
"peerDependencies": {
"semantic-release": ">=20"
Expand Down
4 changes: 2 additions & 2 deletions src/aws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class AWS {
accessKeyId,
region,
secretAccessKey,
sessionToken
sessionToken,
}
}

Expand All @@ -44,7 +44,7 @@ export class AWS {
credentials: {
accessKeyId,
secretAccessKey,
sessionToken
sessionToken,
},
region,
})
Expand Down
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"skipLibCheck": true,
"esModuleInterop": true,
"lib": ["ES2023", "DOM", "DOM.ITERABLE"],
"moduleResolution": "Node16",
"moduleResolution": "NodeNext",
"forceConsistentCasingInFileNames": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
Expand All @@ -16,8 +16,8 @@
"strict": true,
"allowJs": true,
"outDir": "dist",
"target": "ES2022",
"module": "Node16"
"target": "ES2023",
"module": "NodeNext"
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules"]
Expand Down
Loading

0 comments on commit 195f30e

Please sign in to comment.