create-disposabl-app 0.14.2 → 0.14.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/disposabl.js CHANGED
@@ -5,7 +5,7 @@ import { lock } from "proper-lockfile";
5
5
  // ../cli/package.json
6
6
  var package_default = {
7
7
  name: "@disposabl/cli",
8
- version: "0.14.2",
8
+ version: "0.14.3",
9
9
  type: "module",
10
10
  description: "Command-line access to your Disposabl app",
11
11
  license: "MIT",
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import { fileURLToPath as fileURLToPath2 } from "node:url";
8
8
  import { Command, CommanderError } from "commander";
9
9
  import * as p2 from "@clack/prompts";
10
10
  // package.json
11
- var version = "0.14.2";
11
+ var version = "0.14.3";
12
12
 
13
13
  // ../disposabl-kit/platforms.ts
14
14
  var platforms = [
@@ -3,19 +3,20 @@ set -euo pipefail
3
3
 
4
4
  case "${1:?operation required}" in
5
5
  prepare)
6
- df -h .
6
+ df -Pk .
7
7
  # Only disposable GitHub-hosted Linux runners. Keep Android, Java, Node,
8
8
  # the checkout and dependency caches intact; these toolchains are unused.
9
9
  if [[ "${GITHUB_ACTIONS:-}" == true && "${RUNNER_ENVIRONMENT:-}" == github-hosted && "${RUNNER_OS:-}" == Linux ]]; then
10
10
  unused=(/usr/share/dotnet /usr/local/.ghcup /opt/ghc /opt/hostedtoolcache/CodeQL
11
- /usr/share/swift /usr/share/miniconda /opt/microsoft/powershell /usr/local/share/powershell)
12
- du -sh -- "${unused[@]}" 2>/dev/null || true
11
+ /usr/share/swift /usr/share/miniconda /opt/microsoft/powershell /usr/local/share/powershell
12
+ /usr/local/share/vcpkg /home/linuxbrew)
13
+ du -sk -- "${unused[@]}" 2>/dev/null || true
13
14
  sudo rm -rf -- "${unused[@]}"
14
15
  fi
15
- df -h .
16
+ df -Pk .
16
17
  ;;
17
18
  check)
18
- df -h .
19
+ df -Pk .
19
20
  available=$(df -Pk . | awk 'END {print $4}')
20
21
  if [[ ! "$available" =~ ^[0-9]+$ ]] || (( available < 25 * 1024 * 1024 )); then
21
22
  echo '::error::Android native builds require at least 25 GiB free before prebuild. Use a runner with more disk capacity.' >&2
@@ -60,7 +60,7 @@ test("Android disk preparation only removes unused hosted-runner toolchains", ()
60
60
  assert.equal(run("prepare").status, 0);
61
61
  assert.equal(
62
62
  readFileSync(calls, "utf8"),
63
- "rm -rf -- /usr/share/dotnet /usr/local/.ghcup /opt/ghc /opt/hostedtoolcache/CodeQL /usr/share/swift /usr/share/miniconda /opt/microsoft/powershell /usr/local/share/powershell\n",
63
+ "rm -rf -- /usr/share/dotnet /usr/local/.ghcup /opt/ghc /opt/hostedtoolcache/CodeQL /usr/share/swift /usr/share/miniconda /opt/microsoft/powershell /usr/local/share/powershell /usr/local/share/vcpkg /home/linuxbrew\n",
64
64
  );
65
65
  assert.equal(run("check").status, 0);
66
66
  assert.equal(run("check", { AVAILABLE: "26214400" }).status, 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-disposabl-app",
3
- "version": "0.14.2",
3
+ "version": "0.14.3",
4
4
  "description": "Create a Disposabl app",
5
5
  "type": "module",
6
6
  "license": "MIT",