@reliverse/dler 1.3.6 → 1.4.1
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/README.md +1 -0
- package/bin/app/agg/cmd.d.ts +34 -0
- package/bin/app/agg/cmd.js +44 -3
- package/bin/app/agg/impl.d.ts +2 -1
- package/bin/app/agg/impl.js +94 -33
- package/bin/app/cmds.d.ts +34 -0
- package/bin/app/deps/cmd.js +1 -1
- package/bin/app/deps/impl/analyzer.d.ts +1 -1
- package/bin/app/deps/impl/filesystem.d.ts +1 -1
- package/bin/app/deps/impl/filesystem.js +1 -1
- package/bin/app/deps/impl/formatter.d.ts +1 -1
- package/bin/app/deps/impl/formatter.js +0 -1
- package/bin/app/deps/impl/parser.d.ts +1 -1
- package/bin/app/inject/expect/impl.js +2 -2
- package/bin/app/merge/cmd.d.ts +44 -0
- package/bin/app/merge/{cmd.txt → cmd.js} +79 -141
- package/bin/app/relifso/cmd.js +1 -1
- package/bin/app/relifso/init/cmd.js +3 -3
- package/bin/app/relifso/init/{impl/mod.d.ts → init-impl.d.ts} +6 -1
- package/bin/app/relifso/init/{impl/mod.js → init-impl.js} +6 -4
- package/bin/app/relifso/init/{impl/types.d.ts → init-types.d.ts} +1 -1
- package/bin/app/relifso/init/{impl/templates → templates}/t-license.js +0 -4
- package/bin/app/relifso/init/{impl/templates → templates}/t-readme.js +0 -18
- package/bin/app/rempts/init/cmd/cmd.js +2 -4
- package/bin/app/rempts/init/cmds/cmd.js +2 -2
- package/bin/app/rempts/migrate/cmd.js +1 -1
- package/bin/app/rempts/migrate/impl/commander.js +0 -1
- package/bin/app/split/cmd.d.ts +21 -3
- package/bin/app/split/cmd.js +41 -0
- package/bin/app/split/impl.d.ts +0 -7
- package/bin/app/split/impl.js +2 -23
- package/bin/default.d.ts +1 -1
- package/bin/default.js +2 -1
- package/bin/impl.js +12 -6
- package/bin/init.js +2 -11
- package/bin/libs/sdk/sdk-impl/build/build-library.js +38 -22
- package/bin/libs/sdk/sdk-impl/build/build-regular.js +40 -25
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/auto.d.ts +2 -1
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/auto.js +4 -2
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/build.d.ts +1 -1
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/build.js +1 -2
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/copy/copy.d.ts +1 -1
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/copy/copy.js +1 -1
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/mkdist/mkdist.d.ts +1 -1
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/mkdist/mkdist.js +1 -1
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/rollup/build.d.ts +1 -1
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/rollup/build.js +1 -1
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/rollup/config.d.ts +1 -1
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/rollup/config.js +1 -1
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/rollup/plugins/cjs.d.ts +1 -1
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/rollup/plugins/cjs.js +0 -1
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/rollup/plugins/esbuild.d.ts +1 -11
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/rollup/plugins/esbuild.js +1 -1
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/rollup/plugins/shebang.js +1 -1
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/rollup/stub.d.ts +1 -1
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/rollup/stub.js +7 -1
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/rollup/utils.d.ts +1 -1
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/rollup/watch.d.ts +1 -1
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/rollup/watch.js +1 -1
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/untyped/index.d.ts +1 -1
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/untyped/index.js +1 -1
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/utils.d.ts +1 -2
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/utils.js +3 -5
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/validate.d.ts +1 -1
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/validate.js +1 -1
- package/bin/libs/sdk/sdk-impl/library-flow.d.ts +2 -2
- package/bin/libs/sdk/sdk-impl/library-flow.js +8 -6
- package/bin/libs/sdk/sdk-impl/pub/pub-regular.js +1 -1
- package/bin/libs/sdk/sdk-impl/spell/spell-executors.js +1 -1
- package/bin/libs/sdk/sdk-impl/spell/spell-filesystem.js +2 -2
- package/bin/libs/sdk/sdk-impl/utils/tools/tools-agg.js +2 -2
- package/bin/libs/sdk/sdk-impl/utils/utils-build.js +2 -2
- package/bin/libs/sdk/sdk-impl/utils/utils-bump.d.ts +83 -3
- package/bin/libs/sdk/sdk-impl/utils/utils-bump.js +382 -213
- package/bin/libs/sdk/sdk-impl/utils/utils-clean.d.ts +6 -0
- package/bin/libs/sdk/sdk-impl/utils/utils-clean.js +34 -2
- package/bin/libs/sdk/sdk-impl/utils/utils-consts.js +1 -1
- package/bin/libs/sdk/sdk-impl/utils/utils-deps.js +1 -1
- package/bin/libs/sdk/sdk-impl/utils/utils-fs.js +2 -2
- package/bin/libs/sdk/sdk-impl/utils/utils-jsr-json.js +2 -2
- package/bin/libs/sdk/sdk-impl/utils/utils-misc.d.ts +7 -0
- package/bin/libs/sdk/sdk-impl/utils/utils-misc.js +7 -0
- package/bin/libs/sdk/sdk-impl/utils/utils-pkg-json-libs.js +2 -2
- package/bin/libs/sdk/sdk-impl/utils/utils-pkg-json-reg.js +2 -2
- package/bin/libs/sdk/sdk-impl/utils/utils-tsconfig.js +2 -2
- package/bin/libs/sdk/sdk-mod.d.ts +3 -10
- package/bin/libs/sdk/sdk-mod.js +1 -11
- package/bin/libs/sdk/sdk-types.d.ts +329 -13
- package/bin/load.js +1 -1
- package/bin/mod.d.ts +2 -48
- package/package.json +14 -15
- package/bin/app/relifso/init/impl/utils.d.ts +0 -5
- package/bin/app/relifso/init/impl/utils.js +0 -3
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/copy/types.d.ts +0 -9
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/mkdist/types.d.ts +0 -15
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/rollup/types.d.ts +0 -95
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/rollup/types.js +0 -0
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/types.d.ts +0 -176
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/types.js +0 -6
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/untyped/types.d.ts +0 -23
- package/bin/libs/sdk/sdk-impl/build/bundlers/unified/untyped/types.js +0 -0
- package/bin/libs/sdk/sdk-impl/utils/utils-paths.d.ts +0 -55
- package/bin/libs/sdk/sdk-impl/utils/utils-paths.js +0 -667
- package/bin/types.d.ts +0 -475
- package/bin/types.js +0 -0
- /package/bin/app/deps/impl/{types.d.ts → deps-types.d.ts} +0 -0
- /package/bin/app/deps/impl/{types.js → deps-types.js} +0 -0
- /package/bin/app/{relifso/init/impl/types.js → migrate/cmd.d.ts} +0 -0
- /package/bin/{libs/sdk/sdk-impl/build/bundlers/unified/copy/types.js → app/migrate/cmd.js} +0 -0
- /package/bin/app/relifso/init/{impl/const.d.ts → init-const.d.ts} +0 -0
- /package/bin/app/relifso/init/{impl/const.js → init-const.js} +0 -0
- /package/bin/{libs/sdk/sdk-impl/build/bundlers/unified/mkdist/types.js → app/relifso/init/init-types.js} +0 -0
- /package/bin/app/relifso/init/{impl/templates → templates}/t-gitignore.d.ts +0 -0
- /package/bin/app/relifso/init/{impl/templates → templates}/t-gitignore.js +0 -0
- /package/bin/app/relifso/init/{impl/templates → templates}/t-license.d.ts +0 -0
- /package/bin/app/relifso/init/{impl/templates → templates}/t-readme.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import path from "@reliverse/pathkit";
|
|
2
|
+
import fs from "@reliverse/relifso";
|
|
1
3
|
import { relinka } from "@reliverse/relinka";
|
|
2
|
-
import fs from "fs-extra";
|
|
3
4
|
import pMap from "p-map";
|
|
4
|
-
import path from "pathe";
|
|
5
5
|
import { CONCURRENCY_DEFAULT, PROJECT_ROOT } from "./utils-consts.js";
|
|
6
6
|
export async function removeDistFolders(distNpmDirName, distJsrDirName, libsDirDist, libsList) {
|
|
7
7
|
const foldersToRemove = [];
|
|
@@ -33,3 +33,35 @@ export async function removeDistFolders(distNpmDirName, distJsrDirName, libsDirD
|
|
|
33
33
|
}
|
|
34
34
|
return true;
|
|
35
35
|
}
|
|
36
|
+
export async function removeLogInternalCalls(targetDir) {
|
|
37
|
+
const files = await fs.readdir(targetDir, { recursive: true });
|
|
38
|
+
const tsJsFiles = files.filter(
|
|
39
|
+
(file) => file.endsWith(".ts") || file.endsWith(".js") || file.endsWith(".tsx") || file.endsWith(".jsx")
|
|
40
|
+
);
|
|
41
|
+
await pMap(
|
|
42
|
+
tsJsFiles,
|
|
43
|
+
async (file) => {
|
|
44
|
+
const filePath = path.join(targetDir, file);
|
|
45
|
+
const content = await fs.readFile(filePath, "utf-8");
|
|
46
|
+
let newContent = content.replace(
|
|
47
|
+
/logInternal\s*\(\s*(?:`[^`]*`|'[^']*'|"[^"]*"|(?:[^;]*?,\s*)*[^;]*?)\s*\)\s*;?/g,
|
|
48
|
+
""
|
|
49
|
+
);
|
|
50
|
+
newContent = newContent.replace(
|
|
51
|
+
/relinka\s*\(\s*["']internal["']\s*,\s*(?:`[^`]*`|'[^']*'|"[^"]*"|(?:[^;]*?,\s*)*[^;]*?)\s*\)\s*;?/g,
|
|
52
|
+
""
|
|
53
|
+
);
|
|
54
|
+
newContent = newContent.replace(/\n\s*\n\s*\n/g, "\n\n").replace(/^\s*\n/gm, "").replace(/\n\s*$/g, "\n");
|
|
55
|
+
if (newContent !== content) {
|
|
56
|
+
await fs.writeFile(filePath, newContent);
|
|
57
|
+
relinka("verbose", `Processed: ${filePath}`);
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{ concurrency: CONCURRENCY_DEFAULT }
|
|
61
|
+
);
|
|
62
|
+
relinka(
|
|
63
|
+
"success",
|
|
64
|
+
"Successfully removed logInternal and relinka internal calls from files"
|
|
65
|
+
);
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
@@ -2,7 +2,7 @@ import { relinka } from "@reliverse/relinka";
|
|
|
2
2
|
import { readPackageJSON } from "pkg-types";
|
|
3
3
|
import { glob } from "tinyglobby";
|
|
4
4
|
import { readFileSafe } from "./utils-fs.js";
|
|
5
|
-
import { extractPackageName } from "./utils-
|
|
5
|
+
import { extractPackageName } from "./utils-misc.js";
|
|
6
6
|
export async function filterDeps(deps, clearUnused, outDirBin, isJsr, rmDepsMode, rmDepsPatterns) {
|
|
7
7
|
relinka("verbose", `Filtering dependencies (clearUnused=${clearUnused})`);
|
|
8
8
|
if (!deps) return {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import path from "@reliverse/pathkit";
|
|
2
|
+
import fs from "@reliverse/relifso";
|
|
1
3
|
import { relinka } from "@reliverse/relinka";
|
|
2
|
-
import fs from "fs-extra";
|
|
3
4
|
import pMap from "p-map";
|
|
4
|
-
import path from "pathe";
|
|
5
5
|
import { glob } from "tinyglobby";
|
|
6
6
|
import { CONCURRENCY_DEFAULT, SHOW_VERBOSE } from "./utils-consts.js";
|
|
7
7
|
import { determineDistName } from "./utils-determine.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import path from "@reliverse/pathkit";
|
|
2
|
+
import fs from "@reliverse/relifso";
|
|
1
3
|
import { relinka } from "@reliverse/relinka";
|
|
2
|
-
import fs from "fs-extra";
|
|
3
4
|
import pMap from "p-map";
|
|
4
|
-
import path from "pathe";
|
|
5
5
|
import { readPackageJSON } from "pkg-types";
|
|
6
6
|
import { glob } from "tinyglobby";
|
|
7
7
|
import { cliDomainDocs, CONCURRENCY_DEFAULT } from "./utils-consts.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extracts the package name (or scoped package name) from a potential bare import path.
|
|
3
|
+
* Returns null if the path is relative, absolute, or empty.
|
|
4
|
+
* @param importPath - The import path string.
|
|
5
|
+
* @returns The package name (e.g., "react", "@scope/pkg") or null.
|
|
6
|
+
*/
|
|
7
|
+
export declare function extractPackageName(importPath: string | undefined): null | string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import path from "@reliverse/pathkit";
|
|
2
|
+
import fs from "@reliverse/relifso";
|
|
1
3
|
import { relinka } from "@reliverse/relinka";
|
|
2
|
-
import fs from "fs-extra";
|
|
3
|
-
import path from "pathe";
|
|
4
4
|
import { defineTSConfig } from "pkg-types";
|
|
5
5
|
import { tsconfigJson } from "./utils-consts.js";
|
|
6
6
|
export async function createTSConfig(outDirRoot, allowImportingTsExtensions) {
|
|
@@ -4,26 +4,19 @@ export { regular_buildJsrDist, regular_buildNpmDist, } from "./sdk-impl/build/bu
|
|
|
4
4
|
export { autoPreset } from "./sdk-impl/build/bundlers/unified/auto.js";
|
|
5
5
|
export { unifiedBuild } from "./sdk-impl/build/bundlers/unified/build.js";
|
|
6
6
|
export { copyBuild } from "./sdk-impl/build/bundlers/unified/copy/copy.js";
|
|
7
|
-
export type { CopyBuildEntry, CopyHooks, } from "./sdk-impl/build/bundlers/unified/copy/types.js";
|
|
8
7
|
export { mkdistBuild } from "./sdk-impl/build/bundlers/unified/mkdist/mkdist.js";
|
|
9
|
-
export type { MkdistBuildEntry, MkdistHooks, } from "./sdk-impl/build/bundlers/unified/mkdist/types.js";
|
|
10
8
|
export { rollupBuild } from "./sdk-impl/build/bundlers/unified/rollup/build.js";
|
|
11
9
|
export { getRollupOptions } from "./sdk-impl/build/bundlers/unified/rollup/config.js";
|
|
12
10
|
export { cjsPlugin, fixCJSExportTypePlugin, } from "./sdk-impl/build/bundlers/unified/rollup/plugins/cjs.js";
|
|
13
|
-
export type { EsbuildOptions } from "./sdk-impl/build/bundlers/unified/rollup/plugins/esbuild.js";
|
|
14
11
|
export { esbuild } from "./sdk-impl/build/bundlers/unified/rollup/plugins/esbuild.js";
|
|
15
12
|
export { JSONPlugin } from "./sdk-impl/build/bundlers/unified/rollup/plugins/json.js";
|
|
16
13
|
export { rawPlugin } from "./sdk-impl/build/bundlers/unified/rollup/plugins/raw.js";
|
|
17
14
|
export { getShebang, makeExecutable, removeShebangPlugin, shebangPlugin, } from "./sdk-impl/build/bundlers/unified/rollup/plugins/shebang.js";
|
|
18
15
|
export { rollupStub } from "./sdk-impl/build/bundlers/unified/rollup/stub.js";
|
|
19
|
-
export type { RollupBuildEntry, RollupBuildOptions, RollupHooks, RollupOptions, } from "./sdk-impl/build/bundlers/unified/rollup/types.js";
|
|
20
16
|
export { DEFAULT_EXTENSIONS, getChunkFilename, resolveAliases, } from "./sdk-impl/build/bundlers/unified/rollup/utils.js";
|
|
21
17
|
export { rollupWatch } from "./sdk-impl/build/bundlers/unified/rollup/watch.js";
|
|
22
|
-
export type { BaseBuildEntry, BuildContext, BuildEntry, BuildHooks, BuildOptions, BuildPreset, UnifiedBuildConfig, } from "./sdk-impl/build/bundlers/unified/types.js";
|
|
23
|
-
export { defineBuildConfig, definePreset, } from "./sdk-impl/build/bundlers/unified/types.js";
|
|
24
18
|
export { typesBuild } from "./sdk-impl/build/bundlers/unified/untyped/index.js";
|
|
25
|
-
export
|
|
26
|
-
export { arrayIncludes, dumpObject, ensuredir, extractExportFilenames, getpkg, inferPkgExternals, listRecursively, removeExtension, resolvePreset, rmdir, symlink, warn, withTrailingSlash, } from "./sdk-impl/build/bundlers/unified/utils.js";
|
|
19
|
+
export { arrayIncludes, dumpObject, extractExportFilenames, getpkg, inferPkgExternals, listRecursively, removeExtension, resolvePreset, rmdir, symlink, warn, withTrailingSlash, } from "./sdk-impl/build/bundlers/unified/utils.js";
|
|
27
20
|
export { validateDependencies, validatePackage, } from "./sdk-impl/build/bundlers/unified/validate.js";
|
|
28
21
|
export { processLibraryFlow, libraries_buildPublish, } from "./sdk-impl/library-flow.js";
|
|
29
22
|
export { library_publishLibrary } from "./sdk-impl/pub/pub-library.js";
|
|
@@ -47,10 +40,10 @@ export { handleDlerError } from "./sdk-impl/utils/utils-error.js";
|
|
|
47
40
|
export { copyRootFile, getDirectorySize, outDirBinFilesCount, deleteSpecificFiles, readFileSafe, writeFileSafe, } from "./sdk-impl/utils/utils-fs.js";
|
|
48
41
|
export { finalizeBuild } from "./sdk-impl/utils/utils-info.js";
|
|
49
42
|
export { createJsrJSON, renameTsxFiles, } from "./sdk-impl/utils/utils-jsr-json.js";
|
|
50
|
-
export
|
|
51
|
-
export { extractPackageName, convertImportPaths, convertImportExtensionsJsToTs, normalizeQuotes, } from "./sdk-impl/utils/utils-paths.js";
|
|
43
|
+
export { extractPackageName } from "./sdk-impl/utils/utils-misc.js";
|
|
52
44
|
export type { PerfTimer } from "./sdk-impl/utils/utils-perf.js";
|
|
53
45
|
export { createPerfTimer, getElapsedPerfTime, pausePerfTimer, resumePerfTimer, } from "./sdk-impl/utils/utils-perf.js";
|
|
54
46
|
export { library_createPackageJSON } from "./sdk-impl/utils/utils-pkg-json-libs.js";
|
|
55
47
|
export { regular_createPackageJSON } from "./sdk-impl/utils/utils-pkg-json-reg.js";
|
|
56
48
|
export { createTSConfig } from "./sdk-impl/utils/utils-tsconfig.js";
|
|
49
|
+
export type { CopyHooks, MkdistHooks, RollupBuildEntry, RollupBuildOptions, RollupHooks, UntypedHooks, UntypedOutput, BaseBuildEntry, BuildHooks, } from "./sdk-types.js";
|
package/bin/libs/sdk/sdk-mod.js
CHANGED
|
@@ -29,15 +29,10 @@ export {
|
|
|
29
29
|
resolveAliases
|
|
30
30
|
} from "./sdk-impl/build/bundlers/unified/rollup/utils.js";
|
|
31
31
|
export { rollupWatch } from "./sdk-impl/build/bundlers/unified/rollup/watch.js";
|
|
32
|
-
export {
|
|
33
|
-
defineBuildConfig,
|
|
34
|
-
definePreset
|
|
35
|
-
} from "./sdk-impl/build/bundlers/unified/types.js";
|
|
36
32
|
export { typesBuild } from "./sdk-impl/build/bundlers/unified/untyped/index.js";
|
|
37
33
|
export {
|
|
38
34
|
arrayIncludes,
|
|
39
35
|
dumpObject,
|
|
40
|
-
ensuredir,
|
|
41
36
|
extractExportFilenames,
|
|
42
37
|
getpkg,
|
|
43
38
|
inferPkgExternals,
|
|
@@ -130,12 +125,7 @@ export {
|
|
|
130
125
|
createJsrJSON,
|
|
131
126
|
renameTsxFiles
|
|
132
127
|
} from "./sdk-impl/utils/utils-jsr-json.js";
|
|
133
|
-
export {
|
|
134
|
-
extractPackageName,
|
|
135
|
-
convertImportPaths,
|
|
136
|
-
convertImportExtensionsJsToTs,
|
|
137
|
-
normalizeQuotes
|
|
138
|
-
} from "./sdk-impl/utils/utils-paths.js";
|
|
128
|
+
export { extractPackageName } from "./sdk-impl/utils/utils-misc.js";
|
|
139
129
|
export {
|
|
140
130
|
createPerfTimer,
|
|
141
131
|
getElapsedPerfTime,
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import type { FilterPattern } from "@rollup/pluginutils";
|
|
2
|
+
import type { CommonOptions, Loader } from "esbuild";
|
|
3
|
+
import type { Hookable } from "hookable";
|
|
4
|
+
import type { Jiti, JitiOptions } from "jiti";
|
|
5
|
+
import type { PackageJson } from "pkg-types";
|
|
6
|
+
import type { WatcherOptions } from "rollup";
|
|
7
|
+
import type { Schema } from "untyped";
|
|
1
8
|
/**
|
|
2
9
|
* Defines the configuration for building and publishing packages. This includes: versioning,
|
|
3
10
|
* build settings, publishing options, libraries-dler-plugin built-in plugin, and more.
|
|
@@ -26,16 +33,25 @@ export type BuildPublishConfig = {
|
|
|
26
33
|
*/
|
|
27
34
|
bumpFilter: string[];
|
|
28
35
|
/**
|
|
29
|
-
* Specifies how the version number should be incremented
|
|
30
|
-
* - `
|
|
31
|
-
* - `
|
|
32
|
-
* - `
|
|
36
|
+
* Specifies how the version number should be incremented:
|
|
37
|
+
* - `patch`: Increments the patch version for backwards-compatible bug fixes (1.2.3 → 1.2.4)
|
|
38
|
+
* - `minor`: Increments the minor version for new backwards-compatible features (1.2.3 → 1.3.0)
|
|
39
|
+
* - `major`: Increments the major version for breaking changes (1.2.3 → 2.0.0)
|
|
40
|
+
* - `auto`: Automatically determine the appropriate bump type
|
|
41
|
+
* - `manual`: Set a specific version (requires bumpSet to be set)
|
|
33
42
|
*
|
|
34
43
|
* Please note: `dler` infers the version from the `package.json` file.
|
|
35
44
|
*
|
|
36
|
-
* @default "
|
|
45
|
+
* @default "patch"
|
|
37
46
|
*/
|
|
38
47
|
bumpMode: BumpMode;
|
|
48
|
+
/**
|
|
49
|
+
* Custom version to set when bumpMode is "manual".
|
|
50
|
+
* Must be a valid semver version (e.g., "1.2.3").
|
|
51
|
+
*
|
|
52
|
+
* @default ""
|
|
53
|
+
*/
|
|
54
|
+
bumpSet: string;
|
|
39
55
|
/**
|
|
40
56
|
* When `true`, stops after building and retains distribution folders.
|
|
41
57
|
* Useful for development or inspecting the build output.
|
|
@@ -356,13 +372,6 @@ export type BuildPublishConfig = {
|
|
|
356
372
|
*/
|
|
357
373
|
transpileWatch: boolean;
|
|
358
374
|
};
|
|
359
|
-
/**
|
|
360
|
-
* Supported bump modes for versioning:
|
|
361
|
-
* - autoPatch: 1.2.3 → 1.2.4
|
|
362
|
-
* - autoMinor: 1.2.3 → 1.3.0
|
|
363
|
-
* - autoMajor: 1.2.3 → 2.0.0
|
|
364
|
-
*/
|
|
365
|
-
export type BumpMode = "autoMajor" | "autoMinor" | "autoPatch";
|
|
366
375
|
/**
|
|
367
376
|
* Supported bundler names for building packages:
|
|
368
377
|
* - bun: Bun's built-in bundler for fast builds
|
|
@@ -424,7 +433,7 @@ export type LibConfig = {
|
|
|
424
433
|
* - `true`: Includes all dependencies from the main package.json.
|
|
425
434
|
* - `false` or `undefined`: Automatically determines dependencies based on imports.
|
|
426
435
|
*
|
|
427
|
-
* @example ["
|
|
436
|
+
* @example ["@reliverse/pathkit", "@reliverse/relifso"] - Only will include these specific dependencies.
|
|
428
437
|
* @example true - Include all `dependencies` from the main package.json.
|
|
429
438
|
*/
|
|
430
439
|
libPkgKeepDeps: boolean | string[];
|
|
@@ -473,3 +482,310 @@ export type transpileFormat = "cjs" | "esm" | "iife";
|
|
|
473
482
|
* - browser: Optimized for web browsers.
|
|
474
483
|
*/
|
|
475
484
|
export type transpileTarget = "browser" | "bun" | "node";
|
|
485
|
+
export type CopyBuildEntry = BaseBuildEntry & {
|
|
486
|
+
builder: "copy";
|
|
487
|
+
pattern?: string | string[];
|
|
488
|
+
};
|
|
489
|
+
export type CopyHooks = {
|
|
490
|
+
"copy:done": (ctx: BuildContext) => Promise<void> | void;
|
|
491
|
+
"copy:entries": (ctx: BuildContext, entries: CopyBuildEntry[]) => Promise<void> | void;
|
|
492
|
+
};
|
|
493
|
+
import type { MkdistOptions } from "mkdist";
|
|
494
|
+
export type MkdistBuildEntry = _BaseAndMkdist & {
|
|
495
|
+
builder: "mkdist";
|
|
496
|
+
};
|
|
497
|
+
export type MkdistHooks = {
|
|
498
|
+
"mkdist:done": (ctx: BuildContext) => Promise<void> | void;
|
|
499
|
+
"mkdist:entries": (ctx: BuildContext, entries: MkdistBuildEntry[]) => Promise<void> | void;
|
|
500
|
+
"mkdist:entry:build": (ctx: BuildContext, entry: MkdistBuildEntry, output: {
|
|
501
|
+
writtenFiles: string[];
|
|
502
|
+
}) => Promise<void> | void;
|
|
503
|
+
"mkdist:entry:options": (ctx: BuildContext, entry: MkdistBuildEntry, options: MkdistOptions) => Promise<void> | void;
|
|
504
|
+
};
|
|
505
|
+
type _BaseAndMkdist = BaseBuildEntry & MkdistOptions;
|
|
506
|
+
import type { RollupAliasOptions } from "@rollup/plugin-alias";
|
|
507
|
+
import type { RollupCommonJSOptions } from "@rollup/plugin-commonjs";
|
|
508
|
+
import type { RollupJsonOptions } from "@rollup/plugin-json";
|
|
509
|
+
import type { RollupNodeResolveOptions } from "@rollup/plugin-node-resolve";
|
|
510
|
+
import type { RollupReplaceOptions } from "@rollup/plugin-replace";
|
|
511
|
+
import type { RollupOptions as _RollupOptions, OutputOptions, Plugin, RollupBuild } from "rollup";
|
|
512
|
+
import type { Options as RollupDtsOptions } from "rollup-plugin-dts";
|
|
513
|
+
import type { BumpMode } from "./sdk-impl/utils/utils-bump.js";
|
|
514
|
+
export type RollupBuildEntry = BaseBuildEntry & {
|
|
515
|
+
builder: "rollup";
|
|
516
|
+
};
|
|
517
|
+
export type EsbuildOptions = CommonOptions & {
|
|
518
|
+
exclude?: FilterPattern;
|
|
519
|
+
include?: FilterPattern;
|
|
520
|
+
/**
|
|
521
|
+
* Map extension to transpileEsbuild loader
|
|
522
|
+
* Note that each entry (the extension) needs to start with a dot
|
|
523
|
+
*/
|
|
524
|
+
loaders?: Record<string, false | Loader>;
|
|
525
|
+
};
|
|
526
|
+
export type RollupBuildOptions = {
|
|
527
|
+
/**
|
|
528
|
+
* Alias plugin options
|
|
529
|
+
* Set to `false` to disable the plugin.
|
|
530
|
+
* Read more: [@rollup/plugin-alias](https://npmjs.com/package/@rollup/plugin-alias)
|
|
531
|
+
*/
|
|
532
|
+
alias: false | RollupAliasOptions;
|
|
533
|
+
/**
|
|
534
|
+
* If enabled, dler generates CommonJS polyfills for ESM builds.
|
|
535
|
+
*/
|
|
536
|
+
cjsBridge?: boolean;
|
|
537
|
+
/**
|
|
538
|
+
* CommonJS plugin options
|
|
539
|
+
* Set to `false` to disable the plugin.
|
|
540
|
+
* Read more: [@rollup/plugin-commonjs](https://npmjs.com/package/@rollup/plugin-commonjs)
|
|
541
|
+
*/
|
|
542
|
+
commonjs: false | RollupCommonJSOptions;
|
|
543
|
+
/**
|
|
544
|
+
* DTS plugin options
|
|
545
|
+
* Set to `false` to disable the plugin.
|
|
546
|
+
* Read more: [rollup-plugin-dts](https://npmjs.com/package/rollup-plugin-dts)
|
|
547
|
+
*/
|
|
548
|
+
dts: RollupDtsOptions;
|
|
549
|
+
/**
|
|
550
|
+
* If enabled, dler generates a CommonJS build in addition to the ESM build.
|
|
551
|
+
*/
|
|
552
|
+
emitCJS?: boolean;
|
|
553
|
+
/**
|
|
554
|
+
* ESBuild plugin options
|
|
555
|
+
* Set to `false` to disable the plugin.
|
|
556
|
+
* Read more: [transpileEsbuild](https://npmjs.com/package/transpileEsbuild)
|
|
557
|
+
*/
|
|
558
|
+
esbuild: EsbuildOptions | false;
|
|
559
|
+
/**
|
|
560
|
+
* Whether to inline dependencies not explicitly set in "dependencies" or "peerDependencies" or as marked externals to the bundle.
|
|
561
|
+
*
|
|
562
|
+
* If set to true, all such dependencies will be inlined.
|
|
563
|
+
* If an array of string or regular expressions is passed, these will be used to determine whether to inline such a dependency.
|
|
564
|
+
*/
|
|
565
|
+
inlineDependencies?: (RegExp | string)[] | boolean;
|
|
566
|
+
/**
|
|
567
|
+
* JSON plugin options
|
|
568
|
+
* Set to `false` to disable the plugin.
|
|
569
|
+
* Read more: [@rollup/plugin-json](https://npmjs.com/package/@rollup/plugin-json)
|
|
570
|
+
*/
|
|
571
|
+
json: false | RollupJsonOptions;
|
|
572
|
+
/**
|
|
573
|
+
* Rollup [Output Options](https://rollupjs.org/configuration-options)
|
|
574
|
+
*/
|
|
575
|
+
output?: OutputOptions;
|
|
576
|
+
/**
|
|
577
|
+
* Preserve dynamic imports as-is
|
|
578
|
+
*/
|
|
579
|
+
preserveDynamicImports?: boolean;
|
|
580
|
+
/**
|
|
581
|
+
* Replace plugin options
|
|
582
|
+
* Set to `false` to disable the plugin.
|
|
583
|
+
* Read more: [@rollup/plugin-replace](https://npmjs.com/package/@rollup/plugin-replace)
|
|
584
|
+
*/
|
|
585
|
+
replace: false | RollupReplaceOptions;
|
|
586
|
+
/**
|
|
587
|
+
* Resolve plugin options
|
|
588
|
+
* Set to `false` to disable the plugin.
|
|
589
|
+
* Read more: [@rollup/plugin-node-resolve](https://npmjs.com/package/@rollup/plugin-node-resolve)
|
|
590
|
+
*/
|
|
591
|
+
resolve: false | RollupNodeResolveOptions;
|
|
592
|
+
/**
|
|
593
|
+
* Enable experimental active watcher
|
|
594
|
+
*
|
|
595
|
+
* @experimental
|
|
596
|
+
*/
|
|
597
|
+
watch?: boolean;
|
|
598
|
+
};
|
|
599
|
+
export type RollupHooks = {
|
|
600
|
+
"rollup:build": (ctx: BuildContext, build: RollupBuild) => Promise<void> | void;
|
|
601
|
+
"rollup:done": (ctx: BuildContext) => Promise<void> | void;
|
|
602
|
+
"rollup:dts:build": (ctx: BuildContext, build: RollupBuild) => Promise<void> | void;
|
|
603
|
+
"rollup:dts:options": (ctx: BuildContext, options: RollupOptions) => Promise<void> | void;
|
|
604
|
+
"rollup:options": (ctx: BuildContext, options: RollupOptions) => Promise<void> | void;
|
|
605
|
+
};
|
|
606
|
+
export type RollupOptions = _RollupOptions & {
|
|
607
|
+
plugins: Plugin[];
|
|
608
|
+
};
|
|
609
|
+
export type UntypedBuildEntry = BaseBuildEntry & {
|
|
610
|
+
builder: "untyped";
|
|
611
|
+
defaults?: Record<string, any>;
|
|
612
|
+
};
|
|
613
|
+
export type UntypedHooks = {
|
|
614
|
+
"untyped:done": (ctx: BuildContext) => Promise<void> | void;
|
|
615
|
+
"untyped:entries": (ctx: BuildContext, entries: UntypedBuildEntry[]) => Promise<void> | void;
|
|
616
|
+
"untyped:entry:options": (ctx: BuildContext, entry: UntypedBuildEntry, options: any) => Promise<void> | void;
|
|
617
|
+
"untyped:entry:outputs": (ctx: BuildContext, entry: UntypedBuildEntry, outputs: UntypedOutputs) => Promise<void> | void;
|
|
618
|
+
"untyped:entry:schema": (ctx: BuildContext, entry: UntypedBuildEntry, schema: Schema) => Promise<void> | void;
|
|
619
|
+
};
|
|
620
|
+
export type UntypedOutput = {
|
|
621
|
+
contents: string;
|
|
622
|
+
fileName: string;
|
|
623
|
+
};
|
|
624
|
+
export type UntypedOutputs = {
|
|
625
|
+
declaration?: UntypedOutput;
|
|
626
|
+
defaults: UntypedOutput;
|
|
627
|
+
markdown: UntypedOutput;
|
|
628
|
+
schema: UntypedOutput;
|
|
629
|
+
};
|
|
630
|
+
export type BaseBuildEntry = {
|
|
631
|
+
builder?: "copy" | "mkdist" | "rollup" | "untyped";
|
|
632
|
+
declaration?: "compatible" | "node16" | boolean;
|
|
633
|
+
input: string;
|
|
634
|
+
name?: string;
|
|
635
|
+
outDir?: string;
|
|
636
|
+
isLib: boolean;
|
|
637
|
+
};
|
|
638
|
+
export type BuildContext = {
|
|
639
|
+
buildEntries: {
|
|
640
|
+
bytes?: number;
|
|
641
|
+
chunk?: boolean;
|
|
642
|
+
chunks?: string[];
|
|
643
|
+
exports?: string[];
|
|
644
|
+
modules?: {
|
|
645
|
+
bytes: number;
|
|
646
|
+
id: string;
|
|
647
|
+
}[];
|
|
648
|
+
path: string;
|
|
649
|
+
isLib: boolean;
|
|
650
|
+
}[];
|
|
651
|
+
hooks: Hookable<BuildHooks>;
|
|
652
|
+
jiti: Jiti;
|
|
653
|
+
options: BuildOptions;
|
|
654
|
+
pkg: PackageJson;
|
|
655
|
+
usedImports: Set<string>;
|
|
656
|
+
warnings: Set<string>;
|
|
657
|
+
isLib: boolean;
|
|
658
|
+
};
|
|
659
|
+
export type BuildEntry = BaseBuildEntry | CopyBuildEntry | MkdistBuildEntry | RollupBuildEntry | UntypedBuildEntry;
|
|
660
|
+
export type BuildHooks = CopyHooks & MkdistHooks & RollupHooks & UntypedHooks & {
|
|
661
|
+
"build:before": (ctx: BuildContext) => Promise<void> | void;
|
|
662
|
+
"build:done": (ctx: BuildContext) => Promise<void> | void;
|
|
663
|
+
"build:prepare": (ctx: BuildContext) => Promise<void> | void;
|
|
664
|
+
};
|
|
665
|
+
export type BuildOptions = {
|
|
666
|
+
/**
|
|
667
|
+
* Create aliases for module imports to reference modules in code using more concise paths.
|
|
668
|
+
* Allow you to specify an alias for the module path.
|
|
669
|
+
*/
|
|
670
|
+
alias: Record<string, string>;
|
|
671
|
+
/**
|
|
672
|
+
* Clean the output directory before building.
|
|
673
|
+
*/
|
|
674
|
+
clean: boolean;
|
|
675
|
+
/**
|
|
676
|
+
* Whether to generate declaration files.
|
|
677
|
+
* * `compatible` means "src/index.ts" will generate "dist/index.d.mts", "dist/index.d.cts" and "dist/index.d.ts".
|
|
678
|
+
* * `node16` means "src/index.ts" will generate "dist/index.d.mts" and "dist/index.d.cts".
|
|
679
|
+
* * `true` is equivalent to `compatible`.
|
|
680
|
+
* * `false` will disable declaration generation.
|
|
681
|
+
* * `undefined` will auto detect based on "package.json". If "package.json" has "types" field, it will be `"compatible"`, otherwise `false`.
|
|
682
|
+
*/
|
|
683
|
+
declaration?: "compatible" | "node16" | boolean;
|
|
684
|
+
dependencies: string[];
|
|
685
|
+
devDependencies: string[];
|
|
686
|
+
/**
|
|
687
|
+
* Build entries.
|
|
688
|
+
*/
|
|
689
|
+
entries: BuildEntry[];
|
|
690
|
+
/**
|
|
691
|
+
* Used to specify which modules or libraries should be considered
|
|
692
|
+
* external dependencies and not included in the final build product.
|
|
693
|
+
*/
|
|
694
|
+
externals: (RegExp | string)[];
|
|
695
|
+
/**
|
|
696
|
+
* Terminate the build process when a warning appears
|
|
697
|
+
*/
|
|
698
|
+
failOnWarn?: boolean;
|
|
699
|
+
/**
|
|
700
|
+
* Whether the current build is for a library.
|
|
701
|
+
*/
|
|
702
|
+
isLib: boolean;
|
|
703
|
+
/**
|
|
704
|
+
* The name of the project.
|
|
705
|
+
*/
|
|
706
|
+
name: string;
|
|
707
|
+
/**
|
|
708
|
+
* Output directory.
|
|
709
|
+
*/
|
|
710
|
+
outDir: string;
|
|
711
|
+
/**
|
|
712
|
+
* Run different types of builds (untyped, mkdist, Rollup, copy) simultaneously.
|
|
713
|
+
*/
|
|
714
|
+
parallel: boolean;
|
|
715
|
+
peerDependencies: string[];
|
|
716
|
+
/**
|
|
717
|
+
* Replace the text in the source code with rules.
|
|
718
|
+
*/
|
|
719
|
+
replace: Record<string, string>;
|
|
720
|
+
/**
|
|
721
|
+
* [Rollup](https://rollupjs.org/configuration-options) Build Options
|
|
722
|
+
*/
|
|
723
|
+
rollup: RollupBuildOptions;
|
|
724
|
+
/**
|
|
725
|
+
* The root directory of the project.
|
|
726
|
+
*/
|
|
727
|
+
rootDir: string;
|
|
728
|
+
/**
|
|
729
|
+
* Hide output logs during the build process.
|
|
730
|
+
* When true, suppresses non-essential console output.
|
|
731
|
+
*/
|
|
732
|
+
showOutLog?: boolean;
|
|
733
|
+
/**
|
|
734
|
+
* @experimental
|
|
735
|
+
* Generate source mapping file.
|
|
736
|
+
*/
|
|
737
|
+
transpileSourcemap: boolean;
|
|
738
|
+
/**
|
|
739
|
+
* Whether to build with JIT transpileStubs.
|
|
740
|
+
* Read more: [transpileStubbing](https://antfu.me/posts/publish-esm-and-cjs#transpileStubbing)
|
|
741
|
+
*/
|
|
742
|
+
transpileStub: boolean;
|
|
743
|
+
/**
|
|
744
|
+
* Stub options, where [jiti](https://github.com/unjs/jiti)
|
|
745
|
+
* is an object of type `Omit<JitiOptions, "transform" | "onError">`.
|
|
746
|
+
*/
|
|
747
|
+
transpileStubOptions: {
|
|
748
|
+
jiti: Omit<JitiOptions, "onError" | "transform">;
|
|
749
|
+
};
|
|
750
|
+
/**
|
|
751
|
+
* Whether to build and actively transpileWatch the file changes.
|
|
752
|
+
*
|
|
753
|
+
* @experimental This feature is experimental and incomplete.
|
|
754
|
+
*/
|
|
755
|
+
transpileWatch: boolean;
|
|
756
|
+
/**
|
|
757
|
+
* Watch mode options.
|
|
758
|
+
*/
|
|
759
|
+
transpileWatchOptions: undefined | WatcherOptions;
|
|
760
|
+
};
|
|
761
|
+
export type BuildPreset = (() => UnifiedBuildConfig) | UnifiedBuildConfig;
|
|
762
|
+
/**
|
|
763
|
+
* In addition to basic `entries`, `presets`, and `hooks`,
|
|
764
|
+
* there are also all the properties of `BuildOptions` except for BuildOptions's `entries`.
|
|
765
|
+
*/
|
|
766
|
+
export type UnifiedBuildConfig = DeepPartial<Omit<BuildOptions, "entries">> & {
|
|
767
|
+
/**
|
|
768
|
+
* Specify the entry file or entry module during the construction process.
|
|
769
|
+
*/
|
|
770
|
+
entries?: (BuildEntry | string)[];
|
|
771
|
+
/**
|
|
772
|
+
* Used to define hook functions during the construction process to perform custom operations during specific construction stages.
|
|
773
|
+
* This configuration allows you to insert custom logic during the build process to meet specific requirements or perform additional operations.
|
|
774
|
+
*/
|
|
775
|
+
hooks?: Partial<BuildHooks>;
|
|
776
|
+
/**
|
|
777
|
+
* Used to specify the preset build configuration.
|
|
778
|
+
*/
|
|
779
|
+
preset?: BuildPreset | string;
|
|
780
|
+
/**
|
|
781
|
+
* Used to create a stub for the build configuration.
|
|
782
|
+
* A stub is a simplified version of a mock object that is used to simulate the behavior of a real object.
|
|
783
|
+
* It is used to test the behavior of the object under test.
|
|
784
|
+
* @see https://turing.com/kb/stub-vs-mock#what-exactly-is-a-stub?
|
|
785
|
+
*/
|
|
786
|
+
stub?: boolean;
|
|
787
|
+
};
|
|
788
|
+
type DeepPartial<T> = {
|
|
789
|
+
[P in keyof T]?: DeepPartial<T[P]>;
|
|
790
|
+
};
|
|
791
|
+
export {};
|
package/bin/load.js
CHANGED
package/bin/mod.d.ts
CHANGED
|
@@ -1,48 +1,2 @@
|
|
|
1
|
-
import type { BuildPublishConfig } from "./types.js";
|
|
2
|
-
export declare const defineConfig: (userConfig?: Partial<BuildPublishConfig>) =>
|
|
3
|
-
bumpDisable: boolean;
|
|
4
|
-
bumpFilter: string[];
|
|
5
|
-
bumpMode: import("./types.js").BumpMode;
|
|
6
|
-
commonPubPause: boolean;
|
|
7
|
-
commonPubRegistry: "jsr" | "npm" | "npm-jsr";
|
|
8
|
-
commonVerbose: boolean;
|
|
9
|
-
coreDeclarations: boolean;
|
|
10
|
-
coreEntryFile: string;
|
|
11
|
-
coreEntrySrcDir: string;
|
|
12
|
-
coreBuildOutDir: string;
|
|
13
|
-
coreIsCLI: {
|
|
14
|
-
enabled: boolean;
|
|
15
|
-
scripts: Record<string, string>;
|
|
16
|
-
};
|
|
17
|
-
coreDescription: string;
|
|
18
|
-
distJsrAllowDirty: boolean;
|
|
19
|
-
distJsrBuilder: import("./types.js").BundlerName;
|
|
20
|
-
distJsrCopyRootFiles: string[];
|
|
21
|
-
distJsrDirName: string;
|
|
22
|
-
distJsrDryRun: boolean;
|
|
23
|
-
distJsrFailOnWarn: boolean;
|
|
24
|
-
distJsrGenTsconfig: boolean;
|
|
25
|
-
distJsrOutFilesExt: import("./types.js").NpmOutExt;
|
|
26
|
-
distJsrSlowTypes: boolean;
|
|
27
|
-
distNpmBuilder: import("./types.js").BundlerName;
|
|
28
|
-
distNpmCopyRootFiles: string[];
|
|
29
|
-
distNpmDirName: string;
|
|
30
|
-
distNpmOutFilesExt: import("./types.js").NpmOutExt;
|
|
31
|
-
libsActMode: "libs-only" | "main-and-libs" | "main-project-only";
|
|
32
|
-
libsDirDist: string;
|
|
33
|
-
libsDirSrc: string;
|
|
34
|
-
libsList: Record<string, import("./types.js").LibConfig>;
|
|
35
|
-
logsFileName: string;
|
|
36
|
-
logsFreshFile: boolean;
|
|
37
|
-
rmDepsMode: import("./types.js").ExcludeMode;
|
|
38
|
-
rmDepsPatterns: string[];
|
|
39
|
-
transpileEsbuild: import("./types.js").Esbuild;
|
|
40
|
-
transpileFormat: import("./types.js").transpileFormat;
|
|
41
|
-
transpileMinify: boolean;
|
|
42
|
-
transpilePublicPath: string;
|
|
43
|
-
transpileSourcemap: import("./types.js").Sourcemap;
|
|
44
|
-
transpileSplitting: boolean;
|
|
45
|
-
transpileStub: boolean;
|
|
46
|
-
transpileTarget: import("./types.js").transpileTarget;
|
|
47
|
-
transpileWatch: boolean;
|
|
48
|
-
};
|
|
1
|
+
import type { BuildPublishConfig } from "./libs/sdk/sdk-types.js";
|
|
2
|
+
export declare const defineConfig: (userConfig?: Partial<BuildPublishConfig>) => any;
|