Skip to content

Commit 4d5cd96

Browse files
committed
improve different cli stuff and build script
1 parent 15176af commit 4d5cd96

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+2393
-749
lines changed

.gitignore

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
.env
2-
.venv/
3-
dist-jsr/
4-
dist-npm/
5-
dist-libs/
1+
.eslintcache
62
.DS_Store
3+
.env
4+
*.logs
5+
/.venv
6+
/addons/**/premium
7+
/addons/premium
8+
/internal-docs
9+
/dist-jsr
10+
/dist-npm
11+
/dist-libs
12+
/multireli
13+
/node_modules
14+
/tests-runtime
715
merged.txt
8-
.eslintcache
9-
node_modules/
10-
addons/premium/
11-
addons/**/premium/
12-
internal-docs/
13-
tests-runtime/
1416
logs.txt
15-
*.logs

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MIT License
22

3-
Copyright (c) 2024 Nazarii Korniienko
3+
Copyright (c) 2025 Nazarii Korniienko
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

build.config.ts

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
1+
import { fileURLToPath } from "node:url";
12
import { resolve, dirname } from "pathe";
23
import { defineBuildConfig } from "unbuild";
3-
import { fileURLToPath } from "url";
4+
5+
/** ------------------------------------
6+
* COMMON OPTIONS
7+
* ------------------------------------ */
8+
9+
const isCLI = true;
10+
const declaration = false;
11+
12+
const pausePublish = false;
13+
const disableBump = false;
14+
const verbose = false;
15+
16+
/** ------------------------------------
17+
* CONFIGURATION
18+
* ------------------------------------ */
419

520
/**
621
* Supported bundler names.
@@ -97,11 +112,11 @@ const ROOT_DIR = dirname(fileURLToPath(import.meta.url));
97112
export const pubConfig: BuildPublishConfig = {
98113
// Publish configuration
99114
registry: "npm-jsr",
100-
pausePublish: false,
115+
pausePublish,
101116

102117
// Bump configuration
103118
bump: "autoPatch",
104-
disableBump: false,
119+
disableBump,
105120

106121
// Output directories
107122
npmDistDir: resolve(ROOT_DIR, "dist-npm"),
@@ -126,10 +141,10 @@ export const pubConfig: BuildPublishConfig = {
126141
dryRun: false,
127142

128143
// Helper flags
129-
verbose: true,
144+
verbose,
130145

131146
// CLI flag
132-
isCLI: true,
147+
isCLI,
133148

134149
// Build overrides – do not modify these manually
135150
lastBuildFor: "npm",
@@ -198,7 +213,7 @@ export const isNextBuildLib = {
198213
const buildConfig =
199214
selectedBuilder !== "bun" && selectedBuilder !== "jsr"
200215
? defineBuildConfig({
201-
declaration: false,
216+
declaration,
202217
clean: false,
203218
entries: [
204219
{

build.libs.jsonc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"@reliverse/config": {
3-
"main": "src/utils/libs/config/schemaConfig.ts"
3+
"main": "src/libs/config/config-main.ts"
4+
},
5+
"@reliverse/sdk": {
6+
"main": "src/libs/sdk/sdk-main.ts"
47
}
58
}

0 commit comments

Comments
 (0)