diff --git a/go/catalogue/own_manifest_test.go b/go/catalogue/own_manifest_test.go index 5d52469c..21205ceb 100644 --- a/go/catalogue/own_manifest_test.go +++ b/go/catalogue/own_manifest_test.go @@ -35,8 +35,9 @@ func TestOwnManifestUsesNoWordTheRunningControllerRefuses(t *testing.T) { if g := packages["go"]; g.Name != "go" || !slices.Equal(g.Paths, []string{"go"}) { t.Errorf("mesh-sdk's Go package is %+v, want go built from go", g) } - if l := packages["typescript"]; l.Name != "lib" || l.Paths != nil { - t.Errorf("mesh-sdk's TypeScript package is %+v", l) + // Its named paths, so the indexer holds them and a change to them is a changed package (design 47 G A-285). + if l := packages["typescript"]; l.Name != "lib" || !slices.Equal(l.Paths, []string{"package.json", "package-lock.json", "tsconfig.json", "src"}) { + t.Errorf("mesh-sdk's TypeScript package is %+v, want lib built from package.json, package-lock.json, tsconfig.json and src", l) } // What a reader reads (novox/hq ADR 0614 ยง4): the baseline is the contract of mesh-sdk f02f142, which every running diff --git a/module.json b/module.json index 3aa807ff..9e8144b0 100644 --- a/module.json +++ b/module.json @@ -4,7 +4,7 @@ "slug": "sdk", "build": { "artifacts": [ - { "name": "lib", "kind": "package", "language": "typescript", "calls": ["finding-calls"] }, + { "name": "lib", "kind": "package", "language": "typescript", "paths": ["package.json", "package-lock.json", "tsconfig.json", "src"], "calls": ["finding-calls"] }, { "name": "go", "kind": "package", "language": "go", "paths": ["go"], "calls": ["finding-calls", "ledger-upkeep-calls", "put-sessions", "sent-objects-calls"] } ] },