fix: use Gitea-compatible package scope
This commit is contained in:
@@ -95,7 +95,7 @@ test("imported package snapshots retain explicit main-branch provenance", () =>
|
||||
assert.match(entry.source, /^ssh:\/\/git@git\.jb\.codes:7722\/jb\//);
|
||||
assert.match(
|
||||
readJson(path.join(root, entry.target, "package.json")).name,
|
||||
/^@_jb\/pi-/,
|
||||
/^@jbcode\/pi-/,
|
||||
);
|
||||
}
|
||||
});
|
||||
@@ -106,7 +106,7 @@ test("publishable workspaces have Gitea-safe package contracts", () => {
|
||||
const manifest = workspaceManifest(directory);
|
||||
if (manifest.private) continue;
|
||||
|
||||
assert.match(manifest.name, /^@_jb\/pi-[a-z0-9-]+$/);
|
||||
assert.match(manifest.name, /^@jbcode\/pi-[a-z0-9-]+$/);
|
||||
assert.equal(manifest.publishConfig?.registry, registry);
|
||||
assert.equal(manifest.engines?.node, ">=22.19.0");
|
||||
assert.equal(readFileSync(path.join(packageRoot, "LICENSE"), "utf8").length > 0, true);
|
||||
|
||||
Reference in New Issue
Block a user