Merge pull request 'fix: guard package lock version parity' (#45) from build/43-lockfile-version-guard into main
All checks were successful
ci / test (push) Successful in 27s
All checks were successful
ci / test (push) Successful in 27s
Reviewed-on: #45 Reviewed-by: claude-bot-andresmgsl <andres+1@heavyduty.builders> Reviewed-by: kimi-bot-andresmgsl <andres+4@heavyduty.builders> Reviewed-by: glm-bot-andresmgsl <andres+5@heavyduty.builders>
This commit is contained in:
commit
9586d2c631
3 changed files with 13 additions and 2 deletions
1
changelog.d/43.md
Normal file
1
changelog.d/43.md
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
- Keep package-lock metadata aligned with the package version and guard against future drift. (#43).
|
||||||
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "stoke",
|
"name": "stoke",
|
||||||
"version": "1.3.0",
|
"version": "1.4.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "stoke",
|
"name": "stoke",
|
||||||
"version": "1.3.0",
|
"version": "1.4.0",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"commander": "^15.0.0"
|
"commander": "^15.0.0"
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,8 @@ const REPOSITORY_CONFIG = path.join(__dirname, '..', '.github', 'labels.conf');
|
||||||
const REPOSITORY_LABELER = path.join(__dirname, '..', '.github', 'labeler.yml');
|
const REPOSITORY_LABELER = path.join(__dirname, '..', '.github', 'labeler.yml');
|
||||||
const REPOSITORY_MIRROR = path.join(__dirname, '..', '.ceremony');
|
const REPOSITORY_MIRROR = path.join(__dirname, '..', '.ceremony');
|
||||||
const ROOT_AGENTS = path.join(__dirname, '..', 'AGENTS.md');
|
const ROOT_AGENTS = path.join(__dirname, '..', 'AGENTS.md');
|
||||||
|
const PACKAGE_MANIFEST = path.join(__dirname, '..', 'package.json');
|
||||||
|
const PACKAGE_LOCK = path.join(__dirname, '..', 'package-lock.json');
|
||||||
const CEREMONY_REPOSITORY = 'https://forgejo.heavyduty.builders/heavy-duty/ceremony';
|
const CEREMONY_REPOSITORY = 'https://forgejo.heavyduty.builders/heavy-duty/ceremony';
|
||||||
const CEREMONY_VERSION = '0.6.3';
|
const CEREMONY_VERSION = '0.6.3';
|
||||||
const CEREMONY_WORKFLOWS = ['labels.yml', 'labels-sweep.yml'];
|
const CEREMONY_WORKFLOWS = ['labels.yml', 'labels-sweep.yml'];
|
||||||
|
|
@ -134,6 +136,14 @@ test('repository scope mapping covers every configured scope with the ruled path
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('package lock versions match the package manifest', () => {
|
||||||
|
const manifest = JSON.parse(fs.readFileSync(PACKAGE_MANIFEST, 'utf8'));
|
||||||
|
const lock = JSON.parse(fs.readFileSync(PACKAGE_LOCK, 'utf8'));
|
||||||
|
|
||||||
|
assert.equal(lock.version, manifest.version, 'package-lock.json version is stale');
|
||||||
|
assert.equal(lock.packages[''].version, manifest.version, 'package-lock.json root package version is stale');
|
||||||
|
});
|
||||||
|
|
||||||
test('repository carries the complete Forgejo 0.6.3 doctrine mirror and root router', () => {
|
test('repository carries the complete Forgejo 0.6.3 doctrine mirror and root router', () => {
|
||||||
const vendored = ['AGENTS.md', 'TRIAGE.md', 'BUILDER.md', 'REVIEWER.md', 'LABELS.md', 'RELEASES.md'];
|
const vendored = ['AGENTS.md', 'TRIAGE.md', 'BUILDER.md', 'REVIEWER.md', 'LABELS.md', 'RELEASES.md'];
|
||||||
for (const filename of vendored) {
|
for (const filename of vendored) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue