@reliverse/dler 2.1.3 → 2.1.5
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/dist/cmds/build/cmd.js +601 -613
- package/dist/cmds/clean/cmd.js +136 -139
- package/dist/cmds/init/cmd.js +37 -40
- package/dist/cmds/integrate/cmd.js +61 -64
- package/dist/cmds/perf/cmd.js +229 -227
- package/dist/cmds/port/cmd.js +49 -52
- package/dist/cmds/publish/cmd.js +230 -232
- package/dist/cmds/senv/cmd.js +199 -198
- package/dist/cmds/shell/cmd.js +38 -41
- package/dist/cmds/tsc/cmd.js +101 -104
- package/dist/cmds/update/cmd.js +140 -137
- package/package.json +11 -11
package/dist/cmds/publish/cmd.js
CHANGED
|
@@ -1,249 +1,247 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import {
|
|
3
|
-
defineCmd,
|
|
4
|
-
defineCmdArgs,
|
|
5
|
-
defineCmdCfg
|
|
6
|
-
} from "@reliverse/dler-launcher";
|
|
2
|
+
import { defineArgs, defineCommand } from "@reliverse/dler-launcher";
|
|
7
3
|
import { logger } from "@reliverse/dler-logger";
|
|
8
4
|
import {
|
|
9
5
|
publishAllPackages
|
|
10
6
|
} from "@reliverse/dler-publish";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
export default defineCommand({
|
|
8
|
+
meta: {
|
|
9
|
+
name: "publish",
|
|
10
|
+
description: "Publish packages to npm, JSR, Vercel, or multiple registries. Supports version bumping, dist-tags, access control, and concurrent publishing. Works with dler.ts configuration for per-package settings.",
|
|
11
|
+
examples: [
|
|
12
|
+
"dler publish",
|
|
13
|
+
'dler publish --filter "@reliverse/dler-prompt,@reliverse/dler-build"',
|
|
14
|
+
'dler publish --filter "@reliverse/dler-*"',
|
|
15
|
+
'dler publish --ignore "@reliverse/*"',
|
|
16
|
+
'dler publish --ignore "@reliverse/dler-colors" --ignore "@reliverse/dler-v1"',
|
|
17
|
+
'dler publish --ignore "@reliverse/dler-colors @reliverse/dler-v1"',
|
|
18
|
+
"dler publish --cwd /path/to/monorepo",
|
|
19
|
+
"dler publish --cwd /path/to/monorepo --ignore @reliverse/*",
|
|
20
|
+
"dler publish --bump minor",
|
|
21
|
+
"dler publish --bump major --tag next",
|
|
22
|
+
"dler publish --tag beta --access restricted",
|
|
23
|
+
"dler publish --dry-run",
|
|
24
|
+
"dler publish --dry-run --verbose",
|
|
25
|
+
"dler publish --concurrency 5",
|
|
26
|
+
"dler publish --concurrency 2 --stopOnError",
|
|
27
|
+
"dler publish --ignore @reliverse/* --concurrency 6 --stopOnError",
|
|
28
|
+
"dler publish --verbose",
|
|
29
|
+
"dler publish --verbose --ignore @reliverse/*",
|
|
30
|
+
"dler publish --verbose --concurrency 2 --stopOnError",
|
|
31
|
+
"dler publish --registry jsr",
|
|
32
|
+
"dler publish --registry npm-jsr",
|
|
33
|
+
"dler publish --registry vercel",
|
|
34
|
+
"dler publish --kind browser-app --registry vercel",
|
|
35
|
+
"dler publish --kind native-app --registry none",
|
|
36
|
+
"dler publish --kind cli --registry jsr",
|
|
37
|
+
"dler publish --bumpDisable",
|
|
38
|
+
"dler publish --bumpDisable --dry-run",
|
|
39
|
+
"dler publish --bumpDisable --tag next",
|
|
40
|
+
"",
|
|
41
|
+
"# Configuration Examples:",
|
|
42
|
+
"# Create dler.ts in your monorepo root:",
|
|
43
|
+
"# export default {",
|
|
44
|
+
"# publish: {",
|
|
45
|
+
"# global: { access: 'public', tag: 'latest', registry: 'npm', kind: 'library' },",
|
|
46
|
+
"# packages: { ",
|
|
47
|
+
"# 'my-library': { tag: 'next', bump: 'minor', registry: 'jsr', kind: 'library' },",
|
|
48
|
+
"# 'my-web-app': { registry: 'vercel', kind: 'browser-app' },",
|
|
49
|
+
"# 'my-native-app': { registry: 'none', kind: 'native-app' },",
|
|
50
|
+
"# 'my-cli-tool': { registry: 'npm', kind: 'cli' },",
|
|
51
|
+
"# 'my-library': { bumpDisable: true, tag: 'next' }",
|
|
52
|
+
"# },",
|
|
53
|
+
"# patterns: [{ pattern: '*example*', config: { dryRun: true, registry: 'vercel', kind: 'browser-app' } }]",
|
|
54
|
+
"# }",
|
|
55
|
+
"# }",
|
|
56
|
+
"",
|
|
57
|
+
"# Note: Make sure to run 'dler build' first to:",
|
|
58
|
+
"# - Generate dist folders and declaration files",
|
|
59
|
+
"# - Transform package.json (adds files field, transforms exports, adds bin for CLI)",
|
|
60
|
+
"# The publish command will then handle version bumping and registry publishing",
|
|
61
|
+
"# CLI flags override dler.ts configuration settings"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
args: defineArgs({
|
|
65
|
+
ignore: {
|
|
66
|
+
type: "string",
|
|
67
|
+
description: "Package(s) to ignore (supports wildcards like @reliverse/*)"
|
|
68
|
+
},
|
|
69
|
+
filter: {
|
|
70
|
+
type: "string",
|
|
71
|
+
description: "Package(s) to include (supports wildcards and comma-separated values like '@reliverse/dler-prompt,@reliverse/dler-build'). Takes precedence over --ignore when both are provided."
|
|
72
|
+
},
|
|
73
|
+
cwd: {
|
|
74
|
+
type: "string",
|
|
75
|
+
description: "Working directory (monorepo root)"
|
|
76
|
+
},
|
|
77
|
+
bump: {
|
|
78
|
+
type: "string",
|
|
79
|
+
description: "Version bump type: major, minor, patch, premajor, preminor, prepatch, prerelease (default: patch)"
|
|
80
|
+
},
|
|
81
|
+
tag: {
|
|
82
|
+
type: "string",
|
|
83
|
+
description: "npm dist-tag (default: latest)"
|
|
84
|
+
},
|
|
85
|
+
access: {
|
|
86
|
+
type: "string",
|
|
87
|
+
description: "Access level: public or restricted (default: public)"
|
|
88
|
+
},
|
|
89
|
+
dryRun: {
|
|
90
|
+
type: "boolean",
|
|
91
|
+
description: "Simulate publishing without actually publishing (default: false)"
|
|
92
|
+
},
|
|
93
|
+
otp: {
|
|
94
|
+
type: "string",
|
|
95
|
+
description: "One-time password for 2FA authentication"
|
|
96
|
+
},
|
|
97
|
+
authType: {
|
|
98
|
+
type: "string",
|
|
99
|
+
description: "Authentication method: web or legacy (default: legacy)"
|
|
100
|
+
},
|
|
101
|
+
concurrency: {
|
|
102
|
+
type: "number",
|
|
103
|
+
description: "Number of packages to publish concurrently (default: 3)"
|
|
104
|
+
},
|
|
105
|
+
verbose: {
|
|
106
|
+
type: "boolean",
|
|
107
|
+
description: "Verbose mode (default: false)"
|
|
108
|
+
},
|
|
109
|
+
registry: {
|
|
110
|
+
type: "string",
|
|
111
|
+
description: "Registry to publish to: npm, jsr, vercel, npm-jsr, or none (default: npm)"
|
|
112
|
+
},
|
|
113
|
+
kind: {
|
|
114
|
+
type: "string",
|
|
115
|
+
description: "Package kind: library, browser-app, native-app, or cli (default: library)"
|
|
116
|
+
},
|
|
117
|
+
bumpDisable: {
|
|
118
|
+
type: "boolean",
|
|
119
|
+
description: "Disable version bumping for all published packages, overwrites config (default: false)"
|
|
120
|
+
},
|
|
121
|
+
withNpmLogs: {
|
|
122
|
+
type: "boolean",
|
|
123
|
+
description: "Display bun publish logs directly to terminal instead of hiding them (setting this to false is not recommended) (default: true)"
|
|
124
|
+
},
|
|
125
|
+
gzipLevel: {
|
|
126
|
+
type: "string",
|
|
127
|
+
description: "Level of gzip compression when packing (0-9, default: 9). Only applies when packing the package."
|
|
128
|
+
},
|
|
129
|
+
ca: {
|
|
130
|
+
type: "string",
|
|
131
|
+
description: "Certificate Authority signing certificate (inline)"
|
|
132
|
+
},
|
|
133
|
+
cafile: {
|
|
134
|
+
type: "string",
|
|
135
|
+
description: "Path to Certificate Authority certificate file"
|
|
136
|
+
},
|
|
137
|
+
ignoreScripts: {
|
|
138
|
+
type: "boolean",
|
|
139
|
+
description: "Skip lifecycle scripts during packing and publishing (default: false)"
|
|
140
|
+
},
|
|
141
|
+
silent: {
|
|
142
|
+
type: "boolean",
|
|
143
|
+
description: "Suppress all output from bun publish (default: false)"
|
|
144
|
+
},
|
|
145
|
+
noProgress: {
|
|
146
|
+
type: "boolean",
|
|
147
|
+
description: "Hide progress bar from bun publish (default: false)"
|
|
148
|
+
},
|
|
149
|
+
noSummary: {
|
|
150
|
+
type: "boolean",
|
|
151
|
+
description: "Don't print publish summary from bun publish (default: false)"
|
|
152
|
+
},
|
|
153
|
+
bunRegistry: {
|
|
154
|
+
type: "string",
|
|
155
|
+
description: "Registry URL for bun publish (overrides .npmrc and bunfig.toml). Note: This is different from dler's --registry option which controls which registry type to use."
|
|
156
|
+
},
|
|
157
|
+
skipTip2FA: {
|
|
158
|
+
type: "boolean",
|
|
159
|
+
description: "Skip the 2FA tip message and the 3-second wait when using --with-npm-logs (default: false)"
|
|
160
|
+
},
|
|
161
|
+
stopOnError: {
|
|
162
|
+
type: "boolean",
|
|
163
|
+
description: "Stop on first error instead of collecting all errors (default: false)"
|
|
16
164
|
}
|
|
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
|
-
|
|
165
|
+
}),
|
|
166
|
+
run: async ({ args }) => {
|
|
167
|
+
try {
|
|
168
|
+
if (typeof process.versions.bun === "undefined") {
|
|
169
|
+
logger.error("\u274C This command requires Bun runtime. Sorry.");
|
|
170
|
+
process.exit(1);
|
|
171
|
+
}
|
|
172
|
+
if (args.authType === "web") {
|
|
173
|
+
logger.error(
|
|
174
|
+
"\u274C --auth-type web is not supported. Please use --auth-type legacy instead."
|
|
175
|
+
);
|
|
176
|
+
process.exit(1);
|
|
177
|
+
}
|
|
178
|
+
const isVerbose = args.verbose === true;
|
|
179
|
+
const options = {
|
|
180
|
+
dryRun: args.dryRun,
|
|
181
|
+
tag: args.tag,
|
|
182
|
+
access: args.access,
|
|
183
|
+
otp: args.otp,
|
|
184
|
+
authType: args.authType || "legacy",
|
|
185
|
+
verbose: args.verbose,
|
|
186
|
+
bump: args.bump || "patch",
|
|
187
|
+
concurrency: args.concurrency,
|
|
188
|
+
registry: args.registry,
|
|
189
|
+
kind: args.kind,
|
|
190
|
+
bumpDisable: args.bumpDisable,
|
|
191
|
+
withNpmLogs: args.withNpmLogs !== void 0 ? args.withNpmLogs : true,
|
|
192
|
+
gzipLevel: args.gzipLevel,
|
|
193
|
+
ca: args.ca,
|
|
194
|
+
cafile: args.cafile,
|
|
195
|
+
ignoreScripts: args.ignoreScripts,
|
|
196
|
+
silent: args.silent !== void 0 ? args.silent : !isVerbose,
|
|
197
|
+
noProgress: args.noProgress !== void 0 ? args.noProgress : !isVerbose,
|
|
198
|
+
noSummary: args.noSummary !== void 0 ? args.noSummary : !isVerbose,
|
|
199
|
+
bunRegistry: args.bunRegistry,
|
|
200
|
+
skipTip2FA: args.skipTip2FA
|
|
201
|
+
};
|
|
202
|
+
const results = await publishAllPackages(args.cwd, args.ignore, {
|
|
203
|
+
...options,
|
|
204
|
+
filter: args.filter
|
|
205
|
+
});
|
|
206
|
+
if (results.warningCount > 0) {
|
|
207
|
+
for (const result of results.results) {
|
|
208
|
+
if (result.warning) {
|
|
209
|
+
if (result.warning.includes('"private: true"')) {
|
|
210
|
+
logger.debug(` \u2139\uFE0F ${result.packageName}: ${result.warning}`);
|
|
211
|
+
} else {
|
|
212
|
+
logger.warn(` \u26A0\uFE0F ${result.packageName}: ${result.warning}`);
|
|
213
|
+
}
|
|
55
214
|
}
|
|
56
215
|
}
|
|
57
216
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
`
|
|
217
|
+
if (results.hasErrors) {
|
|
218
|
+
logger.error(
|
|
219
|
+
`
|
|
62
220
|
\u274C Publishing failed: ${results.errorCount} error(s), ${results.successCount} success(es)`
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
221
|
+
);
|
|
222
|
+
for (const result of results.results) {
|
|
223
|
+
if (!result.success) {
|
|
224
|
+
logger.error(` \u274C ${result.packageName}: ${result.error}`);
|
|
225
|
+
}
|
|
67
226
|
}
|
|
227
|
+
process.exit(1);
|
|
68
228
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
logger.log(` \u2705 ${result.packageName}@${result.version}`);
|
|
229
|
+
logger.success("\nAll packages published successfully!");
|
|
230
|
+
if (args.verbose) {
|
|
231
|
+
for (const result of results.results) {
|
|
232
|
+
if (result.success && !result.warning) {
|
|
233
|
+
logger.log(` \u2705 ${result.packageName}@${result.version}`);
|
|
234
|
+
}
|
|
76
235
|
}
|
|
77
236
|
}
|
|
237
|
+
} catch (error) {
|
|
238
|
+
logger.error("\n\u274C Publish failed:");
|
|
239
|
+
if (error instanceof Error) {
|
|
240
|
+
logger.error(error.message);
|
|
241
|
+
} else {
|
|
242
|
+
logger.error(String(error));
|
|
243
|
+
}
|
|
244
|
+
process.exit(1);
|
|
78
245
|
}
|
|
79
|
-
} catch (error) {
|
|
80
|
-
logger.error("\n\u274C Publish failed:");
|
|
81
|
-
if (error instanceof Error) {
|
|
82
|
-
logger.error(error.message);
|
|
83
|
-
} else {
|
|
84
|
-
logger.error(String(error));
|
|
85
|
-
}
|
|
86
|
-
process.exit(1);
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
const publishCmdArgs = defineCmdArgs({
|
|
90
|
-
ignore: {
|
|
91
|
-
type: "string",
|
|
92
|
-
description: "Package(s) to ignore (supports wildcards like @reliverse/*)"
|
|
93
|
-
},
|
|
94
|
-
cwd: {
|
|
95
|
-
type: "string",
|
|
96
|
-
description: "Working directory (monorepo root)"
|
|
97
|
-
},
|
|
98
|
-
bump: {
|
|
99
|
-
type: "string",
|
|
100
|
-
description: "Version bump type: major, minor, patch, premajor, preminor, prepatch, prerelease (default: patch)"
|
|
101
|
-
},
|
|
102
|
-
tag: {
|
|
103
|
-
type: "string",
|
|
104
|
-
description: "npm dist-tag (default: latest)"
|
|
105
|
-
},
|
|
106
|
-
access: {
|
|
107
|
-
type: "string",
|
|
108
|
-
description: "Access level: public or restricted (default: public)"
|
|
109
|
-
},
|
|
110
|
-
dryRun: {
|
|
111
|
-
type: "boolean",
|
|
112
|
-
description: "Simulate publishing without actually publishing (default: false)"
|
|
113
|
-
},
|
|
114
|
-
otp: {
|
|
115
|
-
type: "string",
|
|
116
|
-
description: "One-time password for 2FA authentication"
|
|
117
|
-
},
|
|
118
|
-
authType: {
|
|
119
|
-
type: "string",
|
|
120
|
-
description: "Authentication method: web or legacy (default: legacy)"
|
|
121
|
-
},
|
|
122
|
-
concurrency: {
|
|
123
|
-
type: "number",
|
|
124
|
-
description: "Number of packages to publish concurrently (default: 3)"
|
|
125
|
-
},
|
|
126
|
-
verbose: {
|
|
127
|
-
type: "boolean",
|
|
128
|
-
description: "Verbose mode (default: false)"
|
|
129
|
-
},
|
|
130
|
-
registry: {
|
|
131
|
-
type: "string",
|
|
132
|
-
description: "Registry to publish to: npm, jsr, vercel, npm-jsr, or none (default: npm)"
|
|
133
|
-
},
|
|
134
|
-
kind: {
|
|
135
|
-
type: "string",
|
|
136
|
-
description: "Package kind: library, browser-app, native-app, or cli (default: library)"
|
|
137
|
-
},
|
|
138
|
-
bumpDisable: {
|
|
139
|
-
type: "boolean",
|
|
140
|
-
description: "Disable version bumping for all published packages, overwrites config (default: false)"
|
|
141
|
-
},
|
|
142
|
-
withNpmLogs: {
|
|
143
|
-
type: "boolean",
|
|
144
|
-
description: "Display bun publish logs directly to terminal instead of hiding them (default: true)"
|
|
145
|
-
},
|
|
146
|
-
gzipLevel: {
|
|
147
|
-
type: "string",
|
|
148
|
-
description: "Level of gzip compression when packing (0-9, default: 9). Only applies when packing the package."
|
|
149
|
-
},
|
|
150
|
-
ca: {
|
|
151
|
-
type: "string",
|
|
152
|
-
description: "Certificate Authority signing certificate (inline)"
|
|
153
|
-
},
|
|
154
|
-
cafile: {
|
|
155
|
-
type: "string",
|
|
156
|
-
description: "Path to Certificate Authority certificate file"
|
|
157
|
-
},
|
|
158
|
-
ignoreScripts: {
|
|
159
|
-
type: "boolean",
|
|
160
|
-
description: "Skip lifecycle scripts during packing and publishing (default: false)"
|
|
161
|
-
},
|
|
162
|
-
silent: {
|
|
163
|
-
type: "boolean",
|
|
164
|
-
description: "Suppress all output from bun publish (default: false)"
|
|
165
|
-
},
|
|
166
|
-
noProgress: {
|
|
167
|
-
type: "boolean",
|
|
168
|
-
description: "Hide progress bar from bun publish (default: false)"
|
|
169
|
-
},
|
|
170
|
-
noSummary: {
|
|
171
|
-
type: "boolean",
|
|
172
|
-
description: "Don't print publish summary from bun publish (default: false)"
|
|
173
|
-
},
|
|
174
|
-
bunRegistry: {
|
|
175
|
-
type: "string",
|
|
176
|
-
description: "Registry URL for bun publish (overrides .npmrc and bunfig.toml). Note: This is different from dler's --registry option which controls which registry type to use."
|
|
177
|
-
},
|
|
178
|
-
skipTip2FA: {
|
|
179
|
-
type: "boolean",
|
|
180
|
-
description: "Skip the 2FA tip message and the 3-second wait when using --with-npm-logs (default: false)"
|
|
181
246
|
}
|
|
182
247
|
});
|
|
183
|
-
const publishCmdCfg = defineCmdCfg({
|
|
184
|
-
name: "publish",
|
|
185
|
-
description: "Publish workspace packages or single package to npm registry using Bun's native publish command. Automatically handles version bumping, package.json modification, and dist folder validation. Supports both monorepo and single-repo projects. Supports dler.ts configuration for per-package settings.",
|
|
186
|
-
examples: [
|
|
187
|
-
"dler publish",
|
|
188
|
-
"",
|
|
189
|
-
"# Monorepo examples:",
|
|
190
|
-
'dler publish --ignore "@reliverse/*"',
|
|
191
|
-
'dler publish --ignore "@reliverse/dler-colors" --ignore "@reliverse/dler-v1"',
|
|
192
|
-
'dler publish --ignore "@reliverse/dler-colors @reliverse/dler-v1"',
|
|
193
|
-
"dler publish --cwd /path/to/monorepo",
|
|
194
|
-
"dler publish --cwd /path/to/monorepo --ignore @reliverse/*",
|
|
195
|
-
"",
|
|
196
|
-
"# Single-repo examples:",
|
|
197
|
-
"dler publish --bump patch",
|
|
198
|
-
"dler publish --bump minor --tag next",
|
|
199
|
-
"dler publish --bump major --access public",
|
|
200
|
-
"dler publish --dry-run",
|
|
201
|
-
"dler publish --dry-run --verbose",
|
|
202
|
-
"dler publish --tag alpha",
|
|
203
|
-
"dler publish --access restricted",
|
|
204
|
-
"dler publish --otp 123456",
|
|
205
|
-
"dler publish --auth-type legacy",
|
|
206
|
-
"dler publish --concurrency 3",
|
|
207
|
-
"dler publish --verbose",
|
|
208
|
-
"dler publish --bump patch --tag next --dry-run --verbose",
|
|
209
|
-
"dler publish --ignore @reliverse/* --bump minor --concurrency 2",
|
|
210
|
-
"dler publish --registry npm",
|
|
211
|
-
"dler publish --registry jsr",
|
|
212
|
-
"dler publish --registry vercel",
|
|
213
|
-
"dler publish --registry npm-jsr",
|
|
214
|
-
"dler publish --registry none",
|
|
215
|
-
"dler publish --kind library",
|
|
216
|
-
"dler publish --kind browser-app",
|
|
217
|
-
"dler publish --kind native-app",
|
|
218
|
-
"dler publish --kind cli",
|
|
219
|
-
"dler publish --kind library --registry npm",
|
|
220
|
-
"dler publish --kind browser-app --registry vercel",
|
|
221
|
-
"dler publish --kind cli --registry jsr",
|
|
222
|
-
"dler publish --bumpDisable",
|
|
223
|
-
"dler publish --bumpDisable --dry-run",
|
|
224
|
-
"dler publish --bumpDisable --tag next",
|
|
225
|
-
"",
|
|
226
|
-
"# Configuration Examples:",
|
|
227
|
-
"# Create dler.ts in your monorepo root:",
|
|
228
|
-
"# export default {",
|
|
229
|
-
"# publish: {",
|
|
230
|
-
"# global: { access: 'public', tag: 'latest', registry: 'npm', kind: 'library' },",
|
|
231
|
-
"# packages: { ",
|
|
232
|
-
"# 'my-library': { tag: 'next', bump: 'minor', registry: 'jsr', kind: 'library' },",
|
|
233
|
-
"# 'my-web-app': { registry: 'vercel', kind: 'browser-app' },",
|
|
234
|
-
"# 'my-native-app': { registry: 'none', kind: 'native-app' },",
|
|
235
|
-
"# 'my-cli-tool': { registry: 'npm', kind: 'cli' },",
|
|
236
|
-
"# 'my-library': { bumpDisable: true, tag: 'next' }",
|
|
237
|
-
"# },",
|
|
238
|
-
"# patterns: [{ pattern: '*example*', config: { dryRun: true, registry: 'vercel', kind: 'browser-app' } }]",
|
|
239
|
-
"# }",
|
|
240
|
-
"# }",
|
|
241
|
-
"",
|
|
242
|
-
"# Note: Make sure to run 'dler build' first to:",
|
|
243
|
-
"# - Generate dist folders and declaration files",
|
|
244
|
-
"# - Transform package.json (adds files field, transforms exports, adds bin for CLI)",
|
|
245
|
-
"# The publish command will then handle version bumping and registry publishing",
|
|
246
|
-
"# CLI flags override dler.ts configuration settings"
|
|
247
|
-
]
|
|
248
|
-
});
|
|
249
|
-
export default defineCmd(publishCmd, publishCmdArgs, publishCmdCfg);
|