Skip to content

Commit 1b424f8

Browse files
fix: update dependency @dword-design/base to v16 (#132)
BREAKING CHANGE: node.js >= 22
1 parent bfbe9d1 commit 1b424f8

29 files changed

+11683
-12205
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": "with-local-tmp-dir", "description": "Creates a temporary folder inside cwd, cds inside the folder, runs a function, and removes the folder. Especially useful for testing." },
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": "Creates a temporary folder inside cwd, cds inside the folder, runs a function, and removes the folder. Especially useful for testing.", "repository": "with-local-tmp-dir" },
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: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
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+
"image": "dworddesign/devcontainer",
3+
"postCreateCommand": "pnpm install --frozen-lockfile"
74
}

.eslintrc.json

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

.github/workflows/build.yml

Lines changed: 33 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,78 @@
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: 22
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 lint
2622
- env:
2723
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
2824
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2925
name: Push changed files
30-
run: yarn dw-ci push-changed-files
26+
run: pnpm dw-ci push-changed-files
3127
- env:
3228
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3429
if: github.ref == 'refs/heads/master'
3530
name: Release
36-
run: yarn semantic-release
31+
run: pnpm semantic-release
3732
test:
38-
needs: cancel-existing
3933
runs-on: ${{ matrix.os }}
4034
steps:
41-
- uses: actions/checkout@v3
35+
- uses: actions/checkout@v4
4236
with:
43-
fetch-depth: 0
4437
lfs: true
45-
- uses: actions/setup-node@v3
38+
- uses: actions/setup-node@v4
4639
with:
40+
check-latest: true
4741
node-version: ${{ matrix.node }}
48-
- run: yarn --frozen-lockfile
42+
- run: corepack enable
43+
- run: pnpm install --frozen-lockfile
4944
- env:
5045
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51-
run: yarn test
52-
- if: failure()
53-
uses: actions/upload-artifact@v3
46+
run: pnpm verify
47+
- if: always()
48+
uses: actions/upload-artifact@v4
5449
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
50+
if-no-files-found: ignore
51+
name: Data from tests
52+
path: test-results/*/**
53+
- if: matrix.os == 'ubuntu-latest' && matrix.node == 22
54+
uses: codecov/codecov-action@v5
5955
with:
6056
token: ${{ secrets.CODECOV_TOKEN }}
6157
strategy:
6258
matrix:
6359
include:
64-
- node: 14
65-
os: ubuntu-latest
66-
- node: 16
60+
- node: 22
6761
os: ubuntu-latest
68-
- node: 18
62+
- node: 24
6963
os: ubuntu-latest
70-
- node: 16
64+
- node: 22
7165
os: macos-latest
72-
- node: 16
66+
- node: 22
7367
os: windows-latest
7468
name: build
7569
on:
7670
pull_request: {}
7771
push:
7872
branches:
7973
- master
74+
permissions:
75+
contents: write
76+
id-token: write
77+
issues: write
78+
pull-requests: write

.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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
.DS_Store
22
/.env.json
3-
/.nyc_output
3+
/.pnpm-store
44
/.test.env.json
5+
/codecov
6+
/codecov.SHA256SUM
7+
/codecov.SHA256SUM.sig
58
/coverage
69
/dist
710
/node_modules
11+
/test-results

.gitpod.Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Need to add :latest, otherwise old versions (e.g. of node) are installed
2-
FROM gitpod/workspace-full:latest
2+
FROM gitpod/workspace-full-vnc:latest
33

44
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
55
RUN sudo apt-get install git-lfs
66
RUN git lfs install
77

88
# https://www.gitpod.io/docs/languages/javascript
9-
RUN bash -c 'VERSION="16" && source $HOME/.nvm/nvm.sh && nvm install $VERSION && nvm use $VERSION && nvm alias default $VERSION'
10-
11-
RUN echo "\nexport PATH=$(yarn global bin):\$PATH" >> /home/gitpod/.bashrc
9+
# https://github.com/gitpod-io/gitpod/issues/945
10+
RUN bash -c 'source $HOME/.nvm/nvm.sh && nvm install 22'
11+
RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix
1212

1313
RUN yarn global add gitpod-env-per-project @babel/node @babel/core
1414

0 commit comments

Comments
 (0)