@reliverse/dler 2.0.7 → 2.0.9

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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +110 -0
  3. package/package.json +13 -15
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Nazar Kornienko (blefnk), Bleverse, Reliverse
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,110 @@
1
+ # 🧬 Dler
2
+
3
+ > **@reliverse/dler** is an open-source CLI & framework which helps developers build TypeScript/JavaScript libraries and CLI tools easily. It provides ready-to-use primitives, so you don't have to write them from scratch.
4
+
5
+ [Sponsor](https://github.com/sponsors/blefnk) — [Discord](https://discord.gg/Pb8uKbwpsJ) — [GitHub](https://github.com/reliverse/dler) — [NPM](https://npmjs.com/@reliverse/dler) — [Introduction](https://blefnk.reliverse.org/blog/articles/package-managers)
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ bun add @reliverse/dler
11
+ ```
12
+
13
+ ## v2 Docs
14
+
15
+ Docs for v2 will be available soon. For now, you can read the v1 docs, or check alpha docs in [relidocs](./relidocs) directory in the root of the project. For example, you can [learn Dler CLI defaults](./relidocs/DEFAULTS.md) there.
16
+
17
+ Note on `bun publish` and `bun tsc`: we don't display npm/tsc raw output, because both are not reliable for concurrent display, so we display them on our own.
18
+
19
+ ## v1 Docs
20
+
21
+ Visit [docs.reliverse.org/libraries/dler](https://docs.reliverse.org/libraries/dler) to learn how to install and use `@reliverse/dler` library.
22
+
23
+ ## Declaration Generation
24
+
25
+ Dler uses Rslib's recommended approach for TypeScript declaration generation, supporting both bundled and bundleless declarations.
26
+
27
+ ### Optional Dependencies
28
+
29
+ For advanced declaration generation features, you can install these optional dependencies:
30
+
31
+ ```bash
32
+ # For bundled declarations (single .d.ts file per package)
33
+ bun add -D @microsoft/api-extractor
34
+
35
+ # For experimental tsgo support (faster generation)
36
+ bun add -D @typescript/native-preview
37
+ ```
38
+
39
+ ### Configuration
40
+
41
+ Configure declaration generation in your `dler.ts`:
42
+
43
+ ```typescript
44
+ export default defineConfig({
45
+ build: {
46
+ global: {
47
+ dts: {
48
+ enable: true,
49
+ bundle: false, // Bundleless by default
50
+ abortOnError: true,
51
+ },
52
+ },
53
+ packages: {
54
+ "my-library": {
55
+ dts: {
56
+ bundle: true, // Bundled declarations
57
+ distPath: "types",
58
+ },
59
+ },
60
+ "my-other-package": {
61
+ dts: {
62
+ tsgo: true, // Use experimental tsgo
63
+ bundle: false,
64
+ },
65
+ },
66
+ },
67
+ },
68
+ });
69
+ ```
70
+
71
+ ## Contributing
72
+
73
+ A Bun monorepo created with the monorepo bootstrapper.
74
+
75
+ ## Getting Started
76
+
77
+ ```bash
78
+ bun install
79
+ ```
80
+
81
+ ## Workspaces
82
+
83
+ This monorepo was generated by dler init. It uses bun workspaces to manage multiple packages.
84
+
85
+ ### Scripts
86
+
87
+ Run scripts across all workspaces:
88
+
89
+ ```bash
90
+ bun --filter '*' <script>
91
+ ```
92
+
93
+ Run scripts for specific packages:
94
+
95
+ ```bash
96
+ bun --filter <package-name> <script>
97
+ ```
98
+
99
+ ## Stand With Ukraine
100
+
101
+ - 💙 Please help fund drones, medkits, and victory. [Donate now](https://u24.gov.ua), please, it matters.
102
+ - 💛 Every dollar helps stop [russia's war crimes](https://war.ukraine.ua/russia-war-crimes) and saves lives.
103
+
104
+ ## Stand With Reliverse
105
+
106
+ [Star the project repo](https://github.com/reliverse/dler) to help Reliverse community grow; Follow this project's author, [Nazar Kornienko](https://github.com/blefnk) & [Reliverse](https://github.com/reliverse), to get updates about new projects; [Become a sponsor](https://github.com/sponsors/blefnk) and power the next wave of tools that _just feel right_.
107
+
108
+ ## License
109
+
110
+ Licensed under [MIT](LICENSE) © 2025 [Nazar Kornienko (blefnk)](https://github.com/blefnk), [Bleverse](https://bleverse.com), [Reliverse](https://github.com/reliverse)
package/package.json CHANGED
@@ -2,28 +2,25 @@
2
2
  "name": "@reliverse/dler",
3
3
  "description": "@reliverse/dler is a framework which helps TypeScript and JavaScript developers create their libraries and CLI tools. It provides ready-to-use primitives, so you don't have to write them from scratch.",
4
4
  "author": "reliverse",
5
- "version": "2.0.7",
5
+ "version": "2.0.9",
6
6
  "private": false,
7
7
  "type": "module",
8
8
  "bin": {
9
9
  "dler": "dist/cli.js"
10
10
  },
11
- "scripts": {
12
- "dler": "bun src/cli.ts"
13
- },
14
11
  "dependencies": {
15
12
  "c12": "^3.3.0",
16
13
  "clipboardy": "^5.0.0",
17
- "@reliverse/dler-publish": "2.0.8",
18
- "@reliverse/dler-bump": "2.0.8",
19
- "@reliverse/dler-build": "2.0.8",
20
- "@reliverse/dler-logger": "2.0.8",
21
- "@reliverse/dler-matcher": "2.0.8",
22
- "@reliverse/dler-launcher": "2.0.8",
23
- "@reliverse/dler-prompt": "2.0.8",
24
- "@reliverse/dler-helpers": "2.0.8",
25
- "@reliverse/dler-pkg-tsc": "2.0.8",
26
- "@reliverse/dler-mapper": "2.0.8"
14
+ "@reliverse/dler-publish": "2.0.10",
15
+ "@reliverse/dler-bump": "2.0.10",
16
+ "@reliverse/dler-build": "2.0.10",
17
+ "@reliverse/dler-logger": "2.0.10",
18
+ "@reliverse/dler-matcher": "2.0.10",
19
+ "@reliverse/dler-launcher": "2.0.10",
20
+ "@reliverse/dler-prompt": "2.0.10",
21
+ "@reliverse/dler-helpers": "2.0.10",
22
+ "@reliverse/dler-pkg-tsc": "2.0.10",
23
+ "@reliverse/dler-mapper": "2.0.10"
27
24
  },
28
25
  "keywords": [
29
26
  "dler",
@@ -35,5 +32,6 @@
35
32
  "files": [
36
33
  "dist",
37
34
  "package.json"
38
- ]
35
+ ],
36
+ "license": "MIT"
39
37
  }