Ship file viewer, editor improvements, and private package releases

This commit is contained in:
Clintchiz committed 2026-09-09 11:20:11 +05:30
1 parent 645914955c
commit a4a31032b9
158 files changed
+10523 -137

No files matched your search

+15 -6
View File
@@ -210,14 +210,16 @@ function publishManifest(
for (const [k, v] of Object.entries(m.bin)) out.bin[k] = js(v as string);
}
if (m.dependencies) {
out.dependencies = {};
for (const [dep, range] of Object.entries(m.dependencies)) {
out.dependencies[dep] = String(range).startsWith("workspace:")
for (const field of ["dependencies", "optionalDependencies", "peerDependencies"]) {
if (!m[field]) continue;
out[field] = {};
for (const [dep, range] of Object.entries(m[field])) {
out[field][dep] = String(range).startsWith("workspace:")
? `^${workspaceVersions.get(dep) ?? version}`
: range;
}
}
if (m.peerDependenciesMeta) out.peerDependenciesMeta = structuredClone(m.peerDependenciesMeta);
if (m.wrnexus) {
out.wrnexus = structuredClone(m.wrnexus);
@@ -264,8 +266,15 @@ async function main() {
outDir: join(p.dir, "dist"),
format: ["esm"],
dts: true,
external: [/^@wrnexus\//, /^bun:/, /^node:/],
tsconfig: join(repoRoot, "tsconfig.json"),
external: [
/^@wrnexus\//,
/^bun:/,
/^node:/,
...Object.keys(p.manifest.peerDependencies ?? {}),
],
tsconfig: existsSync(join(p.dir, "tsconfig.json"))
? join(p.dir, "tsconfig.json")
: join(repoRoot, "tsconfig.json"),
clean: true,
// Shared modules must be emitted ONCE as a chunk both entries import,
// not inlined into each. Several packages hold mutable module state --