@reliverse/relico 1.4.1 → 2.2.7
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 +16 -20
- package/dist/mod.d.ts +60 -0
- package/dist/mod.js +455 -0
- package/package.json +17 -20
- package/.vscode/extensions.json +0 -8
- package/.vscode/settings.json +0 -45
- package/LICENSE +0 -21
- package/biome.json +0 -86
- package/examples/benchmarks/bundle-size.ts +0 -143
- package/examples/benchmarks/config.example.ts +0 -55
- package/examples/benchmarks/config.ts +0 -93
- package/examples/benchmarks/performance.ts +0 -172
- package/examples/core.ts +0 -62
- package/reliverse.ts +0 -399
- package/reltypes.ts +0 -1490
- package/src/mod.ts +0 -537
- package/tsconfig.json +0 -33
package/reltypes.ts
DELETED
|
@@ -1,1490 +0,0 @@
|
|
|
1
|
-
// reliverse.ts types version 2025-08-26 (this file is generated, don't edit it)
|
|
2
|
-
export interface ReliverseConfig {
|
|
3
|
-
$schema?: string;
|
|
4
|
-
projectName?: UnknownLiteral | (string & {});
|
|
5
|
-
projectAuthor?: UnknownLiteral | (string & {});
|
|
6
|
-
projectDescription?: string;
|
|
7
|
-
version?: string;
|
|
8
|
-
projectLicense?: string;
|
|
9
|
-
projectRepository?: string;
|
|
10
|
-
projectDomain?: string;
|
|
11
|
-
projectGitService?: ProjectGitService;
|
|
12
|
-
projectDeployService?: ProjectDeployService;
|
|
13
|
-
projectPackageManager?: ProjectPackageManager;
|
|
14
|
-
projectState?: ProjectState;
|
|
15
|
-
projectCategory?: ProjectCategory;
|
|
16
|
-
projectSubcategory?: ProjectSubcategory;
|
|
17
|
-
projectFramework?: ProjectFramework;
|
|
18
|
-
projectTemplate?: ProjectTemplate;
|
|
19
|
-
projectTemplateDate?: string;
|
|
20
|
-
features?: {
|
|
21
|
-
i18n?: boolean;
|
|
22
|
-
analytics?: boolean;
|
|
23
|
-
themeMode?: ThemeMode;
|
|
24
|
-
authentication?: boolean;
|
|
25
|
-
api?: boolean;
|
|
26
|
-
database?: boolean;
|
|
27
|
-
testing?: boolean;
|
|
28
|
-
docker?: boolean;
|
|
29
|
-
ci?: boolean;
|
|
30
|
-
commands?: string[];
|
|
31
|
-
webview?: string[];
|
|
32
|
-
language?: string[];
|
|
33
|
-
themes?: string[];
|
|
34
|
-
};
|
|
35
|
-
preferredLibraries?: {
|
|
36
|
-
stateManagement?: PreferredStateManagement;
|
|
37
|
-
formManagement?: PreferredForm;
|
|
38
|
-
styling?: PreferredStyling;
|
|
39
|
-
uiComponents?: PreferredUI;
|
|
40
|
-
testing?: PreferredTesting;
|
|
41
|
-
authentication?: PreferredAuth;
|
|
42
|
-
databaseLibrary?: PreferredDBLib;
|
|
43
|
-
databaseProvider?: PreferredDBProvider;
|
|
44
|
-
api?: PreferredAPI;
|
|
45
|
-
linting?: PreferredLint;
|
|
46
|
-
formatting?: PreferredFormat;
|
|
47
|
-
payment?: PreferredPayment;
|
|
48
|
-
analytics?: PreferredAnalytics;
|
|
49
|
-
monitoring?: PreferredMonitoring;
|
|
50
|
-
logging?: PreferredLogging;
|
|
51
|
-
forms?: PreferredForms;
|
|
52
|
-
notifications?: PreferredNotifications;
|
|
53
|
-
search?: PreferredSearch;
|
|
54
|
-
uploads?: PreferredUploads;
|
|
55
|
-
validation?: PreferredValidation;
|
|
56
|
-
documentation?: PreferredDocs;
|
|
57
|
-
icons?: PreferredIcons;
|
|
58
|
-
mail?: PreferredMail;
|
|
59
|
-
cache?: PreferredCache;
|
|
60
|
-
storage?: PreferredStorage;
|
|
61
|
-
cdn?: PreferredCDN;
|
|
62
|
-
cms?: PreferredCMS;
|
|
63
|
-
i18n?: PreferredI18n;
|
|
64
|
-
seo?: PreferredSEO;
|
|
65
|
-
motion?: PreferredMotion;
|
|
66
|
-
charts?: PreferredCharts;
|
|
67
|
-
dates?: PreferredDates;
|
|
68
|
-
markdown?: PreferredMarkdown;
|
|
69
|
-
security?: PreferredSecurity;
|
|
70
|
-
routing?: PreferredRouting;
|
|
71
|
-
};
|
|
72
|
-
codeStyle?: {
|
|
73
|
-
lineWidth?: number;
|
|
74
|
-
indentSize?: number;
|
|
75
|
-
indentStyle?: "space" | "tab";
|
|
76
|
-
quoteMark?: "single" | "double";
|
|
77
|
-
semicolons?: boolean;
|
|
78
|
-
trailingCommas?: "none" | "es5" | "all";
|
|
79
|
-
bracketSpacing?: boolean;
|
|
80
|
-
arrowParens?: "always" | "avoid";
|
|
81
|
-
tabWidth?: number;
|
|
82
|
-
jsToTs?: boolean;
|
|
83
|
-
dontRemoveComments?: boolean;
|
|
84
|
-
shouldAddComments?: boolean;
|
|
85
|
-
typeOrInterface?: "type" | "interface" | "mixed";
|
|
86
|
-
importOrRequire?: "import" | "require" | "mixed";
|
|
87
|
-
cjsToEsm?: boolean;
|
|
88
|
-
modernize?: {
|
|
89
|
-
replaceFs?: boolean;
|
|
90
|
-
replacePath?: boolean;
|
|
91
|
-
replaceHttp?: boolean;
|
|
92
|
-
replaceProcess?: boolean;
|
|
93
|
-
replaceConsole?: boolean;
|
|
94
|
-
replaceEvents?: boolean;
|
|
95
|
-
};
|
|
96
|
-
importSymbol?: string;
|
|
97
|
-
};
|
|
98
|
-
monorepo?: {
|
|
99
|
-
type?: "none" | "turborepo" | "nx" | "pnpm" | "bun";
|
|
100
|
-
packages?: string[];
|
|
101
|
-
sharedPackages?: string[];
|
|
102
|
-
};
|
|
103
|
-
ignoreDependencies?: string[];
|
|
104
|
-
customRules?: Record<string, unknown>;
|
|
105
|
-
multipleRepoCloneMode?: boolean;
|
|
106
|
-
customUserFocusedRepos?: string[];
|
|
107
|
-
customDevsFocusedRepos?: string[];
|
|
108
|
-
hideRepoSuggestions?: boolean;
|
|
109
|
-
customReposOnNewProject?: boolean;
|
|
110
|
-
envComposerOpenBrowser?: boolean;
|
|
111
|
-
repoBranch?: string;
|
|
112
|
-
repoPrivacy?: RepoPrivacy;
|
|
113
|
-
projectArchitecture?: ProjectArchitecture;
|
|
114
|
-
projectRuntime?: ProjectRuntime;
|
|
115
|
-
skipPromptsUseAutoBehavior?: boolean;
|
|
116
|
-
deployBehavior?: "prompt" | "autoYes" | "autoNo";
|
|
117
|
-
depsBehavior?: "prompt" | "autoYes" | "autoNo";
|
|
118
|
-
gitBehavior?: "prompt" | "autoYes" | "autoNo";
|
|
119
|
-
i18nBehavior?: "prompt" | "autoYes" | "autoNo";
|
|
120
|
-
scriptsBehavior?: "prompt" | "autoYes" | "autoNo";
|
|
121
|
-
existingRepoBehavior?: "prompt" | "autoYes" | "autoYesSkipCommit" | "autoNo";
|
|
122
|
-
relinterConfirm?: RelinterConfirm;
|
|
123
|
-
// ==========================================================================
|
|
124
|
-
// Bump configuration
|
|
125
|
-
// ==========================================================================
|
|
126
|
-
/**
|
|
127
|
-
* When `true`, disables version bumping.
|
|
128
|
-
* Useful when retrying a failed publish with an already bumped version.
|
|
129
|
-
*
|
|
130
|
-
* @default false
|
|
131
|
-
*/
|
|
132
|
-
bumpDisable: boolean;
|
|
133
|
-
/**
|
|
134
|
-
* Controls which files will have their version numbers updated during version bumping.
|
|
135
|
-
*
|
|
136
|
-
* Accepts:
|
|
137
|
-
* - Standard file types like "package.json"
|
|
138
|
-
* - Relative paths like "src/constants.ts"
|
|
139
|
-
* - [Globbing patterns](https://github.com/mrmlnc/fast-glob#pattern-syntax)
|
|
140
|
-
*
|
|
141
|
-
* When empty, falls back to only updating "package.json".
|
|
142
|
-
* Respects: .gitignore patterns, hidden files, .git & node_modules.
|
|
143
|
-
*
|
|
144
|
-
* @default ["package.json", "reliverse.ts"]
|
|
145
|
-
*/
|
|
146
|
-
bumpFilter: string[];
|
|
147
|
-
/**
|
|
148
|
-
* Specifies how the version number should be incremented:
|
|
149
|
-
* - `patch`: Increments the patch version for backwards-compatible bug fixes (1.2.3 → 1.2.4)
|
|
150
|
-
* - `minor`: Increments the minor version for new backwards-compatible features (1.2.3 → 1.3.0)
|
|
151
|
-
* - `major`: Increments the major version for breaking changes (1.2.3 → 2.0.0)
|
|
152
|
-
* - `auto`: Automatically determine the appropriate bump type
|
|
153
|
-
* - `manual`: Set a specific version (requires bumpSet to be set)
|
|
154
|
-
*
|
|
155
|
-
* Please note: `dler` infers the version from the `package.json` file.
|
|
156
|
-
*
|
|
157
|
-
* @default "patch"
|
|
158
|
-
*/
|
|
159
|
-
bumpMode: BumpMode;
|
|
160
|
-
/**
|
|
161
|
-
* Custom version to set when bumpMode is "manual".
|
|
162
|
-
* Must be a valid semver version (e.g., "1.2.3").
|
|
163
|
-
*
|
|
164
|
-
* @default ""
|
|
165
|
-
*/
|
|
166
|
-
bumpSet: string;
|
|
167
|
-
// ==========================================================================
|
|
168
|
-
// Common configuration
|
|
169
|
-
// ==========================================================================
|
|
170
|
-
/**
|
|
171
|
-
* When `true`, stops after building and retains distribution folders.
|
|
172
|
-
* Useful for development or inspecting the build output.
|
|
173
|
-
*
|
|
174
|
-
* @default true
|
|
175
|
-
*/
|
|
176
|
-
commonPubPause: boolean;
|
|
177
|
-
/**
|
|
178
|
-
* Specifies which package registries to publish to:
|
|
179
|
-
* - `npm`: Publish only to the NPM commonPubRegistry.
|
|
180
|
-
* - `jsr`: Publish only to the JSR commonPubRegistry.
|
|
181
|
-
* - `npm-jsr`: Publish to both NPM and JSR registries.
|
|
182
|
-
*
|
|
183
|
-
* @default "npm"
|
|
184
|
-
*/
|
|
185
|
-
commonPubRegistry: "jsr" | "npm" | "npm-jsr";
|
|
186
|
-
/**
|
|
187
|
-
* When `true`, enables detailed logs during the build and publish process.
|
|
188
|
-
* Useful for debugging or understanding the build flow.
|
|
189
|
-
*
|
|
190
|
-
* @default false
|
|
191
|
-
*/
|
|
192
|
-
commonVerbose: boolean;
|
|
193
|
-
/**
|
|
194
|
-
* When `true`, displays detailed build and publish logs.
|
|
195
|
-
* When `false`, only shows spinner with status messages during build and publish.
|
|
196
|
-
*
|
|
197
|
-
* @default true
|
|
198
|
-
*/
|
|
199
|
-
displayBuildPubLogs: boolean;
|
|
200
|
-
// ==========================================================================
|
|
201
|
-
// Core configuration
|
|
202
|
-
// ==========================================================================
|
|
203
|
-
/**
|
|
204
|
-
* When `true`, generates TypeScript declaration files (.d.ts) for NPM packages.
|
|
205
|
-
* Essential for providing type intranspileFormation to TypeScript users.
|
|
206
|
-
*
|
|
207
|
-
* To reduce bundle size you can set this to `false` if your main project
|
|
208
|
-
* is planned to be used only as a global CLI tool (e.g. `bunx dler`).
|
|
209
|
-
*
|
|
210
|
-
* @default true
|
|
211
|
-
*/
|
|
212
|
-
coreDeclarations: boolean;
|
|
213
|
-
/**
|
|
214
|
-
* Path to the project's main entry file.
|
|
215
|
-
* Used as the entry point for the NPM package.
|
|
216
|
-
*
|
|
217
|
-
* @default "mod.ts"
|
|
218
|
-
*/
|
|
219
|
-
coreEntryFile: string;
|
|
220
|
-
/**
|
|
221
|
-
* Base directory containing the source entry files.
|
|
222
|
-
* All paths are resolved relative to this directory.
|
|
223
|
-
* Set to `"."` if entry files are in the project root.
|
|
224
|
-
*
|
|
225
|
-
* @default "src"
|
|
226
|
-
*/
|
|
227
|
-
coreEntrySrcDir: string;
|
|
228
|
-
/**
|
|
229
|
-
* Directory where built files will be placed within the distribution directory.
|
|
230
|
-
* For example, if set to "bin", CLI scripts will be placed in "dist-npm/bin" or "dist-jsr/bin".
|
|
231
|
-
*
|
|
232
|
-
* @default "bin"
|
|
233
|
-
*/
|
|
234
|
-
coreBuildOutDir: string;
|
|
235
|
-
/**
|
|
236
|
-
* Configuration for CLI functionality:
|
|
237
|
-
* - enabled: When `true`, indicates that the package has CLI capabilities
|
|
238
|
-
* - scripts: Map of CLI script names to their entry file paths
|
|
239
|
-
* The key will be used as the command name in package.json's bin field
|
|
240
|
-
* The value should be the path to the executable script (e.g. "cli.ts")
|
|
241
|
-
*
|
|
242
|
-
* **The source scripts should be in your "coreEntrySrcDir" directory (by default "src")**
|
|
243
|
-
*
|
|
244
|
-
* @example
|
|
245
|
-
* {
|
|
246
|
-
* enabled: true,
|
|
247
|
-
* scripts: {
|
|
248
|
-
* "mycli": "cli.ts",
|
|
249
|
-
* "othercmd": "other-cmd.ts"
|
|
250
|
-
* }
|
|
251
|
-
* }
|
|
252
|
-
*
|
|
253
|
-
* @default { enabled: false, scripts: {} }
|
|
254
|
-
*/
|
|
255
|
-
coreIsCLI: {
|
|
256
|
-
enabled: boolean;
|
|
257
|
-
scripts: Record<string, string>;
|
|
258
|
-
};
|
|
259
|
-
/**
|
|
260
|
-
* Optional description that overrides the description from package.json.
|
|
261
|
-
* When provided, this description will be used in the dist's package.json.
|
|
262
|
-
* If not provided, the description from the original package.json will be used.
|
|
263
|
-
*
|
|
264
|
-
* @default `package.json`'s "description"
|
|
265
|
-
*/
|
|
266
|
-
coreDescription: string;
|
|
267
|
-
// ==========================================================================
|
|
268
|
-
// JSR-only config
|
|
269
|
-
// ==========================================================================
|
|
270
|
-
/**
|
|
271
|
-
* When `true`, allows JSR publishing even with uncommitted changes.
|
|
272
|
-
* Use with caution, as it may lead to inconsistent published versions.
|
|
273
|
-
*
|
|
274
|
-
* It is `true` by default to make it easier for new `dler` users to publish their projects.
|
|
275
|
-
*
|
|
276
|
-
* @default true
|
|
277
|
-
*/
|
|
278
|
-
distJsrAllowDirty: boolean;
|
|
279
|
-
/**
|
|
280
|
-
* The bundler to use for creating JSR-compatible packages.
|
|
281
|
-
* JSR's native bundler is recommended for best compatibility.
|
|
282
|
-
*
|
|
283
|
-
* @default "jsr"
|
|
284
|
-
*/
|
|
285
|
-
distJsrBuilder: BundlerName;
|
|
286
|
-
/**
|
|
287
|
-
* Directory where JSR build artifacts are generated.
|
|
288
|
-
* This directory will contain the package ready for JSR publishing.
|
|
289
|
-
*
|
|
290
|
-
* @default "dist-jsr"
|
|
291
|
-
*/
|
|
292
|
-
distJsrDirName: string;
|
|
293
|
-
/**
|
|
294
|
-
* When `true`, simulates the publishing process without actually publishing.
|
|
295
|
-
* Useful for testing the build and publish pipeline without side effects.
|
|
296
|
-
*
|
|
297
|
-
* @default false
|
|
298
|
-
*/
|
|
299
|
-
distJsrDryRun: boolean;
|
|
300
|
-
/**
|
|
301
|
-
* When `true`, fails the build if warnings are detected.
|
|
302
|
-
* Use with caution, as it may lead to inconsistent published versions.
|
|
303
|
-
*
|
|
304
|
-
* @default false
|
|
305
|
-
*/
|
|
306
|
-
distJsrFailOnWarn: boolean;
|
|
307
|
-
/**
|
|
308
|
-
* When `true`, generates a `jsconfig.json` file for JSR's dist.
|
|
309
|
-
*
|
|
310
|
-
* @default false
|
|
311
|
-
*/
|
|
312
|
-
distJsrGenTsconfig: boolean;
|
|
313
|
-
/**
|
|
314
|
-
* The file extension for output files in JSR packages.
|
|
315
|
-
*
|
|
316
|
-
* @default "ts"
|
|
317
|
-
*/
|
|
318
|
-
distJsrOutFilesExt: NpmOutExt;
|
|
319
|
-
/**
|
|
320
|
-
* When `true`, enables JSR to process complex types, which may impact performance.
|
|
321
|
-
* Enable this only if you cannot simplify or explicitly define exported types.
|
|
322
|
-
*
|
|
323
|
-
* JSR requires exported functions, classes, variables, and type aliases to have
|
|
324
|
-
* explicitly written or easily inferred types. Otherwise, it may be unable to
|
|
325
|
-
* generate documentation, type declarations for npm compatibility, or efficient
|
|
326
|
-
* type checking for consumers.
|
|
327
|
-
*
|
|
328
|
-
* If "slow types" are present, type checking performance may degrade, and some
|
|
329
|
-
* features may not work as expected.
|
|
330
|
-
*
|
|
331
|
-
* It is `true` by default to make it easier for new `dler` users to publish their projects.
|
|
332
|
-
*
|
|
333
|
-
* @see https://jsr.io/docs/about-slow-types
|
|
334
|
-
* @default true
|
|
335
|
-
*/
|
|
336
|
-
distJsrSlowTypes: boolean;
|
|
337
|
-
// ==========================================================================
|
|
338
|
-
// NPM-only config
|
|
339
|
-
// ==========================================================================
|
|
340
|
-
/**
|
|
341
|
-
* The bundler to use for creating NPM-compatible packages.
|
|
342
|
-
*
|
|
343
|
-
* @default "mkdist"
|
|
344
|
-
*/
|
|
345
|
-
distNpmBuilder: BundlerName;
|
|
346
|
-
/**
|
|
347
|
-
* Directory where NPM build artifacts are generated.
|
|
348
|
-
* This directory will contain the package ready for NPM publishing.
|
|
349
|
-
*
|
|
350
|
-
* @default "dist-npm"
|
|
351
|
-
*/
|
|
352
|
-
distNpmDirName: string;
|
|
353
|
-
/**
|
|
354
|
-
* Specifies the file extension for output files in NPM packages.
|
|
355
|
-
* Determines the extension of compiled files in the NPM distribution.
|
|
356
|
-
* We strongly recommend using `"js"` with the `"esm"` transpileFormat.
|
|
357
|
-
*
|
|
358
|
-
* @default "js"
|
|
359
|
-
*/
|
|
360
|
-
distNpmOutFilesExt: NpmOutExt;
|
|
361
|
-
// ==========================================================================
|
|
362
|
-
// Binary Build Configuration
|
|
363
|
-
// ==========================================================================
|
|
364
|
-
/**
|
|
365
|
-
* When `true`, enables binary build functionality to create standalone executables.
|
|
366
|
-
*
|
|
367
|
-
* @default false
|
|
368
|
-
*/
|
|
369
|
-
binaryBuildEnabled: boolean;
|
|
370
|
-
/**
|
|
371
|
-
* Input TypeScript file to bundle for binary builds.
|
|
372
|
-
* If not specified, will use the coreEntryFile from the coreEntrySrcDir.
|
|
373
|
-
*
|
|
374
|
-
* @default undefined (uses coreEntryFile)
|
|
375
|
-
*/
|
|
376
|
-
binaryBuildInputFile?: string;
|
|
377
|
-
/**
|
|
378
|
-
* Comma-separated list of targets to build for binary builds.
|
|
379
|
-
* Use 'all' for all targets, 'list' to show available targets.
|
|
380
|
-
* Target format is {prefix}-{platform}-{arch} where prefix is extracted from input filename.
|
|
381
|
-
* Platforms: linux, windows, darwin (macOS)
|
|
382
|
-
* Architectures: x64, arm64
|
|
383
|
-
* Examples: dler-linux-x64, dler-windows-arm64, dler-darwin-x64
|
|
384
|
-
*
|
|
385
|
-
* @default "all"
|
|
386
|
-
*/
|
|
387
|
-
binaryBuildTargets: string;
|
|
388
|
-
/**
|
|
389
|
-
* Output directory for built binary executables.
|
|
390
|
-
*
|
|
391
|
-
* @default "dist"
|
|
392
|
-
*/
|
|
393
|
-
binaryBuildOutDir: string;
|
|
394
|
-
/**
|
|
395
|
-
* When `true`, minifies the binary output.
|
|
396
|
-
*
|
|
397
|
-
* @default true
|
|
398
|
-
*/
|
|
399
|
-
binaryBuildMinify: boolean;
|
|
400
|
-
/**
|
|
401
|
-
* When `true`, generates source maps for binary builds.
|
|
402
|
-
*
|
|
403
|
-
* @default true
|
|
404
|
-
*/
|
|
405
|
-
binaryBuildSourcemap: boolean;
|
|
406
|
-
/**
|
|
407
|
-
* When `true`, enables bytecode compilation for faster startup (Bun v1.1.30+).
|
|
408
|
-
*
|
|
409
|
-
* @default false
|
|
410
|
-
*/
|
|
411
|
-
binaryBuildBytecode: boolean;
|
|
412
|
-
/**
|
|
413
|
-
* When `true`, cleans output directory before building binaries.
|
|
414
|
-
*
|
|
415
|
-
* @default true
|
|
416
|
-
*/
|
|
417
|
-
binaryBuildClean: boolean;
|
|
418
|
-
/**
|
|
419
|
-
* Path to Windows .ico file for executable icon.
|
|
420
|
-
*
|
|
421
|
-
* @default undefined
|
|
422
|
-
*/
|
|
423
|
-
binaryBuildWindowsIcon?: string;
|
|
424
|
-
/**
|
|
425
|
-
* When `true`, hides console window on Windows.
|
|
426
|
-
*
|
|
427
|
-
* @default false
|
|
428
|
-
*/
|
|
429
|
-
binaryBuildWindowsHideConsole: boolean;
|
|
430
|
-
/**
|
|
431
|
-
* Asset naming pattern for binary builds.
|
|
432
|
-
*
|
|
433
|
-
* @default "[name]-[hash].[ext]"
|
|
434
|
-
*/
|
|
435
|
-
binaryBuildAssetNaming: string;
|
|
436
|
-
/**
|
|
437
|
-
* When `true`, builds binary targets in parallel.
|
|
438
|
-
*
|
|
439
|
-
* @default true
|
|
440
|
-
*/
|
|
441
|
-
binaryBuildParallel: boolean;
|
|
442
|
-
/**
|
|
443
|
-
* External dependencies to exclude from binary bundle.
|
|
444
|
-
*
|
|
445
|
-
* @default ["c12", "terminal-kit"]
|
|
446
|
-
*/
|
|
447
|
-
binaryBuildExternal: string[];
|
|
448
|
-
/**
|
|
449
|
-
* When `true`, creates a bundled script instead of standalone executable.
|
|
450
|
-
* Useful for debugging terminal issues.
|
|
451
|
-
*
|
|
452
|
-
* @default false
|
|
453
|
-
*/
|
|
454
|
-
binaryBuildNoCompile: boolean;
|
|
455
|
-
// ==========================================================================
|
|
456
|
-
// Libraries Dler Plugin
|
|
457
|
-
// ==========================================================================
|
|
458
|
-
/**
|
|
459
|
-
* !! EXPERIMENTAL !!
|
|
460
|
-
* Controls which parts of the project are built and published:
|
|
461
|
-
* - `main-project-only`: Builds/publishes only the main package.
|
|
462
|
-
* - `main-and-libs`: Builds/publishes both the main package and libraries.
|
|
463
|
-
* - `libs-only`: Builds/publishes only the libraries.
|
|
464
|
-
*
|
|
465
|
-
* @default "main-project-only"
|
|
466
|
-
*/
|
|
467
|
-
libsActMode: "libs-only" | "main-and-libs" | "main-project-only";
|
|
468
|
-
/**
|
|
469
|
-
* The directory where built libraries are stored before publishing.
|
|
470
|
-
*
|
|
471
|
-
* @default "dist-libs"
|
|
472
|
-
*/
|
|
473
|
-
libsDirDist: string;
|
|
474
|
-
/**
|
|
475
|
-
* The directory containing library source files.
|
|
476
|
-
*
|
|
477
|
-
* @default "src/libs"
|
|
478
|
-
*/
|
|
479
|
-
libsDirSrc: string;
|
|
480
|
-
/**
|
|
481
|
-
* !! EXPERIMENTAL !!
|
|
482
|
-
* Configuration for building and publishing multiple libraries.
|
|
483
|
-
* Each key represents a package name, and its value contains the configuration.
|
|
484
|
-
*
|
|
485
|
-
* @example
|
|
486
|
-
* {
|
|
487
|
-
* "@myorg/ml1": { main: "my-lib-1/mod.ts" },
|
|
488
|
-
* "@myorg/ml2": { main: "my-lib-2/ml2-mod.ts" },
|
|
489
|
-
* "@myorg/ml3": { main: "src/libs/my-lib-3/index.js" }
|
|
490
|
-
* }
|
|
491
|
-
*/
|
|
492
|
-
libsList: Record<string, LibConfig>;
|
|
493
|
-
// ==========================================================================
|
|
494
|
-
// Logger setup
|
|
495
|
-
// ==========================================================================
|
|
496
|
-
/**
|
|
497
|
-
* The name of the log file. dler uses `@reliverse/relinka` for logging.
|
|
498
|
-
*
|
|
499
|
-
* @default ".logs/relinka.log"
|
|
500
|
-
*/
|
|
501
|
-
logsFileName: string;
|
|
502
|
-
/**
|
|
503
|
-
* When `true`, cleans up the log file from previous runs.
|
|
504
|
-
*
|
|
505
|
-
* @default false
|
|
506
|
-
*/
|
|
507
|
-
logsFreshFile: boolean;
|
|
508
|
-
// ==========================================================================
|
|
509
|
-
// Dependency filtering
|
|
510
|
-
// ==========================================================================
|
|
511
|
-
/**
|
|
512
|
-
* Configuration for dependency removal/injection patterns.
|
|
513
|
-
* Controls which dependencies are excluded from (or injected into) the final package.
|
|
514
|
-
*
|
|
515
|
-
* Pattern types:
|
|
516
|
-
* - Regular patterns: Exclude deps that match the pattern
|
|
517
|
-
* - Negation patterns (starting with !): Don't exclude deps that match the pattern
|
|
518
|
-
* - Add patterns (starting with +): Inject deps into specific dists even if original package.json doesn't have them
|
|
519
|
-
*
|
|
520
|
-
* Structure (dist-specific patterns are merged with global):
|
|
521
|
-
* - `global`: Patterns that are always applied to all builds
|
|
522
|
-
* - `dist-npm`: NPM-specific patterns
|
|
523
|
-
* - `dist-jsr`: JSR-specific patterns
|
|
524
|
-
* - `dist-libs`: Library-specific patterns
|
|
525
|
-
* Each library can have separate NPM and JSR patterns
|
|
526
|
-
*
|
|
527
|
-
* @example
|
|
528
|
-
* {
|
|
529
|
-
* global: ["@types", "eslint"],
|
|
530
|
-
* "dist-npm": ["npm-specific"],
|
|
531
|
-
* "dist-jsr": ["+bun"], // Explicitly include 'bun' in JSR builds
|
|
532
|
-
* "dist-libs": {
|
|
533
|
-
* "@myorg/lib1": {
|
|
534
|
-
* npm: ["lib1-npm-specific"],
|
|
535
|
-
* jsr: ["+bun"] // Explicitly include 'bun' in this lib's JSR build
|
|
536
|
-
* }
|
|
537
|
-
* }
|
|
538
|
-
* }
|
|
539
|
-
*/
|
|
540
|
-
filterDepsPatterns: {
|
|
541
|
-
global: string[];
|
|
542
|
-
"dist-npm": string[];
|
|
543
|
-
"dist-jsr": string[];
|
|
544
|
-
"dist-libs": Record<
|
|
545
|
-
string,
|
|
546
|
-
{
|
|
547
|
-
npm: string[];
|
|
548
|
-
jsr: string[];
|
|
549
|
-
}
|
|
550
|
-
>;
|
|
551
|
-
};
|
|
552
|
-
// ==========================================================================
|
|
553
|
-
// Code quality tools
|
|
554
|
-
// ==========================================================================
|
|
555
|
-
/**
|
|
556
|
-
* List of tools to run before the build process starts.
|
|
557
|
-
* Available options: "tsc", "eslint", "biome", "knip", "dler-check"
|
|
558
|
-
* Each tool will only run if it's installed in the system.
|
|
559
|
-
*
|
|
560
|
-
* @default []
|
|
561
|
-
*/
|
|
562
|
-
runBeforeBuild: ("tsc" | "eslint" | "biome" | "knip" | "dler-check")[];
|
|
563
|
-
/**
|
|
564
|
-
* List of tools to run after the build process completes.
|
|
565
|
-
* Available options: "dler-check"
|
|
566
|
-
* Each tool will only run if it's installed in the system.
|
|
567
|
-
*
|
|
568
|
-
* @default []
|
|
569
|
-
*/
|
|
570
|
-
runAfterBuild: "dler-check"[];
|
|
571
|
-
// ==========================================================================
|
|
572
|
-
// Build hooks
|
|
573
|
-
// ==========================================================================
|
|
574
|
-
/**
|
|
575
|
-
* Array of functions to be executed before the build process starts.
|
|
576
|
-
* These hooks will be called in sequence before any build steps.
|
|
577
|
-
*
|
|
578
|
-
* If you are a dler plugin developer, tell your users to
|
|
579
|
-
* call your plugin's `beforeBuild`-related function here.
|
|
580
|
-
*
|
|
581
|
-
* @example
|
|
582
|
-
* hooksBeforeBuild: [
|
|
583
|
-
* async () => {
|
|
584
|
-
* // Custom pre-build logic
|
|
585
|
-
* await someAsyncOperation();
|
|
586
|
-
*
|
|
587
|
-
* // dler-plugin-my-plugin-name
|
|
588
|
-
* await myPluginName_beforeBuild();
|
|
589
|
-
* }
|
|
590
|
-
* ]
|
|
591
|
-
*
|
|
592
|
-
* @default []
|
|
593
|
-
*/
|
|
594
|
-
hooksBeforeBuild: (() => Promise<void>)[];
|
|
595
|
-
/**
|
|
596
|
-
* Array of functions to be executed after the build process completes.
|
|
597
|
-
* These hooks will be called in sequence after all build steps.
|
|
598
|
-
*
|
|
599
|
-
* If you are a dler plugin developer, tell your users to
|
|
600
|
-
* call your plugin's `afterBuild`-related function here.
|
|
601
|
-
*
|
|
602
|
-
* @example
|
|
603
|
-
* hooksAfterBuild: [
|
|
604
|
-
* async () => {
|
|
605
|
-
* // Custom post-build logic
|
|
606
|
-
* await someAsyncOperation();
|
|
607
|
-
*
|
|
608
|
-
* // dler-plugin-my-plugin-name
|
|
609
|
-
* await myPluginName_afterBuild();
|
|
610
|
-
* }
|
|
611
|
-
* ]
|
|
612
|
-
*
|
|
613
|
-
* @default []
|
|
614
|
-
*/
|
|
615
|
-
hooksAfterBuild: (() => Promise<void>)[];
|
|
616
|
-
/**
|
|
617
|
-
* When `true`, cleans up the temporary directories after the build process completes.
|
|
618
|
-
*
|
|
619
|
-
* @default true
|
|
620
|
-
*/
|
|
621
|
-
postBuildSettings: {
|
|
622
|
-
deleteDistTmpAfterBuild: boolean;
|
|
623
|
-
};
|
|
624
|
-
// ==========================================================================
|
|
625
|
-
// Build setup
|
|
626
|
-
// ==========================================================================
|
|
627
|
-
/**
|
|
628
|
-
* When `true`, fails the build if warnings are detected.
|
|
629
|
-
* Use with caution, as it may lead to inconsistent published versions.
|
|
630
|
-
*
|
|
631
|
-
* @default false
|
|
632
|
-
*/
|
|
633
|
-
transpileFailOnWarn: boolean;
|
|
634
|
-
/**
|
|
635
|
-
* The transpileTarget runtime environment for the built package.
|
|
636
|
-
*
|
|
637
|
-
* @default "es2023"
|
|
638
|
-
*/
|
|
639
|
-
transpileEsbuild: Esbuild;
|
|
640
|
-
/**
|
|
641
|
-
* Output module transpileFormat for built files:
|
|
642
|
-
* - `esm`: ECMAScript modules (import/export)
|
|
643
|
-
* - `cjs`: CommonJS modules (require/exports)
|
|
644
|
-
* - `iife`: Immediately Invoked Function Expression (for browsers)
|
|
645
|
-
*
|
|
646
|
-
* @default "esm"
|
|
647
|
-
*/
|
|
648
|
-
transpileFormat: transpileFormat;
|
|
649
|
-
/**
|
|
650
|
-
* When `true`, minifies the output to reduce bundle size.
|
|
651
|
-
* Recommended for production builds but may increase build time.
|
|
652
|
-
*
|
|
653
|
-
* @default true
|
|
654
|
-
*/
|
|
655
|
-
transpileMinify: boolean;
|
|
656
|
-
/**
|
|
657
|
-
* The base URL for loading assets in the built package.
|
|
658
|
-
* Important for packages that include assets like images or fonts.
|
|
659
|
-
*
|
|
660
|
-
* @default "/"
|
|
661
|
-
*/
|
|
662
|
-
transpilePublicPath: string;
|
|
663
|
-
/**
|
|
664
|
-
* Controls source map generation for debugging (experimental):
|
|
665
|
-
* - `true/false`: Enable/disable source maps.
|
|
666
|
-
* - `"inline"`: Include source maps within output files.
|
|
667
|
-
* - `"none"`: Do not generate source maps.
|
|
668
|
-
* - `"linked"`: Generate separate source map files with links.
|
|
669
|
-
* - `"external"`: Generate separate source map files.
|
|
670
|
-
*
|
|
671
|
-
* @default false
|
|
672
|
-
*/
|
|
673
|
-
transpileSourcemap: Sourcemap;
|
|
674
|
-
/**
|
|
675
|
-
* When `true`, enables code transpileSplitting for improved load-time performance.
|
|
676
|
-
* Useful for large applications but may not be needed for small projects.
|
|
677
|
-
*
|
|
678
|
-
* @default false
|
|
679
|
-
*/
|
|
680
|
-
transpileSplitting: boolean;
|
|
681
|
-
/**
|
|
682
|
-
* Stub the package for JIT compilation.
|
|
683
|
-
*
|
|
684
|
-
* @default false
|
|
685
|
-
*/
|
|
686
|
-
transpileStub: boolean;
|
|
687
|
-
/**
|
|
688
|
-
* Defines the transpileTarget runtime environment:
|
|
689
|
-
* - `node`: Optimized for Node.js.
|
|
690
|
-
* - `bun`: Optimized for Bun.
|
|
691
|
-
* - `browser`: Optimized for web browsers.
|
|
692
|
-
*
|
|
693
|
-
* @default "node"
|
|
694
|
-
*/
|
|
695
|
-
transpileTarget: TranspileTarget;
|
|
696
|
-
/**
|
|
697
|
-
* Watch the src dir and rebuild on change (experimental).
|
|
698
|
-
*
|
|
699
|
-
* @default false
|
|
700
|
-
*/
|
|
701
|
-
transpileWatch: boolean;
|
|
702
|
-
/**
|
|
703
|
-
* Specifies what resources to send to npm and jsr registries.
|
|
704
|
-
* coreBuildOutDir (e.g. "bin") dir is automatically included.
|
|
705
|
-
* The following is also included if publishArtifacts is {}:
|
|
706
|
-
* - global: ["package.json", "README.md", "LICENSE"]
|
|
707
|
-
* - dist-jsr,dist-libs/jsr: ["jsr.json"]
|
|
708
|
-
*
|
|
709
|
-
* Structure:
|
|
710
|
-
* - `global`: Files to include in all distributions
|
|
711
|
-
* - `dist-jsr`: Files specific to JSR distribution
|
|
712
|
-
* - `dist-npm`: Files specific to NPM distribution
|
|
713
|
-
* - `dist-libs`: Library-specific files for each distribution type
|
|
714
|
-
*
|
|
715
|
-
* Useful for including additional files like configuration or documentation.
|
|
716
|
-
* Pro tip: set jsr.jsonc to generate jsr.jsonc instead of jsr.json config.
|
|
717
|
-
*
|
|
718
|
-
* @default
|
|
719
|
-
* {
|
|
720
|
-
* global: ["bin", "package.json", "README.md", "LICENSE"],
|
|
721
|
-
* "dist-jsr": ["jsr.json"],
|
|
722
|
-
* "dist-npm": [],
|
|
723
|
-
* "dist-libs": {
|
|
724
|
-
* "@myorg/lib1": {
|
|
725
|
-
* jsr: ["jsr.json"],
|
|
726
|
-
* npm: []
|
|
727
|
-
* }
|
|
728
|
-
* }
|
|
729
|
-
* }
|
|
730
|
-
*/
|
|
731
|
-
publishArtifacts?: {
|
|
732
|
-
global: string[];
|
|
733
|
-
"dist-jsr": string[];
|
|
734
|
-
"dist-npm": string[];
|
|
735
|
-
"dist-libs": Record<
|
|
736
|
-
string,
|
|
737
|
-
{
|
|
738
|
-
jsr: string[];
|
|
739
|
-
npm: string[];
|
|
740
|
-
}
|
|
741
|
-
>;
|
|
742
|
-
};
|
|
743
|
-
// Files with these extensions will be built
|
|
744
|
-
// Any other files will be copied as-is to dist
|
|
745
|
-
/**
|
|
746
|
-
* File extensions that should be copied to temporary build directories during pre-build.
|
|
747
|
-
* These files will be processed by the bundlers.
|
|
748
|
-
* All other files will be copied as-is to final dist directories during post-build.
|
|
749
|
-
* @default ["ts", "js"]
|
|
750
|
-
*/
|
|
751
|
-
buildPreExtensions: string[];
|
|
752
|
-
// If you need to exclude some ts/js files from being built,
|
|
753
|
-
// you can store them in the dirs with buildTemplatesDir name
|
|
754
|
-
/**
|
|
755
|
-
* Directory name for templates that should be excluded from pre-build processing.
|
|
756
|
-
* Files in this directory will be copied as-is during post-build.
|
|
757
|
-
* @default "templates"
|
|
758
|
-
*/
|
|
759
|
-
buildTemplatesDir: string;
|
|
760
|
-
// ==========================================================================
|
|
761
|
-
// Relinka Logger Configuration
|
|
762
|
-
// ==========================================================================
|
|
763
|
-
/**
|
|
764
|
-
* Integrated relinka logger configuration.
|
|
765
|
-
* @see https://github.com/reliverse/relinka
|
|
766
|
-
*
|
|
767
|
-
* @default See DEFAULT_RELINKA_CONFIG in defaults
|
|
768
|
-
*/
|
|
769
|
-
relinka: {
|
|
770
|
-
/**
|
|
771
|
-
* Configuration options for the Relinka logger.
|
|
772
|
-
* All properties are optional to allow for partial configuration.
|
|
773
|
-
* Defaults will be applied during initialization.
|
|
774
|
-
*/
|
|
775
|
-
/**
|
|
776
|
-
* Enables verbose (aka debug) mode for detailed logging.
|
|
777
|
-
*
|
|
778
|
-
* `true` here works only for end-users of CLIs/libs when theirs developers
|
|
779
|
-
* has been awaited for user's config via `@reliverse/relinka`'s `await relinkaConfig;`
|
|
780
|
-
*/
|
|
781
|
-
verbose?: boolean;
|
|
782
|
-
/**
|
|
783
|
-
* Configuration for directory-related settings.
|
|
784
|
-
* - `maxLogFiles`: The maximum number of log files to keep before cleanup.
|
|
785
|
-
*/
|
|
786
|
-
dirs?: RelinkaDirsConfig;
|
|
787
|
-
/**
|
|
788
|
-
* Disables color output in the console.
|
|
789
|
-
*/
|
|
790
|
-
disableColors?: boolean;
|
|
791
|
-
/**
|
|
792
|
-
* Configuration for log file output.
|
|
793
|
-
*/
|
|
794
|
-
logFile?: {
|
|
795
|
-
/**
|
|
796
|
-
* Path to the log file.
|
|
797
|
-
*/
|
|
798
|
-
outputPath?: string;
|
|
799
|
-
/**
|
|
800
|
-
* How to handle date in the filename.
|
|
801
|
-
* - `disable`: No date prefix/suffix
|
|
802
|
-
* - `append-before`: Add date before the filename (e.g., "2024-01-15-log.txt")
|
|
803
|
-
* - `append-after`: Add date after the filename (e.g., "log-2024-01-15.txt")
|
|
804
|
-
*/
|
|
805
|
-
nameWithDate?: "disable" | "append-before" | "append-after";
|
|
806
|
-
/**
|
|
807
|
-
* If true, clears the log file when relinkaConfig is executed with supportFreshLogFile: true.
|
|
808
|
-
* This is useful for starting with a clean log file on each run.
|
|
809
|
-
*/
|
|
810
|
-
freshLogFile?: boolean;
|
|
811
|
-
};
|
|
812
|
-
/**
|
|
813
|
-
* If true, logs will be saved to a file.
|
|
814
|
-
*/
|
|
815
|
-
saveLogsToFile?: boolean;
|
|
816
|
-
/**
|
|
817
|
-
* Configuration for timestamp in log messages.
|
|
818
|
-
*/
|
|
819
|
-
timestamp?: {
|
|
820
|
-
/**
|
|
821
|
-
* If true, timestamps will be added to log messages.
|
|
822
|
-
*/
|
|
823
|
-
enabled: boolean;
|
|
824
|
-
/**
|
|
825
|
-
* The format for timestamps. Default is YYYY-MM-DD HH:mm:ss.SSS
|
|
826
|
-
*/
|
|
827
|
-
format?: string;
|
|
828
|
-
};
|
|
829
|
-
/**
|
|
830
|
-
* Allows to customize the log levels.
|
|
831
|
-
*/
|
|
832
|
-
levels?: LogLevelsConfig;
|
|
833
|
-
/**
|
|
834
|
-
* Controls how often the log cleanup runs (in milliseconds)
|
|
835
|
-
* Default: 10000 (10 seconds)
|
|
836
|
-
*/
|
|
837
|
-
cleanupInterval?: number;
|
|
838
|
-
/**
|
|
839
|
-
* Maximum size of the log write buffer before flushing to disk (in bytes)
|
|
840
|
-
* Default: 4096 (4KB)
|
|
841
|
-
*/
|
|
842
|
-
bufferSize?: number;
|
|
843
|
-
/**
|
|
844
|
-
* Maximum time to hold logs in buffer before flushing to disk (in milliseconds)
|
|
845
|
-
* Default: 5000 (5 seconds)
|
|
846
|
-
*/
|
|
847
|
-
maxBufferAge?: number;
|
|
848
|
-
};
|
|
849
|
-
// ==========================================================================
|
|
850
|
-
// Remdn Configuration
|
|
851
|
-
// ==========================================================================
|
|
852
|
-
/**
|
|
853
|
-
* Configuration for the remdn command which generates directory comparison documentation.
|
|
854
|
-
* Controls how files are compared and documented across different distribution directories.
|
|
855
|
-
*/
|
|
856
|
-
remdn?: {
|
|
857
|
-
/**
|
|
858
|
-
* Title for the generated documentation.
|
|
859
|
-
* @default "Directory Comparison"
|
|
860
|
-
*/
|
|
861
|
-
title?: string;
|
|
862
|
-
/**
|
|
863
|
-
* Output path for the generated HTML file.
|
|
864
|
-
* @default "docs/files.html"
|
|
865
|
-
*/
|
|
866
|
-
output?: string;
|
|
867
|
-
/**
|
|
868
|
-
* Configuration for directories to compare.
|
|
869
|
-
* Each key represents a directory path, and its value contains directory-specific settings.
|
|
870
|
-
*/
|
|
871
|
-
dirs?: Record<string, Record<string, never>>;
|
|
872
|
-
/**
|
|
873
|
-
* Extension mapping for file comparison.
|
|
874
|
-
* Maps source file extensions to their corresponding extensions in different distribution directories.
|
|
875
|
-
* Format: [<main>, <dist-npm/bin | dist-libs's * npm/bin>, <dist-jsr | dist-libs's * jsr/bin>]
|
|
876
|
-
*/
|
|
877
|
-
"ext-map"?: Record<string, string[]>;
|
|
878
|
-
};
|
|
879
|
-
}
|
|
880
|
-
/** Configuration for directory-related settings. */
|
|
881
|
-
export interface RelinkaDirsConfig {
|
|
882
|
-
maxLogFiles?: number;
|
|
883
|
-
}
|
|
884
|
-
/** Log level types used by the logger. */
|
|
885
|
-
export type LogLevel =
|
|
886
|
-
| "error"
|
|
887
|
-
| "fatal"
|
|
888
|
-
| "info"
|
|
889
|
-
| "success"
|
|
890
|
-
| "verbose"
|
|
891
|
-
| "warn"
|
|
892
|
-
| "log"
|
|
893
|
-
| "internal"
|
|
894
|
-
| "null"
|
|
895
|
-
| "step"
|
|
896
|
-
| "box"
|
|
897
|
-
| "message";
|
|
898
|
-
/** Configuration for a single log level. */
|
|
899
|
-
export interface LogLevelConfig {
|
|
900
|
-
/**
|
|
901
|
-
* Symbol to display for this log level.
|
|
902
|
-
* @see https://symbl.cc
|
|
903
|
-
*/
|
|
904
|
-
symbol: string;
|
|
905
|
-
/**
|
|
906
|
-
* Fallback symbol to use if Unicode is not supported.
|
|
907
|
-
*/
|
|
908
|
-
fallbackSymbol: string;
|
|
909
|
-
/**
|
|
910
|
-
* Color to use for this log level.
|
|
911
|
-
*/
|
|
912
|
-
color: string;
|
|
913
|
-
/**
|
|
914
|
-
* Number of spaces after the symbol/fallback
|
|
915
|
-
*/
|
|
916
|
-
spacing?: number;
|
|
917
|
-
}
|
|
918
|
-
/** Configuration for all log levels. */
|
|
919
|
-
export type LogLevelsConfig = Partial<Record<LogLevel, LogLevelConfig>>;
|
|
920
|
-
export type BumpMode = "patch" | "minor" | "major" | "auto" | "manual";
|
|
921
|
-
/**
|
|
922
|
-
* Supported bundler names for building packages:
|
|
923
|
-
* - bun: Bun's built-in bundler for fast builds
|
|
924
|
-
* - copy: A simple file copy without bundling
|
|
925
|
-
* - jsr: Similar to copy but optimized for the JSR commonPubRegistry
|
|
926
|
-
* - mkdist: A lightweight bundler focused on TypeScript/ESM
|
|
927
|
-
* - rollup: A traditional bundler with an extensive plugin ecosystem
|
|
928
|
-
* - untyped: Types and markdown generation from a config object
|
|
929
|
-
*/
|
|
930
|
-
export type BundlerName = "bun" | "copy" | "jsr" | "mkdist" | "rollup" | "untyped";
|
|
931
|
-
export type NpmOutExt = "cjs" | "cts" | "js" | "mjs" | "mts" | "ts";
|
|
932
|
-
/**
|
|
933
|
-
* Configuration for a library to be built and published as a separate package.
|
|
934
|
-
* Used when publishing multiple packages from a single repository.
|
|
935
|
-
*/
|
|
936
|
-
export interface LibConfig {
|
|
937
|
-
/**
|
|
938
|
-
* When `true`, generates TypeScript declaration files (.d.ts) for NPM packages.
|
|
939
|
-
*/
|
|
940
|
-
libDeclarations: boolean;
|
|
941
|
-
/**
|
|
942
|
-
* An optional description of the library, included in the dist's package.json.
|
|
943
|
-
* Provides users with an overview of the library's purpose.
|
|
944
|
-
*
|
|
945
|
-
* @example "Utility functions for data manipulation"
|
|
946
|
-
* @example "Core configuration module for the framework"
|
|
947
|
-
*
|
|
948
|
-
* @default `package.json`'s "description"
|
|
949
|
-
*/
|
|
950
|
-
libDescription: string;
|
|
951
|
-
/**
|
|
952
|
-
* The directory where the library's dist files are stored.
|
|
953
|
-
*
|
|
954
|
-
* @default name is derived from the library's name after slash
|
|
955
|
-
*/
|
|
956
|
-
libDirName: string;
|
|
957
|
-
/**
|
|
958
|
-
* The path to the library's main entry file.
|
|
959
|
-
* This file serves as the primary entry point for imports.
|
|
960
|
-
* The path should be relative to the project root.
|
|
961
|
-
* The full path to the library's main file is derived by joining `libsDirDist` with `main`.
|
|
962
|
-
*
|
|
963
|
-
* @example "my-lib-1/mod.ts"
|
|
964
|
-
* @example "my-lib-2/ml2-mod.ts"
|
|
965
|
-
* @example "src/libs/my-lib-3/index.js"
|
|
966
|
-
*/
|
|
967
|
-
libMainFile: string;
|
|
968
|
-
/**
|
|
969
|
-
* Dependencies to include in the dist's package.json.
|
|
970
|
-
* The final output may vary based on `filterDepsPatterns`.
|
|
971
|
-
* Defines how dependencies are handled during publishing:
|
|
972
|
-
* - `string[]`: Includes only the specified dependencies.
|
|
973
|
-
* - `true`: Includes all dependencies from the main package.json.
|
|
974
|
-
* - `false` or `undefined`: Automatically determines dependencies based on imports.
|
|
975
|
-
*
|
|
976
|
-
* @example ["@reliverse/pathkit", "@reliverse/relifso"] - Only will include these specific dependencies.
|
|
977
|
-
* @example true - Include all `dependencies` from the main package.json.
|
|
978
|
-
*/
|
|
979
|
-
libPkgKeepDeps: boolean | string[];
|
|
980
|
-
/**
|
|
981
|
-
* When `true`, minifies the output to reduce bundle size.
|
|
982
|
-
* Recommended for production builds but may increase build time.
|
|
983
|
-
*
|
|
984
|
-
* @default true
|
|
985
|
-
*/
|
|
986
|
-
libTranspileMinify: boolean;
|
|
987
|
-
/**
|
|
988
|
-
* When true, pauses publishing for this specific library (overridden by commonPubPause).
|
|
989
|
-
* If true, this library will be built but not published, even if other libs are published.
|
|
990
|
-
*
|
|
991
|
-
* @default false
|
|
992
|
-
*/
|
|
993
|
-
libPubPause?: boolean;
|
|
994
|
-
/**
|
|
995
|
-
* The registry to publish the library to.
|
|
996
|
-
*
|
|
997
|
-
* @default "npm"
|
|
998
|
-
*/
|
|
999
|
-
libPubRegistry?: "jsr" | "npm" | "npm-jsr";
|
|
1000
|
-
/**
|
|
1001
|
-
* Optional version override for the library.
|
|
1002
|
-
* If not provided, falls back to the version from the main package.json.
|
|
1003
|
-
*
|
|
1004
|
-
* @default `package.json`'s "version"
|
|
1005
|
-
*/
|
|
1006
|
-
version?: string;
|
|
1007
|
-
}
|
|
1008
|
-
export type Esbuild = "es2019" | "es2020" | "es2021" | "es2022" | "es2023";
|
|
1009
|
-
/**
|
|
1010
|
-
* Supported output module transpileFormats for built packages.
|
|
1011
|
-
* - esm: ECMAScript modules (import/export)
|
|
1012
|
-
* - cjs: CommonJS modules (require/exports)
|
|
1013
|
-
* - iife: Immediately Invoked Function Expression (for browsers)
|
|
1014
|
-
*/
|
|
1015
|
-
export type transpileFormat = "cjs" | "esm" | "iife";
|
|
1016
|
-
/**
|
|
1017
|
-
* Supported source map options for built packages.
|
|
1018
|
-
* - boolean: Enable/disable source maps.
|
|
1019
|
-
* - "inline": Include source maps within output files.
|
|
1020
|
-
* - "none": Do not generate source maps.
|
|
1021
|
-
* - "linked": Generate separate source map files with links.
|
|
1022
|
-
* - "external": Generate separate source map files.
|
|
1023
|
-
*/
|
|
1024
|
-
export type Sourcemap = "external" | "inline" | "linked" | "none" | boolean;
|
|
1025
|
-
/**
|
|
1026
|
-
* Supported transpileTarget runtime environments for built packages.
|
|
1027
|
-
* - node: Optimized for Node.js.
|
|
1028
|
-
* - bun: Optimized for Bun.
|
|
1029
|
-
* - browser: Optimized for web browsers.
|
|
1030
|
-
*/
|
|
1031
|
-
export type TranspileTarget = "browser" | "bun" | "node";
|
|
1032
|
-
export type UnknownLiteral = "unknown";
|
|
1033
|
-
export type ProjectState = "creating" | "created";
|
|
1034
|
-
export type ProjectCategory =
|
|
1035
|
-
| UnknownLiteral
|
|
1036
|
-
| "website"
|
|
1037
|
-
| "vscode"
|
|
1038
|
-
| "browser"
|
|
1039
|
-
| "cli"
|
|
1040
|
-
| "library"
|
|
1041
|
-
| "mobile";
|
|
1042
|
-
export type ProjectSubcategory = UnknownLiteral | "e-commerce" | "tool";
|
|
1043
|
-
export type ProjectFramework =
|
|
1044
|
-
| UnknownLiteral
|
|
1045
|
-
| "nextjs"
|
|
1046
|
-
| "vite"
|
|
1047
|
-
| "svelte"
|
|
1048
|
-
| "remix"
|
|
1049
|
-
| "astro"
|
|
1050
|
-
| "nuxt"
|
|
1051
|
-
| "solid"
|
|
1052
|
-
| "qwik"
|
|
1053
|
-
| "vue"
|
|
1054
|
-
| "wxt"
|
|
1055
|
-
| "lynx"
|
|
1056
|
-
| "react-native"
|
|
1057
|
-
| "expo"
|
|
1058
|
-
| "capacitor"
|
|
1059
|
-
| "ionic"
|
|
1060
|
-
| "electron"
|
|
1061
|
-
| "tauri"
|
|
1062
|
-
| "neutralino"
|
|
1063
|
-
| "rempts"
|
|
1064
|
-
| "citty"
|
|
1065
|
-
| "commander"
|
|
1066
|
-
| "cac"
|
|
1067
|
-
| "meow"
|
|
1068
|
-
| "yargs"
|
|
1069
|
-
| "vscode"
|
|
1070
|
-
| "webextension"
|
|
1071
|
-
| "browser-extension"
|
|
1072
|
-
| "npm-jsr";
|
|
1073
|
-
export type ProjectTemplate =
|
|
1074
|
-
| UnknownLiteral
|
|
1075
|
-
| "blefnk/relivator-nextjs-template"
|
|
1076
|
-
| "blefnk/relivator-docker-template"
|
|
1077
|
-
| "blefnk/next-react-ts-src-minimal"
|
|
1078
|
-
| "blefnk/all-in-one-nextjs-template"
|
|
1079
|
-
| "blefnk/create-t3-app"
|
|
1080
|
-
| "blefnk/create-next-app"
|
|
1081
|
-
| "blefnk/astro-starlight-template"
|
|
1082
|
-
| "blefnk/versator-nextjs-template"
|
|
1083
|
-
| "blefnk/relivator-lynxjs-template"
|
|
1084
|
-
| "blefnk/relivator-react-native-template"
|
|
1085
|
-
| "reliverse/template-browser-extension"
|
|
1086
|
-
| "microsoft/vscode-extension-samples"
|
|
1087
|
-
| "microsoft/vscode-extension-template"
|
|
1088
|
-
| "rsetarter-template"
|
|
1089
|
-
| "blefnk/deno-cli-tutorial";
|
|
1090
|
-
export type RepoPrivacy = UnknownLiteral | "public" | "private";
|
|
1091
|
-
export type ProjectArchitecture = UnknownLiteral | "fullstack" | "separated";
|
|
1092
|
-
export type ProjectRuntime = "node" | "deno" | "bun";
|
|
1093
|
-
export type ProjectPackageManager = "npm" | "pnpm" | "yarn" | "bun";
|
|
1094
|
-
export type ProjectGitService = "github" | "gitlab" | "bitbucket" | "none";
|
|
1095
|
-
export type ProjectDeployService = "vercel" | "netlify" | "railway" | "deno" | "none";
|
|
1096
|
-
export type ThemeMode = "light" | "dark" | "dark-light";
|
|
1097
|
-
export type PreferredStateManagement = "zustand" | "jotai" | "redux-toolkit" | UnknownLiteral;
|
|
1098
|
-
export type PreferredForm = "react-hook-form" | "formik" | UnknownLiteral;
|
|
1099
|
-
export type PreferredStyling =
|
|
1100
|
-
| "tailwind"
|
|
1101
|
-
| "styled-components"
|
|
1102
|
-
| "css-modules"
|
|
1103
|
-
| "sass"
|
|
1104
|
-
| UnknownLiteral;
|
|
1105
|
-
export type PreferredUI = "shadcn-ui" | "chakra-ui" | "material-ui" | UnknownLiteral;
|
|
1106
|
-
export type PreferredTesting =
|
|
1107
|
-
| "bun"
|
|
1108
|
-
| "vitest"
|
|
1109
|
-
| "jest"
|
|
1110
|
-
| "playwright"
|
|
1111
|
-
| "cypress"
|
|
1112
|
-
| UnknownLiteral;
|
|
1113
|
-
export type PreferredAuth =
|
|
1114
|
-
| "better-auth"
|
|
1115
|
-
| "clerk"
|
|
1116
|
-
| "next-auth"
|
|
1117
|
-
| "supabase-auth"
|
|
1118
|
-
| "auth0"
|
|
1119
|
-
| UnknownLiteral;
|
|
1120
|
-
export type PreferredDBLib = "drizzle" | "prisma" | "supabase" | UnknownLiteral;
|
|
1121
|
-
export type PreferredDBProvider = "pg" | "mysql" | "sqlite" | "mongodb" | UnknownLiteral;
|
|
1122
|
-
export type PreferredAPI = "hono" | "trpc" | "graphql" | "rest" | UnknownLiteral;
|
|
1123
|
-
export type PreferredLint = "eslint" | UnknownLiteral;
|
|
1124
|
-
export type PreferredFormat = "biome" | UnknownLiteral;
|
|
1125
|
-
export type PreferredPayment = "stripe" | UnknownLiteral;
|
|
1126
|
-
export type PreferredAnalytics = "vercel" | UnknownLiteral;
|
|
1127
|
-
export type PreferredMonitoring = "sentry" | UnknownLiteral;
|
|
1128
|
-
export type PreferredLogging = "axiom" | UnknownLiteral;
|
|
1129
|
-
export type PreferredForms = "react-hook-form" | UnknownLiteral;
|
|
1130
|
-
export type PreferredNotifications = "sonner" | UnknownLiteral;
|
|
1131
|
-
export type PreferredSearch = "algolia" | UnknownLiteral;
|
|
1132
|
-
export type PreferredUploads = "uploadthing" | UnknownLiteral;
|
|
1133
|
-
export type PreferredValidation = "zod" | "typebox" | "valibot" | UnknownLiteral;
|
|
1134
|
-
export type PreferredDocs = "starlight" | "nextra" | UnknownLiteral;
|
|
1135
|
-
export type PreferredIcons = "lucide" | UnknownLiteral;
|
|
1136
|
-
export type PreferredMail = "resend" | UnknownLiteral;
|
|
1137
|
-
export type PreferredCache = "redis" | UnknownLiteral;
|
|
1138
|
-
export type PreferredStorage = "cloudflare" | UnknownLiteral;
|
|
1139
|
-
export type PreferredCDN = "cloudflare" | UnknownLiteral;
|
|
1140
|
-
export type PreferredCMS = "contentlayer" | UnknownLiteral;
|
|
1141
|
-
export type PreferredI18n = "next-intl" | UnknownLiteral;
|
|
1142
|
-
export type PreferredSEO = "next-seo" | UnknownLiteral;
|
|
1143
|
-
export type PreferredMotion = "framer" | UnknownLiteral;
|
|
1144
|
-
export type PreferredCharts = "recharts" | UnknownLiteral;
|
|
1145
|
-
export type PreferredDates = "dayjs" | UnknownLiteral;
|
|
1146
|
-
export type PreferredMarkdown = "mdx" | UnknownLiteral;
|
|
1147
|
-
export type PreferredSecurity = "auth" | UnknownLiteral;
|
|
1148
|
-
export type PreferredRouting = "next" | "react-router" | "tanstack-router" | UnknownLiteral;
|
|
1149
|
-
export type RelinterConfirm = "promptOnce" | "promptEachFile" | "autoYes";
|
|
1150
|
-
/**
|
|
1151
|
-
* Default configuration for the build and publish logic.
|
|
1152
|
-
*/
|
|
1153
|
-
export const DEFAULT_CONFIG_RELIVERSE: ReliverseConfig = {
|
|
1154
|
-
// RSE CONFIG (https://docs.reliverse.org/cli)
|
|
1155
|
-
// Restart the CLI to apply your config changes
|
|
1156
|
-
$schema: "./schema.json",
|
|
1157
|
-
// General project information
|
|
1158
|
-
projectName: "@reliverse/dler",
|
|
1159
|
-
projectAuthor: "reliverse",
|
|
1160
|
-
projectDescription:
|
|
1161
|
-
"dler (prev. relidler) is a flexible, unified, and fully automated bundler for TypeScript and JavaScript projects, as well as an NPM and JSR publishing tool.",
|
|
1162
|
-
version: "1.7.114",
|
|
1163
|
-
projectLicense: "MIT",
|
|
1164
|
-
// Bump version
|
|
1165
|
-
bumpDisable: false,
|
|
1166
|
-
bumpFilter: ["package.json", "reliverse.ts"],
|
|
1167
|
-
bumpMode: "patch",
|
|
1168
|
-
bumpSet: "",
|
|
1169
|
-
// Build & Publishing
|
|
1170
|
-
commonPubPause: true,
|
|
1171
|
-
commonPubRegistry: "npm",
|
|
1172
|
-
commonVerbose: false,
|
|
1173
|
-
displayBuildPubLogs: true,
|
|
1174
|
-
coreDeclarations: true,
|
|
1175
|
-
coreDescription: "",
|
|
1176
|
-
coreEntryFile: "mod.ts",
|
|
1177
|
-
coreEntrySrcDir: "src",
|
|
1178
|
-
coreBuildOutDir: "bin",
|
|
1179
|
-
coreIsCLI: { enabled: false, scripts: {} },
|
|
1180
|
-
distJsrAllowDirty: true,
|
|
1181
|
-
distJsrBuilder: "jsr",
|
|
1182
|
-
distJsrDirName: "dist-jsr",
|
|
1183
|
-
distJsrDryRun: false,
|
|
1184
|
-
distJsrFailOnWarn: false,
|
|
1185
|
-
distJsrGenTsconfig: false,
|
|
1186
|
-
distJsrOutFilesExt: "ts",
|
|
1187
|
-
distJsrSlowTypes: true,
|
|
1188
|
-
distNpmBuilder: "mkdist",
|
|
1189
|
-
distNpmDirName: "dist-npm",
|
|
1190
|
-
distNpmOutFilesExt: "js",
|
|
1191
|
-
binaryBuildEnabled: false,
|
|
1192
|
-
binaryBuildInputFile: undefined,
|
|
1193
|
-
binaryBuildTargets: "all",
|
|
1194
|
-
binaryBuildOutDir: "dist",
|
|
1195
|
-
binaryBuildMinify: true,
|
|
1196
|
-
binaryBuildSourcemap: true,
|
|
1197
|
-
binaryBuildBytecode: false,
|
|
1198
|
-
binaryBuildClean: true,
|
|
1199
|
-
binaryBuildWindowsIcon: undefined,
|
|
1200
|
-
binaryBuildWindowsHideConsole: false,
|
|
1201
|
-
binaryBuildAssetNaming: "[name]-[hash].[ext]",
|
|
1202
|
-
binaryBuildParallel: true,
|
|
1203
|
-
binaryBuildExternal: ["c12", "terminal-kit"],
|
|
1204
|
-
binaryBuildNoCompile: false,
|
|
1205
|
-
libsActMode: "main-project-only",
|
|
1206
|
-
libsDirDist: "dist-libs",
|
|
1207
|
-
libsDirSrc: "src/libs",
|
|
1208
|
-
libsList: {},
|
|
1209
|
-
logsFileName: ".logs/relinka.log",
|
|
1210
|
-
logsFreshFile: true,
|
|
1211
|
-
// Dependency filtering
|
|
1212
|
-
filterDepsPatterns: {
|
|
1213
|
-
global: ["@types", "biome", "eslint", "knip", "prettier", "typescript", "@reliverse/dler"],
|
|
1214
|
-
"dist-npm": [],
|
|
1215
|
-
"dist-jsr": [],
|
|
1216
|
-
"dist-libs": {},
|
|
1217
|
-
},
|
|
1218
|
-
// Code quality tools
|
|
1219
|
-
runBeforeBuild: [], // tsc, eslint, biome, knip, dler-check
|
|
1220
|
-
runAfterBuild: [], // dler-check
|
|
1221
|
-
// Build hooks
|
|
1222
|
-
hooksBeforeBuild: [
|
|
1223
|
-
// async () => {
|
|
1224
|
-
// await someAsyncOperation();
|
|
1225
|
-
// }
|
|
1226
|
-
],
|
|
1227
|
-
hooksAfterBuild: [
|
|
1228
|
-
// async () => {
|
|
1229
|
-
// await someAsyncOperation();
|
|
1230
|
-
// }
|
|
1231
|
-
],
|
|
1232
|
-
postBuildSettings: {
|
|
1233
|
-
deleteDistTmpAfterBuild: true,
|
|
1234
|
-
},
|
|
1235
|
-
// Build setup
|
|
1236
|
-
transpileFailOnWarn: false,
|
|
1237
|
-
transpileEsbuild: "es2023",
|
|
1238
|
-
transpileFormat: "esm",
|
|
1239
|
-
transpileMinify: true,
|
|
1240
|
-
transpilePublicPath: "/",
|
|
1241
|
-
transpileSourcemap: "none",
|
|
1242
|
-
transpileSplitting: false,
|
|
1243
|
-
transpileStub: false,
|
|
1244
|
-
transpileTarget: "node",
|
|
1245
|
-
transpileWatch: false,
|
|
1246
|
-
// Publish artifacts configuration
|
|
1247
|
-
publishArtifacts: {
|
|
1248
|
-
global: ["package.json", "README.md", "LICENSE"],
|
|
1249
|
-
"dist-jsr": [],
|
|
1250
|
-
"dist-npm": [],
|
|
1251
|
-
"dist-libs": {},
|
|
1252
|
-
},
|
|
1253
|
-
// Files with these extensions will be built
|
|
1254
|
-
// Any other files will be copied as-is to dist
|
|
1255
|
-
buildPreExtensions: ["ts", "js"],
|
|
1256
|
-
// If you need to exclude some ts/js files from being built,
|
|
1257
|
-
// you can store them in the dirs with buildTemplatesDir name
|
|
1258
|
-
buildTemplatesDir: "templates",
|
|
1259
|
-
// Integrated relinka logger configuration
|
|
1260
|
-
relinka: {
|
|
1261
|
-
verbose: false,
|
|
1262
|
-
dirs: {
|
|
1263
|
-
maxLogFiles: 5,
|
|
1264
|
-
},
|
|
1265
|
-
disableColors: false,
|
|
1266
|
-
logFile: {
|
|
1267
|
-
outputPath: "logs.log",
|
|
1268
|
-
nameWithDate: "disable",
|
|
1269
|
-
freshLogFile: true,
|
|
1270
|
-
},
|
|
1271
|
-
saveLogsToFile: true,
|
|
1272
|
-
timestamp: {
|
|
1273
|
-
enabled: false,
|
|
1274
|
-
format: "HH:mm:ss",
|
|
1275
|
-
},
|
|
1276
|
-
cleanupInterval: 10_000, // 10 seconds
|
|
1277
|
-
bufferSize: 4096, // 4KB
|
|
1278
|
-
maxBufferAge: 5000, // 5 seconds
|
|
1279
|
-
levels: {
|
|
1280
|
-
success: {
|
|
1281
|
-
symbol: "✓",
|
|
1282
|
-
fallbackSymbol: "[OK]",
|
|
1283
|
-
color: "greenBright",
|
|
1284
|
-
spacing: 3,
|
|
1285
|
-
},
|
|
1286
|
-
info: {
|
|
1287
|
-
symbol: "i",
|
|
1288
|
-
fallbackSymbol: "[i]",
|
|
1289
|
-
color: "cyanBright",
|
|
1290
|
-
spacing: 3,
|
|
1291
|
-
},
|
|
1292
|
-
error: {
|
|
1293
|
-
symbol: "✖",
|
|
1294
|
-
fallbackSymbol: "[ERR]",
|
|
1295
|
-
color: "redBright",
|
|
1296
|
-
spacing: 3,
|
|
1297
|
-
},
|
|
1298
|
-
warn: {
|
|
1299
|
-
symbol: "⚠",
|
|
1300
|
-
fallbackSymbol: "[WARN]",
|
|
1301
|
-
color: "yellowBright",
|
|
1302
|
-
spacing: 3,
|
|
1303
|
-
},
|
|
1304
|
-
fatal: {
|
|
1305
|
-
symbol: "‼",
|
|
1306
|
-
fallbackSymbol: "[FATAL]",
|
|
1307
|
-
color: "redBright",
|
|
1308
|
-
spacing: 3,
|
|
1309
|
-
},
|
|
1310
|
-
verbose: {
|
|
1311
|
-
symbol: "✧",
|
|
1312
|
-
fallbackSymbol: "[VERBOSE]",
|
|
1313
|
-
color: "gray",
|
|
1314
|
-
spacing: 3,
|
|
1315
|
-
},
|
|
1316
|
-
internal: {
|
|
1317
|
-
symbol: "⚙",
|
|
1318
|
-
fallbackSymbol: "[INTERNAL]",
|
|
1319
|
-
color: "magentaBright",
|
|
1320
|
-
spacing: 3,
|
|
1321
|
-
},
|
|
1322
|
-
log: { symbol: "│", fallbackSymbol: "|", color: "dim", spacing: 3 },
|
|
1323
|
-
message: {
|
|
1324
|
-
symbol: "🞠",
|
|
1325
|
-
fallbackSymbol: "[MSG]",
|
|
1326
|
-
color: "cyan",
|
|
1327
|
-
spacing: 3,
|
|
1328
|
-
},
|
|
1329
|
-
},
|
|
1330
|
-
},
|
|
1331
|
-
// Project configuration
|
|
1332
|
-
projectState: "creating",
|
|
1333
|
-
projectRepository: "https://github.com/reliverse/rse",
|
|
1334
|
-
projectDomain: "https://docs.reliverse.org/cli",
|
|
1335
|
-
projectCategory: "unknown",
|
|
1336
|
-
projectSubcategory: "unknown",
|
|
1337
|
-
projectTemplate: "unknown",
|
|
1338
|
-
projectTemplateDate: "unknown",
|
|
1339
|
-
projectArchitecture: "unknown",
|
|
1340
|
-
repoPrivacy: "unknown",
|
|
1341
|
-
projectGitService: "github",
|
|
1342
|
-
projectDeployService: "vercel",
|
|
1343
|
-
repoBranch: "main",
|
|
1344
|
-
// Primary tech stack/framework
|
|
1345
|
-
projectFramework: "rempts",
|
|
1346
|
-
projectPackageManager: "bun",
|
|
1347
|
-
projectRuntime: "bun",
|
|
1348
|
-
preferredLibraries: {
|
|
1349
|
-
stateManagement: "unknown",
|
|
1350
|
-
formManagement: "unknown",
|
|
1351
|
-
styling: "unknown",
|
|
1352
|
-
uiComponents: "unknown",
|
|
1353
|
-
testing: "unknown",
|
|
1354
|
-
authentication: "unknown",
|
|
1355
|
-
databaseLibrary: "drizzle",
|
|
1356
|
-
databaseProvider: "sqlite",
|
|
1357
|
-
api: "trpc",
|
|
1358
|
-
linting: "unknown",
|
|
1359
|
-
formatting: "unknown",
|
|
1360
|
-
payment: "unknown",
|
|
1361
|
-
analytics: "unknown",
|
|
1362
|
-
monitoring: "unknown",
|
|
1363
|
-
logging: "unknown",
|
|
1364
|
-
forms: "unknown",
|
|
1365
|
-
notifications: "unknown",
|
|
1366
|
-
search: "unknown",
|
|
1367
|
-
uploads: "unknown",
|
|
1368
|
-
validation: "zod",
|
|
1369
|
-
documentation: "unknown",
|
|
1370
|
-
icons: "unknown",
|
|
1371
|
-
mail: "unknown",
|
|
1372
|
-
cache: "unknown",
|
|
1373
|
-
storage: "unknown",
|
|
1374
|
-
cdn: "unknown",
|
|
1375
|
-
cms: "unknown",
|
|
1376
|
-
i18n: "unknown",
|
|
1377
|
-
seo: "unknown",
|
|
1378
|
-
motion: "unknown",
|
|
1379
|
-
charts: "unknown",
|
|
1380
|
-
dates: "unknown",
|
|
1381
|
-
markdown: "unknown",
|
|
1382
|
-
security: "unknown",
|
|
1383
|
-
routing: "unknown",
|
|
1384
|
-
},
|
|
1385
|
-
monorepo: {
|
|
1386
|
-
type: "none",
|
|
1387
|
-
packages: [],
|
|
1388
|
-
sharedPackages: [],
|
|
1389
|
-
},
|
|
1390
|
-
// List dependencies to exclude from checks
|
|
1391
|
-
ignoreDependencies: [],
|
|
1392
|
-
// Provide custom rules for Rse AI
|
|
1393
|
-
// You can use any json type here in {}
|
|
1394
|
-
customRules: {},
|
|
1395
|
-
// Project features
|
|
1396
|
-
features: {
|
|
1397
|
-
i18n: false,
|
|
1398
|
-
analytics: false,
|
|
1399
|
-
themeMode: "dark-light",
|
|
1400
|
-
authentication: true,
|
|
1401
|
-
api: true,
|
|
1402
|
-
database: true,
|
|
1403
|
-
testing: false,
|
|
1404
|
-
docker: false,
|
|
1405
|
-
ci: false,
|
|
1406
|
-
commands: [
|
|
1407
|
-
"pub",
|
|
1408
|
-
"example",
|
|
1409
|
-
"db",
|
|
1410
|
-
"latest",
|
|
1411
|
-
"check",
|
|
1412
|
-
"dev:cli",
|
|
1413
|
-
"dev:add",
|
|
1414
|
-
"dev:ai",
|
|
1415
|
-
"dev:clone",
|
|
1416
|
-
"dev:cmod",
|
|
1417
|
-
],
|
|
1418
|
-
webview: ["react-native"],
|
|
1419
|
-
language: ["typescript"],
|
|
1420
|
-
themes: ["default", "eslint", "biome", "sonner", "uploadthing", "zod", "typebox", "lucide"],
|
|
1421
|
-
},
|
|
1422
|
-
// Code style preferences
|
|
1423
|
-
codeStyle: {
|
|
1424
|
-
dontRemoveComments: true,
|
|
1425
|
-
shouldAddComments: true,
|
|
1426
|
-
typeOrInterface: "type",
|
|
1427
|
-
importOrRequire: "import",
|
|
1428
|
-
quoteMark: "double",
|
|
1429
|
-
semicolons: true,
|
|
1430
|
-
lineWidth: 80,
|
|
1431
|
-
indentStyle: "space",
|
|
1432
|
-
indentSize: 2,
|
|
1433
|
-
importSymbol: "~",
|
|
1434
|
-
trailingCommas: "all",
|
|
1435
|
-
bracketSpacing: true,
|
|
1436
|
-
arrowParens: "always",
|
|
1437
|
-
tabWidth: 2,
|
|
1438
|
-
jsToTs: false,
|
|
1439
|
-
cjsToEsm: false,
|
|
1440
|
-
modernize: {
|
|
1441
|
-
replaceFs: false,
|
|
1442
|
-
replacePath: false,
|
|
1443
|
-
replaceHttp: false,
|
|
1444
|
-
replaceProcess: false,
|
|
1445
|
-
replaceConsole: false,
|
|
1446
|
-
replaceEvents: false,
|
|
1447
|
-
},
|
|
1448
|
-
},
|
|
1449
|
-
// Settings for cloning an existing repo
|
|
1450
|
-
multipleRepoCloneMode: false,
|
|
1451
|
-
customUserFocusedRepos: [],
|
|
1452
|
-
customDevsFocusedRepos: [],
|
|
1453
|
-
hideRepoSuggestions: false,
|
|
1454
|
-
customReposOnNewProject: false,
|
|
1455
|
-
// Set to false to disable opening the browser during env composing
|
|
1456
|
-
envComposerOpenBrowser: true,
|
|
1457
|
-
// Enable auto-answering for prompts to skip manual confirmations.
|
|
1458
|
-
// Make sure you have unknown values configured above.
|
|
1459
|
-
skipPromptsUseAutoBehavior: false,
|
|
1460
|
-
// Prompt behavior for deployment
|
|
1461
|
-
// Options: prompt | autoYes | autoNo
|
|
1462
|
-
deployBehavior: "prompt",
|
|
1463
|
-
depsBehavior: "prompt",
|
|
1464
|
-
gitBehavior: "prompt",
|
|
1465
|
-
i18nBehavior: "prompt",
|
|
1466
|
-
scriptsBehavior: "prompt",
|
|
1467
|
-
// Behavior for existing GitHub repos during project creation
|
|
1468
|
-
// Options: prompt | autoYes | autoYesSkipCommit | autoNo
|
|
1469
|
-
existingRepoBehavior: "prompt",
|
|
1470
|
-
// Behavior for Rse AI chat and agent mode
|
|
1471
|
-
// Options: promptOnce | promptEachFile | autoYes
|
|
1472
|
-
relinterConfirm: "promptOnce",
|
|
1473
|
-
// Remdn Configuration
|
|
1474
|
-
remdn: {
|
|
1475
|
-
title: "Directory Comparison",
|
|
1476
|
-
output: "docs/files.html",
|
|
1477
|
-
dirs: {
|
|
1478
|
-
src: {},
|
|
1479
|
-
"dist-npm/bin": {},
|
|
1480
|
-
"dist-jsr/bin": {},
|
|
1481
|
-
"dist-libs/sdk/npm/bin": {},
|
|
1482
|
-
},
|
|
1483
|
-
"ext-map": {
|
|
1484
|
-
ts: ["ts", "js-d.ts", "ts"], // [<main>, <dist-npm/bin | dist-libs's * npm/bin>, <dist-jsr | dist-libs's * jsr/bin>]
|
|
1485
|
-
},
|
|
1486
|
-
},
|
|
1487
|
-
};
|
|
1488
|
-
export const defineConfig = (userConfig: Partial<ReliverseConfig> = {}) => {
|
|
1489
|
-
return { ...DEFAULT_CONFIG_RELIVERSE, ...userConfig };
|
|
1490
|
-
};
|