diff --git a/.vscode/settings.json b/.vscode/settings.json index 8935f8563..702e51e53 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -35,6 +35,7 @@ "files.readonlyInclude": { // auto-generated "**/.gitignore": true, + "**/aube-lock.yaml": true, "**/bun.lock": true }, diff --git a/aube-lock.yaml b/aube-lock.yaml new file mode 100644 index 000000000..bd633c504 --- /dev/null +++ b/aube-lock.yaml @@ -0,0 +1,65 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + typescript: + specifier: ^6.0.0 + version: 6.0.3 + devDependencies: + '@risu729/tsconfigs': + specifier: 3.0.0 + version: 3.0.0(typescript@6.0.3) + '@types/bun': + specifier: 1.3.14 + version: 1.3.14 + +packages: + + '@risu729/tsconfigs@3.0.0': + resolution: {integrity: sha512-FAYLBHC4KQ9TPSksm2Q8blZPSI08bedKOEE9dMbhbcQmj1I54ZPzqz4i8gqINQubcp4gkLE8kFeX5ZXudVl/9Q==} + peerDependencies: + typescript: ^6.0.0 + + '@types/bun@1.3.14': + resolution: {integrity: sha512-h1hFqFVcvAvD9j9K7ZW7vd82aSA+rTdznZa+5bwvCwqSB1jmmfLcbIWhOLx1/+boy/xmjgCs/OMUL8hRJSmnPw==} + + '@types/node@25.8.0': + resolution: {integrity: sha512-TCFSk8IZh+iLX1xtksoBVtdmgL+1IX0fC9BeU4QqFSuNdN/K+HUlhqOzEmSYYpZUVsLYcPqc9KX+60iDuninSQ==} + + bun-types@1.3.14: + resolution: {integrity: sha512-4N0ig0fEomHt5R0KCFWjovxow98rIoRwKolrYdCcknNwMekCXRnWEUvgu5soYV8QXtVsrUD8B95MBOZGPvr6KQ==} + + typescript@6.0.3: + resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} + hasBin: true + + undici-types@7.24.6: + resolution: {integrity: sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==} + +snapshots: + + '@risu729/tsconfigs@3.0.0(typescript@6.0.3)': + dependencies: + typescript: 6.0.3 + + '@types/bun@1.3.14': + dependencies: + bun-types: 1.3.14 + + '@types/node@25.8.0': + dependencies: + undici-types: 7.24.6 + + bun-types@1.3.14: + dependencies: + '@types/node': 25.8.0 + + typescript@6.0.3: {} + + undici-types@7.24.6: {} diff --git a/bun.lock b/bun.lock deleted file mode 100644 index 7ae5e326c..000000000 --- a/bun.lock +++ /dev/null @@ -1,26 +0,0 @@ -{ - "lockfileVersion": 1, - "configVersion": 1, - "workspaces": { - "": { - "name": "@risu729/dotfiles", - "devDependencies": { - "@risu729/tsconfigs": "3.0.0", - "@types/bun": "1.3.14", - }, - }, - }, - "packages": { - "@risu729/tsconfigs": ["@risu729/tsconfigs@3.0.0", "", { "peerDependencies": { "typescript": "^6.0.0" } }, "sha512-FAYLBHC4KQ9TPSksm2Q8blZPSI08bedKOEE9dMbhbcQmj1I54ZPzqz4i8gqINQubcp4gkLE8kFeX5ZXudVl/9Q=="], - - "@types/bun": ["@types/bun@1.3.14", "", { "dependencies": { "bun-types": "1.3.14" } }, "sha512-h1hFqFVcvAvD9j9K7ZW7vd82aSA+rTdznZa+5bwvCwqSB1jmmfLcbIWhOLx1/+boy/xmjgCs/OMUL8hRJSmnPw=="], - - "@types/node": ["@types/node@25.8.0", "", { "dependencies": { "undici-types": ">=7.24.0 <7.24.7" } }, "sha512-TCFSk8IZh+iLX1xtksoBVtdmgL+1IX0fC9BeU4QqFSuNdN/K+HUlhqOzEmSYYpZUVsLYcPqc9KX+60iDuninSQ=="], - - "bun-types": ["bun-types@1.3.14", "", { "dependencies": { "@types/node": "*" } }, "sha512-4N0ig0fEomHt5R0KCFWjovxow98rIoRwKolrYdCcknNwMekCXRnWEUvgu5soYV8QXtVsrUD8B95MBOZGPvr6KQ=="], - - "typescript": ["typescript@6.0.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw=="], - - "undici-types": ["undici-types@7.24.6", "", {}, "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg=="], - } -} diff --git a/bunfig.toml b/bunfig.toml deleted file mode 100644 index 392891abe..000000000 --- a/bunfig.toml +++ /dev/null @@ -1,5 +0,0 @@ -# ref: https://bun.sh/docs/runtime/bunfig - -[install] -exact = true -auto = "disable" diff --git a/lychee.toml b/lychee.toml index 76965acd1..5d4f645e0 100644 --- a/lychee.toml +++ b/lychee.toml @@ -22,7 +22,7 @@ exclude_path = [ ".lycheecache", # ignore autogenerated files ".gitignore", "wsl/home/.config/git/.gitignore", - "bun.lock", + "aube-lock.yaml", "worker/bun.lock", # ignore binaries "win/powertoys", diff --git a/mise.toml b/mise.toml index 0b4c7b1f9..1424ab2ad 100644 --- a/mise.toml +++ b/mise.toml @@ -43,11 +43,15 @@ experimental = true [settings.npm] package_manager = "aube" -[deps.bun] +[deps.aube] auto = true -sources = ["package.json", "bun.lock"] +sources = ["package.json", "aube-lock.yaml"] outputs = ["node_modules"] -run = "bun install --frozen-lockfile" +run = """ +if [ "${DOTFILES_SKIP_ROOT_AUBE_INSTALL:-}" != "1" ]; then + aube install --frozen-lockfile +fi +""" [deps.bun-worker] auto = true diff --git a/worker/docker/entrypoint.sh b/worker/docker/entrypoint.sh index a8ce583b7..ebd911512 100644 --- a/worker/docker/entrypoint.sh +++ b/worker/docker/entrypoint.sh @@ -56,5 +56,7 @@ echo "==> Successfully sparse-cloned and checked out commit ${GIT_COMMIT_SHA}." sed --in-place '/^min_version/d' mise.toml echo "==> Removed min_version from mise.toml." +# Worker preview should only install worker dependencies with Bun. +export DOTFILES_SKIP_ROOT_AUBE_INSTALL=1 # --host required to be accessible from other containers exec /bin/bash -c "mise run worker:preview --host"