-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelidler.cfg.ts
85 lines (76 loc) · 2.04 KB
/
relidler.cfg.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import { defineConfig } from "@reliverse/relidler-cfg";
/**
* Reliverse Bundler Configuration
* Hover over a field to see more details
* @see https://github.com/reliverse/relidler
*/
export default defineConfig({
// Bump configuration
bumpDisable: false,
bumpFilter: ["package.json", "reliverse.ts"],
bumpMode: "autoPatch",
// Common configuration
commonPubPause: false,
commonPubRegistry: "npm-jsr",
commonVerbose: false,
// Core configuration
coreDeclarations: true,
coreEntryFile: "main.ts",
coreEntrySrcDir: "src",
coreIsCLI: false,
// JSR-only config
distJsrAllowDirty: true,
distJsrBuilder: "jsr",
distJsrCopyRootFiles: ["README.md", "LICENSE"],
distJsrDirName: "dist-jsr",
distJsrDryRun: false,
distJsrGenTsconfig: false,
distJsrOutFilesExt: "ts",
distJsrSlowTypes: true,
// NPM-only config
distNpmBuilder: "mkdist",
distNpmCopyRootFiles: ["README.md", "LICENSE"],
distNpmDirName: "dist-npm",
distNpmOutFilesExt: "js",
// Libraries Relidler Plugin
// Publish specific dirs as separate packages
// This feature is experimental at the moment
// Please commit your changes before using it
libsActMode: "main-project-only",
libsDirDist: "dist-libs",
libsDirSrc: "src/libs",
libsList: {
// "@acme/cli-libName": {
// libDeclarations: true,
// libDescription: "@acme/cli defineConfig",
// libDirName: "libName",
// libMainFile: "libName/libName-main.ts",
// libPkgKeepDeps: true,
// libTranspileMinify: true,
// },
},
// Logger setup
logsFileName: "relinka.log",
logsFreshFile: true,
// Dependency filtering
rmDepsMode: "patterns-and-devdeps",
rmDepsPatterns: [
"@types",
"biome",
"eslint",
"knip",
"prettier",
"typescript",
"@reliverse/config",
],
// Build setup
transpileEsbuild: "es2023",
transpileFormat: "esm",
transpileMinify: true,
transpilePublicPath: "/",
transpileSourcemap: "none",
transpileSplitting: false,
transpileStub: false,
transpileTarget: "node",
transpileWatch: false,
});