Skip to content

Commit

Permalink
[fix] Package Name lowercase & Console logging
Browse files Browse the repository at this point in the history
[optimize] update Upstream packages
  • Loading branch information
TechQuery committed Aug 9, 2024
1 parent de0867b commit c7d4ad9
Show file tree
Hide file tree
Showing 6 changed files with 325 additions and 348 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/init-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
env:
TEMPLATE_OWNER: idea2app
TEMPLATE_NAME: REST-Node-ts
REPOSITORY_OWNER: ${{ github.repository_owner }}
REPOSITORY_NAME: ${{ github.event.repository.name }}

jobs:
replace-repository-name:
Expand All @@ -16,11 +18,16 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: transform Repository variables to lower case
run: |
echo "REPOSITORY_OWNER=${REPOSITORY_OWNER@L}" >> "${GITHUB_ENV}"
echo "REPOSITORY_NAME=${REPOSITORY_NAME@L}" >> "${GITHUB_ENV}"
- if: github.repository != format('{0}/{1}', env.TEMPLATE_OWNER, env.TEMPLATE_NAME)
run: |
sh .github/workflows/replace-repository-name.sh \
${{ env.TEMPLATE_OWNER }} ${{ env.TEMPLATE_NAME }} \
${{ github.repository_owner }} ${{ github.event.repository.name }}
${{ env.REPOSITORY_OWNER }} ${{ env.REPOSITORY_NAME }}
git checkout -- .github/workflows/init-template.yml
- uses: stefanzweifel/git-auto-commit-action@v5
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@
"@types/jsonwebtoken": "^9.0.6",
"@types/koa": "^2.15.0",
"@types/koa-logger": "^3.1.5",
"@types/node": "^18.19.40",
"@typescript-eslint/eslint-plugin": "^7.16.1",
"@typescript-eslint/parser": "^7.16.1",
"@types/node": "^18.19.43",
"@typescript-eslint/eslint-plugin": "^8.0.1",
"@typescript-eslint/parser": "^8.0.1",
"eslint": "^8.57.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"husky": "^9.0.11",
"lint-staged": "^15.2.7",
"husky": "^9.1.4",
"lint-staged": "^15.2.8",
"prettier": "^3.3.3",
"sqlite3": "^5.1.7",
"ts-node-dev": "^2.0.0",
"typescript": "~5.5.3"
"typescript": "~5.5.4"
},
"prettier": {
"singleQuote": true,
Expand Down
Loading

0 comments on commit c7d4ad9

Please sign in to comment.