Skip to main content

getDependencyDigest

@webda/compiler


Function: getDependencyDigest()

getDependencyDigest(appRoot): string

Defined in: compiler.ts:133

Digest of the dependencies the application's schemas can inherit from.

The source digest only covers the application's own files, so a parameter class changed in @webda/core left every dependent webda.module.json stale (#923). Every declared dependency contributes its package.json, which catches upgrades; a Webda module — a package shipping a webda.module.json — also contributes that file and its declaration files, which change when a linked workspace dependency is rebuilt. Only the direct dependencies are read: a transitive change reaches the application through the declarations of the dependency that re-exports it.

Parameters​

appRoot​

string

application root

Returns​

string

the MD5 hex digest