diff --git a/.devcontainer/bin/update_content.sh b/.devcontainer/bin/update_content.sh new file mode 100755 index 0000000..cbef872 --- /dev/null +++ b/.devcontainer/bin/update_content.sh @@ -0,0 +1,7 @@ +#!/bin/sh -e + +# If a Trunk configuration directory exists, upgrade Trunk (functionally +# initializing the tool for the first time in this workspace) +if test -d ./.trunk; then + trunk upgrade +fi diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 356dc5f..b966b9f 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,7 @@ { "image": "ghcr.io/nomirose/devcontainer:edge", "remoteUser": "root", + "updateContentCommand": ".devcontainer/bin/update_content.sh", "customizations": { "vscode": { "settings": {}, diff --git a/.trunk/trunk.yaml b/.trunk/trunk.yaml index 576236e..84f9c24 100644 --- a/.trunk/trunk.yaml +++ b/.trunk/trunk.yaml @@ -25,7 +25,7 @@ runtimes: - node@16.14.2 actions: enabled: - - trunk-fmt-pre-commit - - trunk-check-pre-push - - commitlint + # - trunk-fmt-pre-commit + # - trunk-check-pre-push + # - commitlint - trunk-upgrade-available