@omni-oss/set-version 0.0.0 → 0.0.1
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/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
"use strict";const d=require("@commander-js/extra-typings"),i=require("./index-BCvo12D0.js"),f="@omni-oss/set-version",g="Sets version of various package manifests",h="0.0.
|
|
2
|
+
"use strict";const d=require("@commander-js/extra-typings"),i=require("./index-BCvo12D0.js"),f="@omni-oss/set-version",g="Sets version of various package manifests",h="0.0.1",c=new d.Command;c.name(f).version(h).description(g).argument("<version>","What version to set").option("-d, --dir <dir>","Directory to set version in",process.cwd()).option("-B, --no-built-in-profiles","Do not use built-in profiles").option("--dry-run","Do not write changes to disk",!1).action(async(l,n)=>{try{n.dryRun&&console.log("Dry run enabled, no changes will be written to disk");const o=await i.findConfig(n.dir,!1),r=n.builtInProfiles?[...i.BUILT_IN_PROFILES,...o?.profiles??[]]:o?.profiles??[];if(!r.length){console.warn("No profiles are configured, nothing to do");return}const s=await i.setVersion(n.dir,l,r,{dryRun:n.dryRun});if(s.length){const t=s.filter(e=>e.changed),a=s.filter(e=>!e.changed);console.log(`Matched ${t.length} file(s), updated ${t.length} file(s), skipped ${a.length} file(s)`);for(const e of t)console.log(` * [UPDATED]: ${e.path}`);for(const e of a)e.notChangedReasonMessage?console.log(` * [SKIPPED]: ${e.path}
|
|
3
3
|
> ${e.notChangedReasonMessage}`):console.log(` * [SKIPPED]: ${e.path}`)}else console.warn("No files updated")}catch(o){console.error(o),process.exit(1)}});c.parseAsync();
|
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
import { Command as c } from "@commander-js/extra-typings";
|
|
3
3
|
import { f as d, B as f, s as g } from "./index-DjY1h20_.mjs";
|
|
4
|
-
const h = "@omni-oss/set-version", p = "Sets version of various package manifests", u = "0.0.
|
|
4
|
+
const h = "@omni-oss/set-version", p = "Sets version of various package manifests", u = "0.0.1", a = new c();
|
|
5
5
|
a.name(h).version(u).description(p).argument("<version>", "What version to set").option("-d, --dir <dir>", "Directory to set version in", process.cwd()).option("-B, --no-built-in-profiles", "Do not use built-in profiles").option("--dry-run", "Do not write changes to disk", !1).action(async (l, o) => {
|
|
6
6
|
try {
|
|
7
7
|
o.dryRun && console.log(
|