Skip to content

Commit

Permalink
perf: up deps
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed May 14, 2023
1 parent f6c18c4 commit de65c18
Show file tree
Hide file tree
Showing 10 changed files with 1,138 additions and 1,039 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push, pull_request]
jobs:
build:
name: build
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -37,7 +37,7 @@ jobs:
test_push:
needs: build
if: github.event_name == 'push'
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -74,8 +74,8 @@ jobs:
needs: build
strategy:
matrix:
os: [ ubuntu-20.04 ]
node-version: [ 14, 18 ]
os: [ ubuntu-22.04 ]
node-version: [ 14, 18, 20 ]
name: Test (Node v${{ matrix.node-version }}, OS ${{ matrix.os }})
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -92,19 +92,19 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: yarn
- name: Test only
if: matrix.node-version != '18' || matrix.os != 'ubuntu-20.04'
if: matrix.node-version != '18' || matrix.os != 'ubuntu-22.04'
run: yarn test

- name: Test & push coverage
if: matrix.node-version == '18' && matrix.os == 'ubuntu-20.04'
if: matrix.node-version == '18' && matrix.os == 'ubuntu-22.04'
run: yarn test

release:
name: Release
# https://github.saobby.my.eu.orgmunity/t/trigger-job-on-tag-push-only/18076
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
needs: test_push
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ flow-coverage
lib-cov
coverage
.nyc_output
coverage.*

# Bundle
build
Expand Down
70 changes: 0 additions & 70 deletions .travis.disabled.yml

This file was deleted.

154 changes: 0 additions & 154 deletions coverage.total.json

This file was deleted.

37 changes: 19 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,29 +58,30 @@
"homepage": "https://github.com/qiwi/license#readme",
"dependencies": {
"lodash-es": "^4.17.21",
"meow": "^10.1.3",
"tslib": "^2.4.0"
"meow": "^12.0.1",
"tslib": "^2.5.0"
},
"devDependencies": {
"@qiwi/libdefkit": "^4.0.8",
"@qiwi/substrate": "^2.0.0",
"@types/jest": "^29.0.0",
"@qiwi/libdefkit": "^5.0.0",
"@qiwi/substrate": "^2.0.3",
"@types/jest": "^29.5.1",
"@types/jest-json-schema": "^6.1.1",
"@types/lodash-es": "^4.17.6",
"@types/lodash-es": "^4.17.7",
"@types/meow": "^6.0.0",
"c8": "^7.12.0",
"@types/node": "^20.1.4",
"c8": "^7.13.0",
"earljs": "^0.2.3",
"eslint": "^8.20.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-qiwi": "^1.17.4",
"execa": "^6.1.0",
"microbundle": "^0.15.0",
"rimraf": "^3.0.2",
"terser": "^5.14.2",
"tsc-esm-fix": "^2.20.0",
"tsm": "^2.2.2",
"typedoc": "^0.24.0",
"typescript": "^4.7.4",
"eslint": "^8.40.0",
"eslint-config-prettier": "^8.8.0",
"eslint-config-qiwi": "^2.1.3",
"execa": "^7.1.1",
"microbundle": "^0.15.1",
"rimraf": "^5.0.0",
"terser": "^5.17.3",
"tsc-esm-fix": "^2.20.14",
"tsm": "^2.3.0",
"typedoc": "^0.24.7",
"typescript": "^5.0.4",
"uvu": "^0.5.6"
},
"author": "QIWI <orensource@qiwi.com>",
Expand Down
16 changes: 8 additions & 8 deletions src/main/ts/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,35 +27,35 @@ export const cli = meow(`
flags: {
lang: {
type: 'string',
alias: 'l',
shortFlag: 'l',
},
year: {
type: 'string',
alias: 'y',
shortFlag: 'y',
},
dir: {
type: 'string',
alias: 'd',
shortFlag: 'd',
},
cwd: {
type: 'string',
alias: 'c',
shortFlag: 'c',
},
file: {
type: 'string',
alias: 'f',
shortFlag: 'f',
},
name: {
type: 'string',
alias: 'n',
shortFlag: 'n',
},
type: {
type: 'string',
alias: 't',
shortFlag: 't',
},
patchPkgJson: {
type: 'boolean',
alias: 't',
shortFlag: 't',
},
},
})
Expand Down
6 changes: 3 additions & 3 deletions src/main/ts/license.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {mkdirSync,readFileSync, writeFileSync} from 'fs'
import {mkdirSync,readFileSync, writeFileSync} from 'node:fs'
import {resolve} from 'node:path'
import {template} from 'lodash-es'
import {resolve} from 'path'

import {
IRenderOpts,
Expand All @@ -11,7 +11,7 @@ const readPkgPkgJson = (cwd: string = process.cwd()) => {
try {
return JSON.parse(readFileSync(resolve(cwd, 'package.json'), 'utf-8'))
}
catch (e) {
catch {
return {}
}
}
Expand Down
Loading

0 comments on commit de65c18

Please sign in to comment.