@norskvideo/ctl-dev-kit 0.2.80 → 0.2.81

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.
@@ -20,6 +20,12 @@ name: bump
20
20
  on:
21
21
  schedule:
22
22
  - cron: "17 4 * * *"
23
+ # Sent, through ci-workflows' fan-out, when something this repo pins is
24
+ # published (the norsk nightly, Studio's manifest pair, norsk-ctl latest), so
25
+ # the pins move the same day rather than at the next 04:17. client_payload
26
+ # may name components; it defaults to the pins.
27
+ repository_dispatch:
28
+ types: [upstream-published]
23
29
  workflow_dispatch:
24
30
  inputs:
25
31
  components:
@@ -117,7 +123,7 @@ jobs:
117
123
  - name: Choose the components to move
118
124
  id: select
119
125
  env:
120
- COMPONENTS: ${{ inputs.components }}
126
+ COMPONENTS: ${{ inputs.components || github.event.client_payload.components || (github.event_name == 'repository_dispatch' && 'pins' || 'all') }}
121
127
  run: |
122
128
  set -euo pipefail
123
129
  devkit=0; ctl=0; pins=0
@@ -478,17 +484,20 @@ jobs:
478
484
  run: |
479
485
  nix develop .#build --command bash -c '
480
486
  set -euo pipefail
487
+ # --ignore-scripts: a repo whose own prepare (relay: tsc) fails on
488
+ # main would kill the bump that fixes it (2026-10-14). The gate
489
+ # below installs for real, so a tree that does not build drafts.
481
490
  # Per INSTALL ROOT, not per repo: the rewrites walk every tracked
482
491
  # package.json, and a manifest outside the root workspace list (funke
483
492
  # proxy/ui) owns a lockfile a root-only install never regenerates.
484
493
  for lock in $(git ls-files "*bun.lock"); do
485
- (cd "$(dirname "$lock")" && bun install)
494
+ (cd "$(dirname "$lock")" && bun install --ignore-scripts)
486
495
  # bun install keeps a locked version its range still admits, so a
487
496
  # nested workspace could stay on an old dev-kit under a new pin.
488
497
  # Only where the lockfile already holds it: bun update ADDS a
489
498
  # package it does not find, and put the dev-kit into funke proxy/ui.
490
499
  if [ "$DEVKIT_CHANGED" = 1 ] && grep -q "\"@norskvideo/ctl-dev-kit@" "$lock"; then
491
- (cd "$(dirname "$lock")" && bun update @norskvideo/ctl-dev-kit)
500
+ (cd "$(dirname "$lock")" && bun update --ignore-scripts @norskvideo/ctl-dev-kit)
492
501
  fi
493
502
  done
494
503
  # A ctl-* package also arrives TRANSITIVELY, and those never move on
@@ -500,7 +509,7 @@ jobs:
500
509
  if [ "$CTL_CHANGED" = 1 ]; then
501
510
  for pkg in ctl-test-harness ctl-sdk ctl-foundation ctl-product-template-schema moq-signals moq-flate moq-pattern moq-net moq-json moq-loc moq-msf moq-hang moq-watch; do
502
511
  for lock in $(git ls-files "*bun.lock"); do
503
- (cd "$(dirname "$lock")" && bun update "@norskvideo/$pkg") || true
512
+ (cd "$(dirname "$lock")" && bun update --ignore-scripts "@norskvideo/$pkg") || true
504
513
  done
505
514
  done
506
515
  fi
@@ -44,6 +44,12 @@ name: bump
44
44
  on:
45
45
  schedule:
46
46
  - cron: "17 4 * * *"
47
+ # Sent, through ci-workflows' fan-out, when something this repo pins is
48
+ # published (the norsk nightly, Studio's manifest pair, norsk-ctl latest), so
49
+ # the pins move the same day rather than at the next 04:17. client_payload
50
+ # may name components; it defaults to the pins.
51
+ repository_dispatch:
52
+ types: [upstream-published]
47
53
  workflow_dispatch:
48
54
  inputs:
49
55
  components:
@@ -141,7 +147,7 @@ jobs:
141
147
  - name: Choose the components to move
142
148
  id: select
143
149
  env:
144
- COMPONENTS: ${{ inputs.components }}
150
+ COMPONENTS: ${{ inputs.components || github.event.client_payload.components || (github.event_name == 'repository_dispatch' && 'pins' || 'all') }}
145
151
  run: |
146
152
  set -euo pipefail
147
153
  devkit=0; ctl=0; pins=0
@@ -588,17 +594,20 @@ jobs:
588
594
  run: |
589
595
  nix develop .#build --command bash -c '
590
596
  set -euo pipefail
597
+ # --ignore-scripts: a repo whose own prepare (relay: tsc) fails on
598
+ # main would kill the bump that fixes it (2026-10-14). The gate
599
+ # below installs for real, so a tree that does not build drafts.
591
600
  # Per INSTALL ROOT, not per repo: the rewrites walk every tracked
592
601
  # package.json, and a manifest outside the root workspace list (funke
593
602
  # proxy/ui) owns a lockfile a root-only install never regenerates.
594
603
  for lock in $(git ls-files "*bun.lock"); do
595
- (cd "$(dirname "$lock")" && bun install)
604
+ (cd "$(dirname "$lock")" && bun install --ignore-scripts)
596
605
  # bun install keeps a locked version its range still admits, so a
597
606
  # nested workspace could stay on an old dev-kit under a new pin.
598
607
  # Only where the lockfile already holds it: bun update ADDS a
599
608
  # package it does not find, and put the dev-kit into funke proxy/ui.
600
609
  if [ "$DEVKIT_CHANGED" = 1 ] && grep -q "\"@norskvideo/ctl-dev-kit@" "$lock"; then
601
- (cd "$(dirname "$lock")" && bun update @norskvideo/ctl-dev-kit)
610
+ (cd "$(dirname "$lock")" && bun update --ignore-scripts @norskvideo/ctl-dev-kit)
602
611
  fi
603
612
  done
604
613
  # A ctl-* package also arrives TRANSITIVELY, and those never move on
@@ -610,7 +619,7 @@ jobs:
610
619
  if [ "$CTL_CHANGED" = 1 ]; then
611
620
  for pkg in ctl-test-harness ctl-sdk ctl-foundation ctl-product-template-schema moq-signals moq-flate moq-pattern moq-net moq-json moq-loc moq-msf moq-hang moq-watch; do
612
621
  for lock in $(git ls-files "*bun.lock"); do
613
- (cd "$(dirname "$lock")" && bun update "@norskvideo/$pkg") || true
622
+ (cd "$(dirname "$lock")" && bun update --ignore-scripts "@norskvideo/$pkg") || true
614
623
  done
615
624
  done
616
625
  fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norskvideo/ctl-dev-kit",
3
- "version": "0.2.80",
3
+ "version": "0.2.81",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./create-product": "./create-product/create-product.ts",