Const
Package version as a constant. In .ts (not read from package.json at runtime): survives bundling and needs no file system. src/test/pkg-info.test.ts enforces sync with package.json.
.ts
package.json
src/test/pkg-info.test.ts
Package version as a constant. In
.ts(not read frompackage.jsonat runtime): survives bundling and needs no file system.src/test/pkg-info.test.tsenforces sync withpackage.json.