@norskvideo/ctl-dev-kit 0.1.36 → 0.1.37
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/local-dev/README.md +4 -4
- package/local-dev/dev-link.sh +1 -1
- package/package.json +1 -1
package/local-dev/README.md
CHANGED
|
@@ -57,12 +57,12 @@ HARDWARE=none NORSK_LICENSE_FILE=... bun run iterate # no GPU reservat
|
|
|
57
57
|
To develop a product against **un-published** ctl code or a **locally-built**
|
|
58
58
|
media server, there are three independent override layers. Each is opt-in and
|
|
59
59
|
leaves the default (registry/pinned) path untouched when unset. They compose:
|
|
60
|
-
changing the daemon
|
|
60
|
+
changing the daemon _and_ a ctl library it exposes means layers 1 + 3 together.
|
|
61
61
|
|
|
62
62
|
## 1. The npm layer — local `@norskvideo/ctl-*` checkouts
|
|
63
63
|
|
|
64
64
|
The product depends on `@norskvideo/ctl-{sdk,foundation,product-template-schema,
|
|
65
|
-
|
|
65
|
+
test-harness,commands,dev-kit}` at a caret range. To point one (or all)
|
|
66
66
|
at a local checkout of the ctl monorepo instead of the registry, use
|
|
67
67
|
`dev-link.sh`:
|
|
68
68
|
|
|
@@ -119,9 +119,9 @@ bun run --cwd ../norsk-ctl cli product add --dev-url http://localhost:<backendPo
|
|
|
119
119
|
bun run --cwd ../norsk-ctl cli instance launch-template demo --template <t> --hardware none
|
|
120
120
|
```
|
|
121
121
|
|
|
122
|
-
No linking is needed for this — you are running the daemon
|
|
122
|
+
No linking is needed for this — you are running the daemon _code_ directly. Pair
|
|
123
123
|
with layer 1 (`dev-link.sh`) only if you also changed a `@norskvideo/ctl-*`
|
|
124
|
-
library the product
|
|
124
|
+
library the product _compiles_ against.
|
|
125
125
|
|
|
126
126
|
### Integration tests against source ctl
|
|
127
127
|
|
package/local-dev/dev-link.sh
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
# Nothing is committed — the links live only in this repo's node_modules.
|
|
9
9
|
set -euo pipefail
|
|
10
10
|
|
|
11
|
-
PACKAGES=(sdk foundation product-template-schema
|
|
11
|
+
PACKAGES=(sdk foundation product-template-schema test-harness commands dev-kit)
|
|
12
12
|
product_root="$(cd "$(dirname "${BASH_SOURCE[0]}")" && git -C . rev-parse --show-toplevel 2>/dev/null || pwd)"
|
|
13
13
|
|
|
14
14
|
if [ "${1:-}" = "--unlink" ]; then
|