@reliverse/dler 1.3.4 → 1.3.5
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/bin/libs/sdk/sdk-impl/build/build-library.d.ts +1 -1
- package/bin/libs/sdk/sdk-impl/build/build-library.js +44 -39
- package/bin/libs/sdk/sdk-impl/library-flow.d.ts +2 -2
- package/bin/libs/sdk/sdk-impl/library-flow.js +3 -2
- package/bin/libs/sdk/sdk-impl/pub/pub-library.d.ts +1 -1
- package/bin/libs/sdk/sdk-impl/pub/pub-library.js +3 -3
- package/bin/libs/sdk/sdk-impl/utils/utils-pkg-json-libs.d.ts +1 -1
- package/bin/libs/sdk/sdk-impl/utils/utils-pkg-json-libs.js +68 -36
- package/bin/libs/sdk/sdk-types.d.ts +6 -0
- package/bin/types.d.ts +6 -0
- package/package.json +1 -1
|
@@ -38,7 +38,7 @@ type JsrBuildOptions = {
|
|
|
38
38
|
};
|
|
39
39
|
/** Consolidated options for the main library build function */
|
|
40
40
|
export type LibraryBuildOptions = {
|
|
41
|
-
|
|
41
|
+
effectivePubRegistry: "npm" | "jsr" | "npm-jsr" | undefined;
|
|
42
42
|
npm?: NpmBuildOptions;
|
|
43
43
|
jsr?: JsrBuildOptions;
|
|
44
44
|
} & BaseLibBuildOptions & TranspileOptions;
|
|
@@ -86,46 +86,37 @@ export async function library_buildLibrary(options) {
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
async function executeBuildTasks(options) {
|
|
89
|
-
const {
|
|
89
|
+
const { libName, npm, jsr, effectivePubRegistry } = options;
|
|
90
|
+
relinka(
|
|
91
|
+
"log",
|
|
92
|
+
`Executing build tasks for ${libName} (Registry: ${effectivePubRegistry})...`
|
|
93
|
+
);
|
|
90
94
|
const buildTasks = [];
|
|
91
|
-
if (
|
|
92
|
-
if (!
|
|
95
|
+
if (effectivePubRegistry === "jsr" || effectivePubRegistry === "npm-jsr") {
|
|
96
|
+
if (!jsr) {
|
|
93
97
|
throw new Error(
|
|
94
|
-
`JSR
|
|
98
|
+
`Build Error (executeBuildTasks): JSR config missing for ${libName} when registry includes JSR.`
|
|
95
99
|
);
|
|
96
100
|
}
|
|
97
|
-
relinka("log", `Queueing JSR build for lib ${libName}...`);
|
|
98
101
|
buildTasks.push(() => library_buildJsrDist(options));
|
|
99
102
|
}
|
|
100
|
-
if (
|
|
101
|
-
if (!
|
|
103
|
+
if (effectivePubRegistry === "npm" || effectivePubRegistry === "npm-jsr") {
|
|
104
|
+
if (!npm) {
|
|
102
105
|
throw new Error(
|
|
103
|
-
`NPM
|
|
106
|
+
`Build Error (executeBuildTasks): NPM config missing for ${libName} when registry includes NPM.`
|
|
104
107
|
);
|
|
105
108
|
}
|
|
106
|
-
relinka("log", `Queueing NPM build for lib ${libName}...`);
|
|
107
109
|
buildTasks.push(() => library_buildNpmDist(options));
|
|
108
110
|
}
|
|
109
111
|
if (buildTasks.length === 0) {
|
|
110
112
|
relinka(
|
|
111
113
|
"warn",
|
|
112
|
-
`No
|
|
114
|
+
`No build tasks for ${libName} based on registry: ${effectivePubRegistry}`
|
|
113
115
|
);
|
|
114
116
|
return;
|
|
115
117
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
await pAll(buildTasks, { concurrency: CONCURRENCY_DEFAULT });
|
|
119
|
-
} else {
|
|
120
|
-
relinka(
|
|
121
|
-
"log",
|
|
122
|
-
`Building lib ${libName} for ${options.commonPubRegistry || "single target"}...`
|
|
123
|
-
);
|
|
124
|
-
const task = buildTasks[0];
|
|
125
|
-
if (task) {
|
|
126
|
-
await task();
|
|
127
|
-
}
|
|
128
|
-
}
|
|
118
|
+
await pAll(buildTasks, { concurrency: CONCURRENCY_DEFAULT });
|
|
119
|
+
relinka("success", `All build tasks completed for ${libName}.`);
|
|
129
120
|
}
|
|
130
121
|
async function library_buildJsrDist(options) {
|
|
131
122
|
const { libName, libMainFile, libsList } = options;
|
|
@@ -268,7 +259,9 @@ async function library_buildDistributionTarget(params) {
|
|
|
268
259
|
libDeclarations,
|
|
269
260
|
distJsrOutFilesExt,
|
|
270
261
|
options,
|
|
271
|
-
libDirName
|
|
262
|
+
libDirName,
|
|
263
|
+
npmOutDir,
|
|
264
|
+
jsrOutDir
|
|
272
265
|
} = params;
|
|
273
266
|
const {
|
|
274
267
|
libName,
|
|
@@ -316,7 +309,7 @@ async function library_buildDistributionTarget(params) {
|
|
|
316
309
|
await library_bundleWithBuilder(bundleRequest);
|
|
317
310
|
const commonStepsParams = {
|
|
318
311
|
coreEntryFileName: path.basename(libMainFile),
|
|
319
|
-
|
|
312
|
+
outputDirRoot,
|
|
320
313
|
outDirBin: outputDirBin,
|
|
321
314
|
isJsr,
|
|
322
315
|
libName,
|
|
@@ -326,7 +319,10 @@ async function library_buildDistributionTarget(params) {
|
|
|
326
319
|
unifiedBundlerOutExt,
|
|
327
320
|
distJsrOutFilesExt,
|
|
328
321
|
deleteFiles: isJsr,
|
|
329
|
-
libDirName
|
|
322
|
+
libDirName,
|
|
323
|
+
npmOutputDirRoot: npmOutDir || (options.npm ? options.npm.npmOutDir : void 0),
|
|
324
|
+
jsrOutputDirRoot: jsrOutDir || (options.jsr ? options.jsr.jsrOutDir : void 0),
|
|
325
|
+
effectivePubRegistry: options.effectivePubRegistry
|
|
330
326
|
};
|
|
331
327
|
await library_performCommonBuildSteps(commonStepsParams);
|
|
332
328
|
relinka("log", `${logPrefix} Completed build target processing.`);
|
|
@@ -551,7 +547,7 @@ async function library_bundleUsingUnified(entryPoint, outDirBin, builder, source
|
|
|
551
547
|
async function library_performCommonBuildSteps(params) {
|
|
552
548
|
const {
|
|
553
549
|
coreEntryFileName,
|
|
554
|
-
|
|
550
|
+
outputDirRoot,
|
|
555
551
|
outDirBin,
|
|
556
552
|
isJsr,
|
|
557
553
|
libName,
|
|
@@ -561,20 +557,29 @@ async function library_performCommonBuildSteps(params) {
|
|
|
561
557
|
unifiedBundlerOutExt,
|
|
562
558
|
distJsrOutFilesExt,
|
|
563
559
|
deleteFiles = false,
|
|
564
|
-
libDirName
|
|
560
|
+
libDirName,
|
|
561
|
+
npmOutputDirRoot,
|
|
562
|
+
jsrOutputDirRoot,
|
|
563
|
+
effectivePubRegistry
|
|
565
564
|
} = params;
|
|
566
565
|
const targetType = isJsr ? "JSR" : "NPM";
|
|
567
566
|
const logPrefix = `[Common:${targetType}:${libName}]`;
|
|
568
|
-
relinka(
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
outDirRoot,
|
|
572
|
-
isJsr,
|
|
573
|
-
libsList,
|
|
574
|
-
rmDepsMode,
|
|
575
|
-
rmDepsPatterns,
|
|
576
|
-
unifiedBundlerOutExt
|
|
567
|
+
relinka(
|
|
568
|
+
"verbose",
|
|
569
|
+
`${logPrefix} Performing common steps in ${outputDirRoot}`
|
|
577
570
|
);
|
|
571
|
+
if (npmOutputDirRoot || jsrOutputDirRoot) {
|
|
572
|
+
await library_createPackageJSON(
|
|
573
|
+
libName,
|
|
574
|
+
npmOutputDirRoot || outputDirRoot,
|
|
575
|
+
jsrOutputDirRoot || outputDirRoot,
|
|
576
|
+
effectivePubRegistry,
|
|
577
|
+
libsList,
|
|
578
|
+
rmDepsMode,
|
|
579
|
+
rmDepsPatterns,
|
|
580
|
+
unifiedBundlerOutExt
|
|
581
|
+
);
|
|
582
|
+
}
|
|
578
583
|
relinka("verbose", `${logPrefix} Created package.json.`);
|
|
579
584
|
if (deleteFiles) {
|
|
580
585
|
await deleteSpecificFiles(outDirBin);
|
|
@@ -583,10 +588,10 @@ async function library_performCommonBuildSteps(params) {
|
|
|
583
588
|
`${logPrefix} Deleted specific files from ${outDirBin}.`
|
|
584
589
|
);
|
|
585
590
|
}
|
|
586
|
-
await copyRootFile(
|
|
591
|
+
await copyRootFile(outputDirRoot, FILES_TO_COPY_ROOT);
|
|
587
592
|
relinka(
|
|
588
593
|
"verbose",
|
|
589
|
-
`${logPrefix} Copied root files (${FILES_TO_COPY_ROOT.join(", ")}) to ${
|
|
594
|
+
`${logPrefix} Copied root files (${FILES_TO_COPY_ROOT.join(", ")}) to ${outputDirRoot}`
|
|
590
595
|
);
|
|
591
596
|
const stripSegments = libDirName ? [`libs/${libDirName}`] : [];
|
|
592
597
|
relinka(
|
|
@@ -3,9 +3,9 @@ import type { PerfTimer } from "./utils/utils-perf.js";
|
|
|
3
3
|
/**
|
|
4
4
|
* Processes libraries based on build mode.
|
|
5
5
|
*/
|
|
6
|
-
export declare function processLibraryFlow(timer: PerfTimer, isDev: boolean, libsActMode: string, libsList: Record<string, LibConfig>, distJsrDryRun: boolean, distJsrFailOnWarn: boolean, libsDirDist: string, libsDirSrc: string, commonPubPause: boolean, commonPubRegistry:
|
|
6
|
+
export declare function processLibraryFlow(timer: PerfTimer, isDev: boolean, libsActMode: string, libsList: Record<string, LibConfig>, distJsrDryRun: boolean, distJsrFailOnWarn: boolean, libsDirDist: string, libsDirSrc: string, commonPubPause: boolean, commonPubRegistry: "jsr" | "npm" | "npm-jsr", unifiedBundlerOutExt: NpmOutExt, distNpmBuilder: BundlerName, coreEntrySrcDir: string, rmDepsMode: ExcludeMode, rmDepsPatterns: string[], transpileEsbuild: Esbuild, transpileTarget: transpileTarget, transpileFormat: transpileFormat, transpileSplitting: boolean, transpileSourcemap: Sourcemap, transpilePublicPath: string, distJsrBuilder: BundlerName, transpileStub: boolean, transpileWatch: boolean, distJsrOutFilesExt: NpmOutExt): Promise<void>;
|
|
7
7
|
/**
|
|
8
8
|
* Processes all libs defined in config.libsList.
|
|
9
9
|
* Builds and optionally publishes each library based on configuration.
|
|
10
10
|
*/
|
|
11
|
-
export declare function libraries_buildPublish(isDev: boolean, timer: PerfTimer, libsList: Record<string, LibConfig>, distJsrDryRun: boolean, distJsrFailOnWarn: boolean, libsDirDist: string, libsDirSrc: string, commonPubPause: boolean, commonPubRegistry:
|
|
11
|
+
export declare function libraries_buildPublish(isDev: boolean, timer: PerfTimer, libsList: Record<string, LibConfig>, distJsrDryRun: boolean, distJsrFailOnWarn: boolean, libsDirDist: string, libsDirSrc: string, commonPubPause: boolean, commonPubRegistry: "jsr" | "npm" | "npm-jsr", unifiedBundlerOutExt: NpmOutExt, distNpmBuilder: BundlerName, coreEntrySrcDir: string, rmDepsMode: ExcludeMode, rmDepsPatterns: string[], transpileEsbuild: Esbuild, transpileTarget: transpileTarget, transpileFormat: transpileFormat, transpileSplitting: boolean, transpileSourcemap: Sourcemap, transpilePublicPath: string, distJsrBuilder: BundlerName, transpileStub: boolean, transpileWatch: boolean, distJsrOutFilesExt: NpmOutExt): Promise<void>;
|
|
@@ -89,7 +89,7 @@ export async function libraries_buildPublish(isDev, timer, libsList, distJsrDryR
|
|
|
89
89
|
);
|
|
90
90
|
const libTranspileMinify = libConfig?.libTranspileMinify === true;
|
|
91
91
|
await library_buildLibrary({
|
|
92
|
-
commonPubRegistry,
|
|
92
|
+
effectivePubRegistry: libConfig.libPubRegistry || commonPubRegistry,
|
|
93
93
|
libName,
|
|
94
94
|
mainDir: libMainDir,
|
|
95
95
|
npm: {
|
|
@@ -120,8 +120,9 @@ export async function libraries_buildPublish(isDev, timer, libsList, distJsrDryR
|
|
|
120
120
|
transpileWatch
|
|
121
121
|
});
|
|
122
122
|
if (!commonPubPause && !libConfig.libPubPause) {
|
|
123
|
+
const effectivePubRegistry = libConfig.libPubRegistry || commonPubRegistry;
|
|
123
124
|
await library_publishLibrary(
|
|
124
|
-
|
|
125
|
+
effectivePubRegistry,
|
|
125
126
|
libName,
|
|
126
127
|
npmOutDir,
|
|
127
128
|
jsrOutDir,
|
|
@@ -2,4 +2,4 @@ import { type PerfTimer } from "../utils/utils-perf.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* Publishes a library to the specified commonPubRegistry.
|
|
4
4
|
*/
|
|
5
|
-
export declare function library_publishLibrary(
|
|
5
|
+
export declare function library_publishLibrary(effectivePubRegistry: "jsr" | "npm" | "npm-jsr" | undefined, libName: string, npmOutDir: string, jsrOutDir: string, distJsrDryRun: boolean, distJsrFailOnWarn: boolean, distJsrAllowDirty: boolean, distJsrSlowTypes: boolean, isDev: boolean, timer: PerfTimer): Promise<void>;
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
pausePerfTimer,
|
|
8
8
|
resumePerfTimer
|
|
9
9
|
} from "../utils/utils-perf.js";
|
|
10
|
-
export async function library_publishLibrary(
|
|
11
|
-
switch (
|
|
10
|
+
export async function library_publishLibrary(effectivePubRegistry, libName, npmOutDir, jsrOutDir, distJsrDryRun, distJsrFailOnWarn, distJsrAllowDirty, distJsrSlowTypes, isDev, timer) {
|
|
11
|
+
switch (effectivePubRegistry) {
|
|
12
12
|
case "jsr":
|
|
13
13
|
relinka("log", `Publishing lib ${libName} to JSR only...`);
|
|
14
14
|
await library_pubToJsr(
|
|
@@ -61,7 +61,7 @@ export async function library_publishLibrary(commonPubRegistry, libName, npmOutD
|
|
|
61
61
|
default:
|
|
62
62
|
relinka(
|
|
63
63
|
"log",
|
|
64
|
-
`Registry "${
|
|
64
|
+
`Registry "${effectivePubRegistry}" not recognized for lib ${libName}. Skipping publishing for this lib.`
|
|
65
65
|
);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
@@ -2,4 +2,4 @@ import type { ExcludeMode, LibConfig, NpmOutExt } from "../../sdk-types.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* Creates a package.json for a lib distribution.
|
|
4
4
|
*/
|
|
5
|
-
export declare function library_createPackageJSON(libName: string,
|
|
5
|
+
export declare function library_createPackageJSON(libName: string, npmOutDirRoot: string, jsrOutDirRoot: string, effectivePubRegistry: "jsr" | "npm" | "npm-jsr" | undefined, libsList: Record<string, LibConfig>, rmDepsMode: ExcludeMode, rmDepsPatterns: string[], unifiedBundlerOutExt: NpmOutExt): Promise<void>;
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
readPackageJSON
|
|
7
7
|
} from "pkg-types";
|
|
8
8
|
import { filterDeps } from "./utils-deps.js";
|
|
9
|
-
export async function library_createPackageJSON(libName,
|
|
9
|
+
export async function library_createPackageJSON(libName, npmOutDirRoot, jsrOutDirRoot, effectivePubRegistry, libsList, rmDepsMode, rmDepsPatterns, unifiedBundlerOutExt) {
|
|
10
10
|
relinka(
|
|
11
11
|
"verbose",
|
|
12
|
-
`Generating package.json for lib ${libName} (
|
|
12
|
+
`Generating package.json for lib ${libName} (registry: ${effectivePubRegistry})...`
|
|
13
13
|
);
|
|
14
14
|
if (!libsList) {
|
|
15
15
|
throw new Error("libsList is empty or not provided");
|
|
@@ -55,32 +55,64 @@ export async function library_createPackageJSON(libName, outDirRoot, isJsr, libs
|
|
|
55
55
|
} else if (keywords && keywords.length > 0 && !commonPkg.keywords) {
|
|
56
56
|
commonPkg.keywords = keywords;
|
|
57
57
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
58
|
+
switch (effectivePubRegistry) {
|
|
59
|
+
case "jsr":
|
|
60
|
+
relinka("verbose", `Creating JSR package.json for lib ${libName}...`);
|
|
61
|
+
await library_writeJsrPackageJSON(
|
|
62
|
+
libName,
|
|
63
|
+
jsrOutDirRoot,
|
|
64
|
+
jsrOutDirRoot,
|
|
65
|
+
originalPkg,
|
|
66
|
+
commonPkg,
|
|
67
|
+
libsList,
|
|
68
|
+
rmDepsMode,
|
|
69
|
+
rmDepsPatterns
|
|
70
|
+
);
|
|
71
|
+
break;
|
|
72
|
+
case "npm":
|
|
73
|
+
relinka("verbose", `Creating NPM package.json for lib ${libName}...`);
|
|
74
|
+
await library_writeNpmLibPackageJSON(
|
|
75
|
+
libName,
|
|
76
|
+
npmOutDirRoot,
|
|
77
|
+
npmOutDirRoot,
|
|
78
|
+
originalPkg,
|
|
79
|
+
commonPkg,
|
|
80
|
+
libsList,
|
|
81
|
+
rmDepsMode,
|
|
82
|
+
rmDepsPatterns,
|
|
83
|
+
unifiedBundlerOutExt
|
|
84
|
+
);
|
|
85
|
+
break;
|
|
86
|
+
case "npm-jsr":
|
|
87
|
+
relinka("verbose", `Creating JSR package.json for lib ${libName}...`);
|
|
88
|
+
await library_writeJsrPackageJSON(
|
|
89
|
+
libName,
|
|
90
|
+
jsrOutDirRoot,
|
|
91
|
+
jsrOutDirRoot,
|
|
92
|
+
originalPkg,
|
|
93
|
+
commonPkg,
|
|
94
|
+
libsList,
|
|
95
|
+
rmDepsMode,
|
|
96
|
+
rmDepsPatterns
|
|
97
|
+
);
|
|
98
|
+
relinka("verbose", `Creating NPM package.json for lib ${libName}...`);
|
|
99
|
+
await library_writeNpmLibPackageJSON(
|
|
100
|
+
libName,
|
|
101
|
+
npmOutDirRoot,
|
|
102
|
+
npmOutDirRoot,
|
|
103
|
+
originalPkg,
|
|
104
|
+
commonPkg,
|
|
105
|
+
libsList,
|
|
106
|
+
rmDepsMode,
|
|
107
|
+
rmDepsPatterns,
|
|
108
|
+
unifiedBundlerOutExt
|
|
109
|
+
);
|
|
110
|
+
break;
|
|
111
|
+
default:
|
|
112
|
+
relinka(
|
|
113
|
+
"warn",
|
|
114
|
+
`Unknown registry "${effectivePubRegistry}" for lib ${libName}. Skipping package.json generation.`
|
|
115
|
+
);
|
|
84
116
|
}
|
|
85
117
|
relinka("verbose", `Completed creation of package.json for lib: ${libName}`);
|
|
86
118
|
}
|
|
@@ -157,7 +189,7 @@ async function library_getlibPkgKeepDeps(libName, originalDeps, outDirBin, isJsr
|
|
|
157
189
|
);
|
|
158
190
|
return result;
|
|
159
191
|
}
|
|
160
|
-
async function library_writeJsrPackageJSON(libName, outDirBin,
|
|
192
|
+
async function library_writeJsrPackageJSON(libName, outDirBin, pkgJsonDir, originalPkg, commonPkg, libsList, rmDepsMode, rmDepsPatterns) {
|
|
161
193
|
relinka("verbose", `Writing package.json for JSR lib: ${libName}`);
|
|
162
194
|
if (!libsList) {
|
|
163
195
|
throw new Error("libsList is empty or not provided");
|
|
@@ -208,12 +240,12 @@ async function library_writeJsrPackageJSON(libName, outDirBin, outDirRoot, origi
|
|
|
208
240
|
".": "./bin/mod.ts"
|
|
209
241
|
}
|
|
210
242
|
});
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
});
|
|
243
|
+
const pkgPath = path.join(pkgJsonDir, "package.json");
|
|
244
|
+
await fs.ensureDir(path.dirname(pkgPath));
|
|
245
|
+
await fs.writeJson(pkgPath, jsrPkg, { spaces: 2 });
|
|
214
246
|
relinka("verbose", `Completed writing package.json for JSR lib: ${libName}`);
|
|
215
247
|
}
|
|
216
|
-
async function library_writeNpmLibPackageJSON(libName, outDirBin,
|
|
248
|
+
async function library_writeNpmLibPackageJSON(libName, outDirBin, pkgJsonDir, originalPkg, commonPkg, libsList, rmDepsMode, rmDepsPatterns, unifiedBundlerOutExt) {
|
|
217
249
|
relinka("verbose", `Writing package.json for NPM lib: ${libName}`);
|
|
218
250
|
if (!libsList) {
|
|
219
251
|
throw new Error("libsList is empty or not provided");
|
|
@@ -252,8 +284,8 @@ async function library_writeNpmLibPackageJSON(libName, outDirBin, outDirRoot, or
|
|
|
252
284
|
module: `./bin/mod.${unifiedBundlerOutExt}`,
|
|
253
285
|
publishConfig: { access: "public" }
|
|
254
286
|
});
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
});
|
|
287
|
+
const pkgPath = path.join(pkgJsonDir, "package.json");
|
|
288
|
+
await fs.ensureDir(path.dirname(pkgPath));
|
|
289
|
+
await fs.writeJson(pkgPath, npmPkg, { spaces: 2 });
|
|
258
290
|
relinka("verbose", `Completed writing package.json for NPM lib: ${libName}`);
|
|
259
291
|
}
|
|
@@ -442,6 +442,12 @@ export type LibConfig = {
|
|
|
442
442
|
* @default false
|
|
443
443
|
*/
|
|
444
444
|
libPubPause?: boolean;
|
|
445
|
+
/**
|
|
446
|
+
* The registry to publish the library to.
|
|
447
|
+
*
|
|
448
|
+
* @default "npm"
|
|
449
|
+
*/
|
|
450
|
+
libPubRegistry?: "jsr" | "npm" | "npm-jsr";
|
|
445
451
|
};
|
|
446
452
|
export type NpmOutExt = "cjs" | "cts" | "js" | "mjs" | "mts" | "ts";
|
|
447
453
|
/**
|
package/bin/types.d.ts
CHANGED
|
@@ -442,6 +442,12 @@ export type LibConfig = {
|
|
|
442
442
|
* @default false
|
|
443
443
|
*/
|
|
444
444
|
libPubPause?: boolean;
|
|
445
|
+
/**
|
|
446
|
+
* The registry to publish the library to.
|
|
447
|
+
*
|
|
448
|
+
* @default "npm"
|
|
449
|
+
*/
|
|
450
|
+
libPubRegistry?: "jsr" | "npm" | "npm-jsr";
|
|
445
451
|
};
|
|
446
452
|
export type NpmOutExt = "cjs" | "cts" | "js" | "mjs" | "mts" | "ts";
|
|
447
453
|
/**
|