Skip to content

Commit 6a15786

Browse files
fix: lock file maintenance (#79)
BREAKING CHANGE: drop node 12 support, switch to ESM
1 parent 57990f3 commit 6a15786

17 files changed

+4248
-3471
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,28 @@ jobs:
66
- env:
77
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88
uses: rokroskar/[email protected]
9-
- uses: actions/checkout@v2
9+
- uses: actions/checkout@v3
1010
with:
1111
fetch-depth: 0
1212
lfs: true
1313
ref: ${{ github.event.pull_request.head.repo.full_name == github.repository &&
1414
github.event.pull_request.head.ref || '' }}
15-
- uses: actions/setup-node@v2
15+
- uses: actions/setup-node@v3
1616
with:
17-
node-version: 14
17+
node-version: 16
1818
- run: git config --global user.email "[email protected]"
1919
- run: git config --global user.name "GitHub Actions"
2020
- run: yarn --frozen-lockfile
21-
- run: yarn test
21+
- env:
22+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
run: yarn test
2224
- if: failure()
23-
uses: actions/upload-artifact@v2
25+
uses: actions/upload-artifact@v3
2426
with:
2527
name: Image Snapshot Diffs
2628
path: "**/__image_snapshots__/__diff_output__"
27-
- uses: codecov/codecov-action@v2
29+
- uses: codecov/codecov-action@v3
2830
with:
29-
fail_ci_if_error: true
3031
token: ${{ secrets.CODECOV_TOKEN }}
3132
- run: yarn checkUnknownFiles
3233
- env:

.github/workflows/deprecated-dependencies.yml

Lines changed: 3 additions & 2 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@v2
5+
- uses: actions/checkout@v3
66
with:
77
lfs: true
88
- continue-on-error: true
@@ -20,10 +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@v1
23+
uses: peter-evans/close-issue@v2
2424
with:
2525
comment: Auto-closing the issue
2626
issue-number: ${{ steps.create-deprecation-issue.outputs.number }}
27+
- uses: gautamkrishnar/keepalive-workflow@v1
2728
name: deprecated-dependencies
2829
on:
2930
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@v2
5+
- uses: actions/checkout@v3
66
- env:
77
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88
uses: micnncim/action-label-syncer@v1

.github/workflows/sync-metadata.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ jobs:
22
build:
33
runs-on: ubuntu-latest
44
steps:
5-
- uses: actions/checkout@v2
5+
- uses: actions/checkout@v3
66
- uses: jaid/[email protected]
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
1112
name: sync-metadata
1213
on:
1314
schedule:

.gitpod.Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,17 @@ FROM gitpod/workspace-full:latest
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
7+
8+
# 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+
RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix
11+
712
RUN echo "\nexport PATH=$(yarn global bin):\$PATH" >> /home/gitpod/.bashrc
13+
814
RUN yarn global add gitpod-env-per-project @babel/node @babel/core
15+
916
RUN sudo apt-get install -y graphviz
17+
1018
RUN brew install gh
1119

1220
# Puppeteer dependencies

.husky/post-checkout

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
2-
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-checkout.\n"; exit 2; }
2+
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/post-checkout'.\n"; exit 2; }
33
git lfs post-checkout "$@"

.husky/post-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
2-
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-commit.\n"; exit 2; }
2+
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/post-commit'.\n"; exit 2; }
33
git lfs post-commit "$@"

.husky/post-merge

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
2-
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-merge.\n"; exit 2; }
2+
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/post-merge'.\n"; exit 2; }
33
git lfs post-merge "$@"

.husky/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
2-
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/pre-push.\n"; exit 2; }
2+
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/pre-push'.\n"; exit 2; }
33
git lfs pre-push "$@"

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"funding": "https://github.com/sponsors/dword-design",
77
"license": "MIT",
88
"author": "Sebastian Landwehr <[email protected]>",
9+
"type": "module",
910
"main": "dist/index.ssr.js",
1011
"unpkg": "dist/index.min.js",
1112
"module": "dist/index.esm.js",
@@ -24,19 +25,19 @@
2425
},
2526
"dependencies": {
2627
"mermaid": "^8.8.3",
27-
"nanoid": "^3.1.25"
28+
"nanoid": "^3"
2829
},
2930
"devDependencies": {
30-
"@dword-design/base": "^8.0.0",
31+
"@dword-design/base": "^9.1.10",
3132
"@dword-design/base-config-component": "^1.1.7",
3233
"@dword-design/functions": "^4.0.0",
33-
"@dword-design/puppeteer": "^5.0.0",
34+
"@dword-design/puppeteer": "^6.0.0",
3435
"@dword-design/tester": "^2.0.0",
3536
"@dword-design/tester-plugin-component": "^2.0.0",
3637
"@dword-design/tester-plugin-puppeteer": "^2.0.0"
3738
},
3839
"engines": {
39-
"node": ">=12"
40+
"node": ">=14"
4041
},
4142
"publishConfig": {
4243
"access": "public"

0 commit comments

Comments
 (0)