@ubic/release-it-config 0.1.6 → 0.1.7

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.
@@ -1 +1,2 @@
1
- "use strict";var n=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var g=(t,e)=>{for(var o in e)n(t,o,{get:e[o],enumerable:!0})},l=(t,e,o,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of a(e))!c.call(t,i)&&i!==o&&n(t,i,{get:()=>e[i],enumerable:!(r=p(e,i))||r.enumerable});return t};var m=t=>l(n({},"__esModule",{value:!0}),t);var f={};g(f,{releaseItConfig:()=>s});module.exports=m(f);var u={"@release-it/conventional-changelog":{preset:{name:"conventionalcommits",types:[{type:"feat",section:"\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u043E"},{type:"fix",section:"\u0418\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043E"},{type:"chore",section:"\u041F\u0440\u043E\u0447\u0435\u0435"},{type:"refactor",section:"\u0420\u0435\u0444\u0430\u043A\u0442\u043E\u0440\u0438\u043D\u0433"},{type:"build",section:"\u0421\u0431\u043E\u0440\u043A\u0430"},{type:"docs",section:"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u044F"},{type:"ci",section:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 CI/CD"},{type:"perf",section:"\u0423\u043B\u0443\u0447\u0448\u0435\u043D\u0438\u0435 \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438"},{type:"test",section:"\u041F\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u0442\u0435\u0441\u0442\u0430\u043C\u0438"},{type:"style",section:"\u0423\u043B\u0443\u0447\u0448\u0435\u043D\u0438\u0435 \u0447\u0438\u0442\u0430\u0435\u043C\u043E\u0441\u0442\u0438 \u043A\u043E\u0434\u0430"}]},infile:"CHANGELOG.md",header:"# \u0418\u0441\u0442\u043E\u0440\u0438\u044F \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0439",writerOpts:{groupBy:"type"},parserOpts:{mergePattern:/'Merge branch'/}}},s={git:{requireBranch:"master",requireUpstream:!0,requireCommits:!0,requireCleanWorkingDir:!0,addUntrackedFiles:!1,commitMessage:"chore(release): ${version}",tag:!0,tagName:"v${version}",push:!0},hooks:{"before:init":`git fetch --quiet && git merge-base --is-ancestor @{u} HEAD || { echo '\u274C \u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0440\u0435\u043F\u043E\u0437\u0438\u0442\u043E\u0440\u0438\u044F \u043D\u0435 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E, \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u0435 "git pull".'; exit 1; }`},npm:{publish:!1},plugins:u};
1
+ "use strict";var n=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var l=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},g=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of u(t))!m.call(e,o)&&o!==r&&n(e,o,{get:()=>t[o],enumerable:!(i=c(t,o))||i.enumerable});return e};var h=e=>g(n({},"__esModule",{value:!0}),e);var y={};l(y,{releaseItConfig:()=>a});module.exports=h(y);var s={feat:"\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u043E",fix:"\u0418\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043E",refactor:"\u0420\u0435\u0444\u0430\u043A\u0442\u043E\u0440\u0438\u043D\u0433",docs:"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u044F",test:"\u0422\u0435\u0441\u0442\u044B",build:"\u0421\u0431\u043E\u0440\u043A\u0430",perf:"\u041F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ci:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 CI/CD",style:"\u0423\u043B\u0443\u0447\u0448\u0435\u043D\u0438\u0435 \u0447\u0438\u0442\u0430\u0435\u043C\u043E\u0441\u0442\u0438 \u043A\u043E\u0434\u0430",chore:"\u041E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435"};var C={"@release-it/conventional-changelog":{preset:{name:"conventionalcommits"},infile:"CHANGELOG.md",header:"# \u0418\u0441\u0442\u043E\u0440\u0438\u044F \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0439",writerOpts:{groupBy:"type",transform:e=>{if(!e.body&&!e.subject)return!1;let t=s[e.type]||s.chore,r=(e?.hash||"").substring(0,7);return{...e,shortHash:r,type:t}},commitPartial:`-{{#if scope}} **{{scope}}:**{{/if}} {{#if body}}{{body}}{{else}}{{subject}}{{/if}}{{#if hash}} [[{{shortHash}}]({{@root.repoUrl}}/{{@root.owner}}/{{@root.repository}}/commit/{{hash}})]{{/if}}{{#each references}} [[{{prefix}}{{issue}}](https://youtrack.ubic.tech/issue/{{prefix}}{{issue}})]{{/each}}
2
+ `,commitGroupsSort:(e,t)=>{if(typeof e.title!="string"||typeof t.title!="string")return 0;let r=Object.values(s),i=r.indexOf(e.title),o=r.indexOf(t.title),f=i!==-1?i:Number.MAX_SAFE_INTEGER,p=o!==-1?o:Number.MAX_SAFE_INTEGER;return f-p}},parserOpts:{mergePattern:/'Merge branch'/,issuePrefixes:["#","[A-Z]{1,6}-"]}}},a={git:{requireBranch:"master",requireUpstream:!0,requireCommits:!0,requireCleanWorkingDir:!0,addUntrackedFiles:!1,commitMessage:"chore(release): ${version}",tag:!0,tagName:"v${version}",push:!0},hooks:{"before:init":`git fetch --quiet && git merge-base --is-ancestor @{u} HEAD || { echo '\u274C \u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0440\u0435\u043F\u043E\u0437\u0438\u0442\u043E\u0440\u0438\u044F \u043D\u0435 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E, \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u0435 "git pull".'; exit 1; }`},npm:{publish:!1},plugins:C};
@@ -1 +1,2 @@
1
- var e={"@release-it/conventional-changelog":{preset:{name:"conventionalcommits",types:[{type:"feat",section:"\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u043E"},{type:"fix",section:"\u0418\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043E"},{type:"chore",section:"\u041F\u0440\u043E\u0447\u0435\u0435"},{type:"refactor",section:"\u0420\u0435\u0444\u0430\u043A\u0442\u043E\u0440\u0438\u043D\u0433"},{type:"build",section:"\u0421\u0431\u043E\u0440\u043A\u0430"},{type:"docs",section:"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u044F"},{type:"ci",section:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 CI/CD"},{type:"perf",section:"\u0423\u043B\u0443\u0447\u0448\u0435\u043D\u0438\u0435 \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438"},{type:"test",section:"\u041F\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u0442\u0435\u0441\u0442\u0430\u043C\u0438"},{type:"style",section:"\u0423\u043B\u0443\u0447\u0448\u0435\u043D\u0438\u0435 \u0447\u0438\u0442\u0430\u0435\u043C\u043E\u0441\u0442\u0438 \u043A\u043E\u0434\u0430"}]},infile:"CHANGELOG.md",header:"# \u0418\u0441\u0442\u043E\u0440\u0438\u044F \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0439",writerOpts:{groupBy:"type"},parserOpts:{mergePattern:/'Merge branch'/}}},t={git:{requireBranch:"master",requireUpstream:!0,requireCommits:!0,requireCleanWorkingDir:!0,addUntrackedFiles:!1,commitMessage:"chore(release): ${version}",tag:!0,tagName:"v${version}",push:!0},hooks:{"before:init":`git fetch --quiet && git merge-base --is-ancestor @{u} HEAD || { echo '\u274C \u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0440\u0435\u043F\u043E\u0437\u0438\u0442\u043E\u0440\u0438\u044F \u043D\u0435 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E, \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u0435 "git pull".'; exit 1; }`},npm:{publish:!1},plugins:e};export{t as releaseItConfig};
1
+ var o={feat:"\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u043E",fix:"\u0418\u0441\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u043E",refactor:"\u0420\u0435\u0444\u0430\u043A\u0442\u043E\u0440\u0438\u043D\u0433",docs:"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u044F",test:"\u0422\u0435\u0441\u0442\u044B",build:"\u0421\u0431\u043E\u0440\u043A\u0430",perf:"\u041F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ci:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 CI/CD",style:"\u0423\u043B\u0443\u0447\u0448\u0435\u043D\u0438\u0435 \u0447\u0438\u0442\u0430\u0435\u043C\u043E\u0441\u0442\u0438 \u043A\u043E\u0434\u0430",chore:"\u041E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435"};var f={"@release-it/conventional-changelog":{preset:{name:"conventionalcommits"},infile:"CHANGELOG.md",header:"# \u0418\u0441\u0442\u043E\u0440\u0438\u044F \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0439",writerOpts:{groupBy:"type",transform:e=>{if(!e.body&&!e.subject)return!1;let t=o[e.type]||o.chore,r=(e?.hash||"").substring(0,7);return{...e,shortHash:r,type:t}},commitPartial:`-{{#if scope}} **{{scope}}:**{{/if}} {{#if body}}{{body}}{{else}}{{subject}}{{/if}}{{#if hash}} [[{{shortHash}}]({{@root.repoUrl}}/{{@root.owner}}/{{@root.repository}}/commit/{{hash}})]{{/if}}{{#each references}} [[{{prefix}}{{issue}}](https://youtrack.ubic.tech/issue/{{prefix}}{{issue}})]{{/each}}
2
+ `,commitGroupsSort:(e,t)=>{if(typeof e.title!="string"||typeof t.title!="string")return 0;let r=Object.values(o),i=r.indexOf(e.title),s=r.indexOf(t.title),n=i!==-1?i:Number.MAX_SAFE_INTEGER,a=s!==-1?s:Number.MAX_SAFE_INTEGER;return n-a}},parserOpts:{mergePattern:/'Merge branch'/,issuePrefixes:["#","[A-Z]{1,6}-"]}}},p={git:{requireBranch:"master",requireUpstream:!0,requireCommits:!0,requireCleanWorkingDir:!0,addUntrackedFiles:!1,commitMessage:"chore(release): ${version}",tag:!0,tagName:"v${version}",push:!0},hooks:{"before:init":`git fetch --quiet && git merge-base --is-ancestor @{u} HEAD || { echo '\u274C \u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0440\u0435\u043F\u043E\u0437\u0438\u0442\u043E\u0440\u0438\u044F \u043D\u0435 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E, \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u0435 "git pull".'; exit 1; }`},npm:{publish:!1},plugins:f};export{p as releaseItConfig};
@@ -1,14 +1,14 @@
1
1
  // Generated by dts-bundle-generator v9.5.1
2
2
 
3
3
  import { Options as WriterOptions } from 'conventional-changelog-writer';
4
- import { ParserOptions } from 'conventional-commits-parser';
4
+ import { Options as ParserOptions } from 'conventional-commits-parser';
5
5
  import { Config as ReleaseItConfig } from 'release-it';
6
6
 
7
7
  export declare const releaseItConfig: ReleaseItConfig;
8
8
  export interface ConventionalCommitsPluginOptions {
9
9
  preset?: {
10
10
  name: string;
11
- types: {
11
+ types?: {
12
12
  type: string;
13
13
  section: string;
14
14
  }[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ubic/release-it-config",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Standard release-it config for projects in ubic technologies",
5
5
  "repository": {
6
6
  "type": "git",