release: WRNexusJS 0.8.0
This commit is contained in:
@@ -39,6 +39,8 @@ const REGISTRY = "https://registry.npmjs.org/";
|
||||
// npm org to exist and be on a paid plan (private scoped packages need Teams).
|
||||
const ACCESS = process.env.WRNEXUS_NPM_ACCESS === "public" ? "public" : "restricted";
|
||||
const LICENSE = "MIT";
|
||||
const REPOSITORY = "https://git.workroot.in/WorkRoot/WRNexusJS.git";
|
||||
const HOMEPAGE = "https://wrnexusjs.dev";
|
||||
|
||||
/** Extra (non-code) files each package must ship, relative to the package root. */
|
||||
const ASSETS: Record<string, string[]> = {
|
||||
@@ -171,6 +173,15 @@ function publishManifest(
|
||||
type: "module",
|
||||
description: m.description ?? `${m.name} — part of the WrNexus framework.`,
|
||||
license: LICENSE,
|
||||
repository: {
|
||||
type: "git",
|
||||
url: REPOSITORY,
|
||||
directory: `packages/${String(m.name).replace("@wrnexus/", "")}`,
|
||||
},
|
||||
homepage: `${HOMEPAGE}/packages/${String(m.name).replace("@wrnexus/", "")}`,
|
||||
bugs: { url: `${REPOSITORY.replace(/\.git$/, "")}/issues` },
|
||||
keywords: ["wrnexus", "bun", "typescript", String(m.name).replace("@wrnexus/", "")],
|
||||
sideEffects: m.sideEffects ?? false,
|
||||
main: m.main ? js(m.main) : "./dist/index.js",
|
||||
module: m.main ? js(m.main) : "./dist/index.js",
|
||||
types: m.main ? dts(m.main) : "./dist/index.d.ts",
|
||||
@@ -215,7 +226,7 @@ function publishManifest(
|
||||
}
|
||||
}
|
||||
|
||||
const files = new Set(["dist"]);
|
||||
const files = new Set(["dist", "README.md"]);
|
||||
for (const a of packageAssets(m)) files.add(a);
|
||||
out.files = [...files];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user