Skip to content

Commit 7eebb76

Browse files
fix: lock file maintenance (#121)
BREAKING CHANGE: node.js >= 20 BREAKING CHANGE: some type changes, mostly added some generics BREAKING CHANGE: dropped tmp dependency. i took over most options, if something is missing, feel free to open an issue
1 parent b1b500a commit 7eebb76

31 files changed

+9106
-11726
lines changed

.babelrc.json

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

.baserc.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "@dword-design/node",
33
"seeAlso": [
4-
{ "repository": "output-files", "description": "Output a tree of files and directories by providing an object. Especially useful for testing with real files." },
5-
{ "repository": "expect-mocha-image-snapshot", "description": "A wrapper around jest-image-snapshot that makes it compatible to Mocha." },
6-
{ "repository": "jest-image-matcher", "description": "A Jest matcher for image comparisons based on pixelmatch. Can also be used with Mocha. Useful for visual regression testing." },
7-
{ "repository": "unify-mocha-output", "description": "Adjusts a Mocha output so that it is consistent across platforms and can be used for snapshot testing. Basically adjusts the checkmark symbol and removes time values." },
8-
{ "repository": "mock-argv", "description": "Temporarily overrides the command line arguments. This is useful for testing." }
4+
{ "description": "Output a tree of files and directories by providing an object. Especially useful for testing with real files.", "repository": "output-files" },
5+
{ "description": "A wrapper around jest-image-snapshot that makes it compatible to Mocha.", "repository": "expect-mocha-image-snapshot" },
6+
{ "description": "A Jest matcher for image comparisons based on pixelmatch. Can also be used with Mocha. Useful for visual regression testing.", "repository": "jest-image-matcher" },
7+
{ "description": "Adjusts a Mocha output so that it is consistent across platforms and can be used for snapshot testing. Basically adjusts the checkmark symbol and removes time values.", "repository": "unify-mocha-output" },
8+
{ "description": "Temporarily overrides the command line arguments. This is useful for testing.", "repository": "mock-argv" }
99
]
1010
}

.devcontainer/devcontainer.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
{
2-
"features": {
3-
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
4-
},
5-
"image": "mcr.microsoft.com/devcontainers/javascript-node:0-16",
6-
"updateContentCommand": "yarn --frozen-lockfile"
2+
"postCreateCommand": "bash .devcontainer/postcreate.sh"
73
}

.devcontainer/postcreate.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Doppler ######################################################
2+
# See https://docs.doppler.com/docs/install-cli#installation
3+
sudo apt-get update && sudo apt-get install -y apt-transport-https ca-certificates curl gnupg
4+
curl -sLf --retry 3 --tlsv1.2 --proto "=https" 'https://packages.doppler.com/public/cli/gpg.DE2A7741A397C129.key' | sudo gpg --dearmor -o /usr/share/keyrings/doppler-archive-keyring.gpg
5+
echo "deb [signed-by=/usr/share/keyrings/doppler-archive-keyring.gpg] https://packages.doppler.com/public/cli/deb/debian any-version main" | sudo tee /etc/apt/sources.list.d/doppler-cli.list
6+
sudo apt-get update && sudo apt-get install doppler
7+
# ##############################################################
8+
9+
pnpm install --frozen-lockfile

.eslintrc.json

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

.github/workflows/build.yml

Lines changed: 29 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,71 @@
1+
concurrency:
2+
cancel-in-progress: true
3+
group: ${{ github.workflow }}-${{ github.ref }}
14
jobs:
2-
cancel-existing:
3-
if: "!contains(github.event.head_commit.message, '[skip ci]')"
4-
runs-on: ubuntu-latest
5-
steps:
6-
- env:
7-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8-
uses: rokroskar/workflow-run-cleanup-action@v0.3.3
95
release:
106
needs: test
117
runs-on: ubuntu-latest
128
steps:
13-
- uses: actions/checkout@v3
9+
- uses: actions/checkout@v4
1410
with:
1511
lfs: true
1612
ref: ${{ github.event.pull_request.head.repo.full_name == github.repository &&
1713
github.event.pull_request.head.ref || '' }}
18-
- uses: actions/setup-node@v3
14+
- uses: actions/setup-node@v4
1915
with:
20-
node-version: 16
16+
node-version: 20
17+
- run: corepack enable
2118
- run: git config --global user.email "actions@github.com"
2219
- run: git config --global user.name "GitHub Actions"
23-
- run: yarn --frozen-lockfile
24-
- run: yarn checkUnknownFiles
25-
- run: yarn lint
20+
- run: pnpm install --frozen-lockfile
21+
- run: pnpm checkUnknownFiles
22+
- run: pnpm lint
2623
- env:
2724
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
2825
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2926
name: Push changed files
30-
run: yarn dw-ci push-changed-files
27+
run: pnpm dw-ci push-changed-files
3128
- env:
3229
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3330
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3431
if: github.ref == 'refs/heads/master'
3532
name: Release
36-
run: yarn semantic-release
33+
run: pnpm semantic-release
3734
test:
38-
needs: cancel-existing
3935
runs-on: ${{ matrix.os }}
4036
steps:
41-
- uses: actions/checkout@v3
37+
- uses: actions/checkout@v4
4238
with:
43-
fetch-depth: 0
4439
lfs: true
45-
- uses: actions/setup-node@v3
40+
- uses: actions/setup-node@v4
4641
with:
42+
check-latest: true
4743
node-version: ${{ matrix.node }}
48-
- run: yarn --frozen-lockfile
44+
- run: corepack enable
45+
- run: pnpm install --frozen-lockfile
4946
- env:
5047
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51-
run: yarn test
52-
- if: failure()
53-
uses: actions/upload-artifact@v3
48+
run: pnpm verify
49+
- if: always()
50+
uses: actions/upload-artifact@v4
5451
with:
55-
name: Image Snapshot Diffs
56-
path: "**/__image_snapshots__/__diff_output__"
57-
- if: matrix.os == 'ubuntu-latest' && matrix.node == 16
58-
uses: codecov/codecov-action@v3
52+
if-no-files-found: ignore
53+
name: Data from tests
54+
path: test-results/*/**
55+
- if: matrix.os == 'ubuntu-latest' && matrix.node == 20
56+
uses: codecov/codecov-action@v5
5957
with:
6058
token: ${{ secrets.CODECOV_TOKEN }}
6159
strategy:
6260
matrix:
6361
include:
64-
- node: 14
65-
os: ubuntu-latest
66-
- node: 16
62+
- node: 20
6763
os: ubuntu-latest
68-
- node: 18
64+
- node: 22
6965
os: ubuntu-latest
70-
- node: 16
66+
- node: 20
7167
os: macos-latest
72-
- node: 16
68+
- node: 20
7369
os: windows-latest
7470
name: build
7571
on:

.github/workflows/deprecated-dependencies.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ jobs:
22
run:
33
runs-on: ubuntu-latest
44
steps:
5-
- uses: actions/checkout@v3
5+
- uses: actions/checkout@v4
66
with:
77
lfs: true
88
- continue-on-error: true
@@ -20,11 +20,11 @@ jobs:
2020
update_existing: true
2121
- if: ${{ !steps.check-deprecated-js-deps.outputs.deprecated &&
2222
steps.create-deprecation-issue.outputs.number }}
23-
uses: peter-evans/close-issue@v2
23+
uses: peter-evans/close-issue@v3
2424
with:
2525
comment: Auto-closing the issue
2626
issue-number: ${{ steps.create-deprecation-issue.outputs.number }}
27-
- uses: gautamkrishnar/keepalive-workflow@v1
27+
- uses: liskin/gh-workflow-keepalive@v1
2828
name: deprecated-dependencies
2929
on:
3030
schedule:

.github/workflows/sync-labels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ jobs:
22
build:
33
runs-on: ubuntu-latest
44
steps:
5-
- uses: actions/checkout@v3
5+
- uses: actions/checkout@v4
66
- env:
77
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88
uses: micnncim/action-label-syncer@v1

.github/workflows/sync-metadata.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ jobs:
22
build:
33
runs-on: ubuntu-latest
44
steps:
5-
- uses: actions/checkout@v3
5+
- uses: actions/checkout@v4
66
- uses: jaid/action-sync-node-meta@v2.0.0
77
with:
88
approve: false
99
commitMessage: "fix: write GitHub metadata to package.json [{changes}]"
1010
githubToken: ${{ secrets.GITHUB_TOKEN }}
11-
- uses: gautamkrishnar/keepalive-workflow@v1
11+
- uses: liskin/gh-workflow-keepalive@v1
1212
name: sync-metadata
1313
on:
1414
schedule:

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
/.env.json
33
/.nyc_output
44
/.test.env.json
5+
/codecov
6+
/codecov.SHA256SUM
7+
/codecov.SHA256SUM.sig
58
/coverage
69
/dist
710
/node_modules
11+
/test-results

0 commit comments

Comments
 (0)