@johnmorrisdotca/jirai 0.2.1 → 0.4.0
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/CHANGELOG.md +14 -0
- package/README.md +62 -4
- package/dist/deduce.d.ts +1 -1
- package/dist/deduce.js +18 -6
- package/dist/generate.d.ts +7 -1
- package/dist/generate.js +74 -43
- package/dist/index.d.ts +6 -1
- package/dist/index.js +3 -1
- package/dist/jirai.constants.d.ts +61 -12
- package/dist/jirai.constants.js +25 -7
- package/dist/jirai.types.d.ts +12 -1
- package/dist/levels.d.ts +32 -0
- package/dist/levels.js +47 -0
- package/dist/measure.d.ts +28 -0
- package/dist/measure.js +21 -0
- package/dist/repair.d.ts +14 -0
- package/dist/repair.js +112 -0
- package/dist/solve.d.ts +79 -0
- package/dist/solve.js +336 -0
- package/package.json +3 -2
- package/src/deduce.ts +22 -15
- package/src/generate.ts +60 -33
- package/src/index.ts +6 -1
- package/src/jirai.constants.ts +25 -7
- package/src/jirai.types.ts +11 -2
- package/src/levels.ts +51 -0
- package/src/measure.ts +44 -0
- package/src/repair.ts +88 -0
- package/src/solve.ts +253 -0
- package/src/version.test.js +9 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { readFileSync } from "node:fs";
|
|
2
|
+
import { expect, it } from "vitest";
|
|
3
|
+
import { VERSION } from "./index.ts";
|
|
4
|
+
|
|
5
|
+
it("names one version in the package, the library and the changelog", () => {
|
|
6
|
+
const pkg = JSON.parse(readFileSync("package.json", "utf8"));
|
|
7
|
+
expect(VERSION).toBe(pkg.version);
|
|
8
|
+
expect(readFileSync("CHANGELOG.md", "utf8")).toMatch(new RegExp(`^## \\[${pkg.version.replaceAll(".", "\\.")}\\] - \\d{4}-\\d{2}-\\d{2}$`, "m"));
|
|
9
|
+
});
|