relion 0.25.0 → 0.25.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.js +1 -1
- package/dist/resolver.js +1 -0
- package/package.json +4 -4
package/dist/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{resolve as e}from"node:path";import{pathToFileURL as t}from"node:url";import n from"./index.js";import{cli as r}from"cleye";import"
|
|
1
|
+
import{resolve as e}from"node:path";import{pathToFileURL as t}from"node:url";import n from"./index.js";import{cli as r}from"cleye";import{register as i}from"module";const a=async n=>{try{return(await import(t(e(process.cwd(),n)).href)).default}catch(e){throw Error(`Error loading config: ${e.message}`)}},o=e=>{if(e===`all`)return`all`;let t={b:`bump`,l:`changelog`,m:`commit`,t:`tag`};return e.split(``).map(e=>{if(!(e in t))throw Error(`Invalid lifecycle step alias: '${e}'`);return t[e]})};import.meta.main&&(i(`./resolver.js`,import.meta.url),await s());async function s(e,t){typeof e==`string`&&(e=e.split(` `)),e=e?[e].flat():process.argv.slice(2);let i=r({name:`relion`,flags:{lifecycle:{alias:`f`,type:String,description:`Lifecycle steps to run in order ((b)ump, change(l)og, co(m)mit, (t)ag, or "all").`},config:{alias:`c`,type:String,description:`Path to the config file`,default:`relion.config.ts`},profile:{alias:`p`,type:String,description:`Use config profile`},dry:{alias:`d`,type:Boolean,description:`Run without making any changes`},latest:{alias:`L`,type:Boolean,description:`Use the latest-release commit range in changelog`,default:!1}}},void 0,[...e]);if(!i)return;t=t?structuredClone(t):await a(i.flags.config);let s,c=i.flags.profile??t.profile;if(c){let e=t[`_${c}`];if(!e)throw Error(`Profile '${c}' not found in config`);t.profile=c,s=e}else s=t._default??={};return i.flags.lifecycle&&(s.lifecycle=o(i.flags.lifecycle)),i.flags.dry&&(s.dryRun=!0),i.flags.latest&&(s.changelog??={},s.changelog.commitRange=`latest-release`),{inputConfig:t,...await n(t)}}export{s as runCli};
|
package/dist/resolver.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{dirname as e,resolve as t}from"node:path";import{fileURLToPath as n,pathToFileURL as r}from"node:url";const i=(i,a,o)=>{if(!/^\.{1,2}\//.test(i)||!a.parentURL)return o(i,a);let s=r(t(e(n(a.parentURL)),i+`.ts`)).href;return o(s,a)};export{i as resolve};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "relion",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.1",
|
|
4
4
|
"description": "Release workflow helper.",
|
|
5
5
|
"author": "Kh4f <kh4f.dev@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,8 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"handlebars": "^4.7.8",
|
|
35
35
|
"semver": "^7.7.3",
|
|
36
|
-
"cleye": "^1.3.4"
|
|
37
|
-
"tsx": "^4.20.6"
|
|
36
|
+
"cleye": "^1.3.4"
|
|
38
37
|
},
|
|
39
38
|
"devDependencies": {
|
|
40
39
|
"@eslint/js": "^9.38.0",
|
|
@@ -45,8 +44,9 @@
|
|
|
45
44
|
"globals": "^16.4.0",
|
|
46
45
|
"lint-staged": "^16.2.4",
|
|
47
46
|
"simple-git-hooks": "^2.13.1",
|
|
48
|
-
"tsdown": "^0.15.
|
|
47
|
+
"tsdown": "^0.15.8",
|
|
49
48
|
"typescript": "^5.9.3",
|
|
49
|
+
"tsx": "^4.20.6",
|
|
50
50
|
"typescript-eslint": "^8.46.1",
|
|
51
51
|
"vitest": "^3.2.4"
|
|
52
52
|
},
|