Skip to content

Commit f52440e

Browse files
authored
chore: bump all (dev)Dependencies and fix related usage issues (#206)
1 parent f8b9eb8 commit f52440e

32 files changed

+5241
-7072
lines changed

.changeset/chatty-pumas-applaud.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"pretty-quick": minor
3+
---
4+
5+
chore(deps): cleanup dependencies by migrating `find-up` to `findUp` from [`@pkgr/core`](https://github.com/un-ts/pkgr/tree/master/packages/core)

.github/FUNDING.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ github:
55
- rx-ts
66
- un-ts
77
patreon: 1stG
8-
open_collective: unts
8+
open_collective: pretty-quick
99
custom:
10+
- https://opencollective.com/prettier-eslint
1011
- https://opencollective.com/1stG
1112
- https://opencollective.com/rxts
12-
- https://afdian.net/@JounQin
13+
- https://opencollective.com/unrs
14+
- https://opencollective.com/unts
15+
- https://afdian.com/a/JounQin

.github/workflows/autofix.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: autofix.ci # For security reasons, the workflow in which the autofix.ci action is used must be named "autofix.ci".
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- synchronize
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
permissions:
15+
contents: write
16+
17+
jobs:
18+
autofix:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout Repo
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
24+
- name: Setup Node.js LTS
25+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
26+
with:
27+
node-version: lts/*
28+
cache: yarn
29+
30+
- name: Install dependencies
31+
run: yarn --immutable
32+
33+
- name: Format Codes
34+
run: yarn format
35+
36+
- name: Apply autofix.ci
37+
uses: autofix-ci/action@2891949f3779a1cafafae1523058501de3d4e944 # v1
38+
with:
39+
fail-fast: false

.github/workflows/ci.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ concurrency:
88
group: ${{ github.workflow }}-${{ github.ref }}
99
cancel-in-progress: true
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
ci:
1316
name: Lint and Test with Node.js ${{ matrix.node }} on ${{ matrix.os }}
@@ -21,22 +24,27 @@ jobs:
2124
- 22
2225
os:
2326
- ubuntu-latest
27+
fail-fast: false
2428
runs-on: ${{ matrix.os }}
2529
steps:
2630
- name: Checkout Repo
27-
uses: actions/checkout@v4
31+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2832

2933
- name: Setup Node.js ${{ matrix.node }}
30-
uses: actions/setup-node@v4
34+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
3135
with:
3236
node-version: ${{ matrix.node }}
3337
cache: yarn
3438

3539
- name: Install Dependencies
3640
run: yarn --immutable
3741

38-
- name: Build and Test
39-
run: yarn run-s build test
42+
- name: Build
43+
if: matrix.node != 14
44+
run: yarn build
45+
46+
- name: Test
47+
run: yarn test
4048

4149
- name: Lint
4250
run: yarn lint
@@ -46,4 +54,6 @@ jobs:
4654
PARSER_NO_WATCH: true
4755

4856
- name: Codecov
49-
uses: codecov/codecov-action@v3
57+
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
58+
with:
59+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/codeql.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/workflows/pkg-pr-new.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish Any Commit
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
publish:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout Repo
20+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21+
22+
- name: Setup Node.js LTS
23+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
24+
with:
25+
node-version: lts/*
26+
cache: yarn
27+
28+
- name: Install dependencies
29+
run: yarn --immutable
30+
31+
- name: Build
32+
run: yarn build
33+
34+
- name: Publish
35+
run: yarn dlx pkg-pr-new publish --compact

.github/workflows/pkg-size.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Package Size Report
2+
3+
on:
4+
- pull_request
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
pkg-size-report:
15+
name: Package Size Report
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21+
22+
- name: Package Size Report
23+
uses: pkg-size/action@a637fb0897b6f14f18e776d8c3dbccb34a1ad27b # v1.1.1
24+
continue-on-error: true
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,28 @@ on:
55
branches:
66
- master
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
permissions:
13+
contents: write
14+
id-token: write
15+
pull-requests: write
16+
817
jobs:
918
release:
1019
name: Release
1120
runs-on: ubuntu-latest
1221
steps:
1322
- name: Checkout Repo
14-
uses: actions/checkout@v4
23+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1524
with:
1625
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1726
fetch-depth: 0
1827

1928
- name: Setup Node.js LTS
20-
uses: actions/setup-node@v4
29+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2130
with:
2231
node-version: lts/*
2332
cache: yarn
@@ -36,4 +45,5 @@ jobs:
3645
publish: yarn release
3746
env:
3847
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
NPM_CONFIG_PROVENANCE: true
3949
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/size-limit.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,29 @@ on:
55
branches:
66
- master
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
permissions:
13+
contents: read
14+
815
jobs:
916
size-limit:
1017
runs-on: ubuntu-latest
1118
steps:
12-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1320

1421
- name: Setup Node.js LTS
15-
uses: actions/setup-node@v4
22+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
1623
with:
1724
node-version: lts/*
1825
cache: yarn
1926

2027
- name: Install Dependencies
2128
run: yarn --immutable
2229

23-
- uses: andresz1/size-limit-action@v1
30+
- uses: andresz1/size-limit-action@94bc357df29c36c8f8d50ea497c3e225c3c95d1d # v1.8.0.8.0
2431
with:
2532
github_token: ${{ secrets.GITHUB_TOKEN }}
2633
skip_step: install

.lintstagedrc.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

.nano-staged.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from '@1stg/nano-staged/tsc'

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
20

.prettierignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
coverage
2-
lib
3-
/.yarn
1+
.yarn

.simple-git-hooks.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

.simple-git-hooks.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from '@1stg/simple-git-hooks'

.yarnrc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ nodeLinker: node-modules
88

99
plugins:
1010
- path: .yarn/plugins/plugin-prepare-lifecycle.cjs
11-
spec: "https://github.com/un-es/yarn-plugin-prepare-lifecycle/releases/download/v0.0.1/index.js"
11+
spec: 'https://github.com/un-es/yarn-plugin-prepare-lifecycle/releases/download/v0.0.1/index.js'
1212
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
13-
spec: "@yarnpkg/plugin-interactive-tools"
13+
spec: '@yarnpkg/plugin-interactive-tools'
1414

1515
yarnPath: .yarn/releases/yarn-3.6.4.cjs

eslint.config.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import base from '@1stg/eslint-config'
2+
3+
export default [
4+
...base,
5+
{
6+
rules: {
7+
'@typescript-eslint/no-duplicate-type-constituents': 'off',
8+
'unicorn-x/prefer-node-protocol': 'off',
9+
},
10+
},
11+
]

0 commit comments

Comments
 (0)