dksetup 1.0.34 → 1.0.37
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/dksetup-publish.mjs +3 -9
- package/justfile +6 -1
- package/package.json +1 -1
package/dksetup-publish.mjs
CHANGED
|
@@ -182,18 +182,12 @@ async function main() {
|
|
|
182
182
|
for (const pkg of packageStates) {
|
|
183
183
|
pkg.pkgJson.version = pkg.newVersion;
|
|
184
184
|
await savePackageJson(pkg.fullPath, pkg.pkgJson);
|
|
185
|
-
|
|
186
|
-
console.log('\nVersion updates:');
|
|
187
|
-
for (const pkg of packageStates) {
|
|
188
|
-
console.log(`- ${pkg.name}: ${pkg.oldVersion} -> ${pkg.newVersion}`);
|
|
189
|
-
}
|
|
190
|
-
console.log('\nPublishing packages to npm...');
|
|
191
|
-
for (const pkg of packageStates) {
|
|
185
|
+
console.log(`Bumped ${pkg.name} from ${pkg.oldVersion} to ${pkg.newVersion}`);
|
|
192
186
|
const publishCwd = resolve(repoRoot, pkg.publishDir);
|
|
193
|
-
console.log(
|
|
187
|
+
console.log(`Publishing ${pkg.name}@${pkg.newVersion} from ${pkg.publishDir}...`);
|
|
194
188
|
await runCommand('npm', ['publish', '--access', 'public'], publishCwd);
|
|
189
|
+
console.log(`Published ${pkg.name}@${pkg.newVersion} successfully.`);
|
|
195
190
|
}
|
|
196
|
-
console.log('\nAll packages published successfully.');
|
|
197
191
|
}
|
|
198
192
|
|
|
199
193
|
main().catch((error) => {
|
package/justfile
CHANGED
|
@@ -6,6 +6,9 @@ set shell := ["powershell", "-c"]
|
|
|
6
6
|
publish:
|
|
7
7
|
node dksetup-publish.mjs
|
|
8
8
|
|
|
9
|
+
# Bump only
|
|
10
|
+
bump:
|
|
11
|
+
npm version patch --no-git-tag-version
|
|
9
12
|
|
|
10
13
|
# Show current version
|
|
11
14
|
version:
|
|
@@ -15,5 +18,7 @@ version:
|
|
|
15
18
|
install:
|
|
16
19
|
npm install
|
|
17
20
|
|
|
18
|
-
|
|
21
|
+
# Help
|
|
22
|
+
help:
|
|
23
|
+
echo "Available commands: publish, npm publish, bump, version, install"
|
|
19
24
|
|