@jeromefitz/semantic 11.1.7 → 11.1.9-canary.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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021-2023 Nice Group of People, LLC
3
+ Copyright (c) 2021-2026 Nice Group of People, LLC
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -0,0 +1 @@
1
+ import"node:module";Object.create,Object.defineProperty,Object.getOwnPropertyDescriptor,Object.getOwnPropertyNames,Object.getPrototypeOf,Object.prototype.hasOwnProperty;export{};
@@ -0,0 +1,2 @@
1
+ import{parserOpts as e,releaseRules as t,writerOpts as n}from"@jeromefitz/conventional-gitmoji";const r=(e=[])=>[`@semantic-release/commit-analyzer`,{config:`@jeromefitz/conventional-gitmoji`,releaseRules:[...t,...e]}],i=e=>[`@semantic-release/git`,{assets:typeof e.gitAssets==`boolean`?!1:[`package.json`].concat(e.gitAssets?e.gitAssets:[]).filter(e=>e),message:e.message?e.message:"🔖️ `${nextRelease.gitTag}` [skip ci] \n\n${nextRelease.notes}"}],a=(e={})=>{let t=e&&Object.values(e).filter(e=>e!==void 0).length===0;if(!e||t)return[`@semantic-release/github`,{addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1}];let{githubAssets:n,...r}=e;return[`@semantic-release/github`,{addReleases:!1,assets:n,labels:!1,releasedLabels:!1,successComment:!1,...r}]},o=e=>!e||typeof e.pkgRoot!=`string`&&typeof e.npmPublish!=`boolean`&&e.tarballDir===void 0?`@semantic-release/npm`:[`@semantic-release/npm`,{...e}],s=t=>{let s={enableGit:!1,enableGithub:!0,enableNpm:!0,enableReleaseNotes:!1,enableReleaseNotesCustom:!0,pkgRoot:`./dist`,...t},c=[`@semantic-release/release-notes-generator`,{config:`@jeromefitz/conventional-gitmoji`,parserOpts:e,writerOpts:n}],l=[`@jeromefitz/release-notes-generator`,{config:`@jeromefitz/conventional-gitmoji`}],{npmPublish:u,pkgRoot:d,tarballDir:f}=s,p=o({npmPublish:u,pkgRoot:d,tarballDir:f}),{addReleases:m,assignees:h,failComment:g,failTitle:_,githubApiPathPrefix:v,githubAssets:y,githubUrl:b,labels:x,proxy:S,releasedLabels:C}=s,w=a({addReleases:m,assignees:h,failComment:g,failTitle:_,githubApiPathPrefix:v,githubAssets:y,githubUrl:b,labels:x,proxy:S,releasedLabels:C}),T=i(s);return[r(s.releaseRules),s.enableReleaseNotes?c:``,s.enableReleaseNotesCustom?l:``,s.enableNpm?p:``,s.enableGithub?w:``,s.enableGit?T:``].filter(e=>!!e)},c=(e={})=>({branches:[{name:`main`},{name:`canary`,prerelease:`canary`}],extends:[`semantic-release-commit-filter`],plugins:s(e),tagFormat:"v${version}",...e});export{s as n,c as t};
2
+ //# sourceMappingURL=getConfig-BPDDTk71.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getConfig-BPDDTk71.mjs","names":["releaseRules","releaseRulesDefault"],"sources":["../src/plugins/commitAnalyzer.ts","../src/plugins/git.ts","../src/plugins/github.ts","../src/plugins/npm.ts","../src/plugins/pluginOptions.ts","../src/getConfig.ts"],"sourcesContent":["import type { IReleaseRule } from '@jeromefitz/conventional-gitmoji'\n\nimport type { PluginSpec } from 'semantic-release'\n\nimport { releaseRules as releaseRulesDefault } from '@jeromefitz/conventional-gitmoji'\n\nconst commitAnalyzer = (releaseRulesPassed: IReleaseRule[] = []): PluginSpec => {\n const releaseRules = [...releaseRulesDefault, ...releaseRulesPassed]\n\n return [\n '@semantic-release/commit-analyzer',\n {\n config: '@jeromefitz/conventional-gitmoji',\n releaseRules,\n },\n ]\n}\n\nexport { commitAnalyzer }\n","import type { PluginSpec } from 'semantic-release'\n\nimport type { GitPluginOptions } from './git.types.js'\n\n/**\n * @note\n *\n * This will modify `package.json` use with caution\n * Most times you will skip this package and only use NPM publishing\n *\n */\nconst git = (options: GitPluginOptions): PluginSpec => {\n return [\n '@semantic-release/git',\n {\n assets:\n typeof options.gitAssets === 'boolean'\n ? false\n : ['package.json']\n // biome-ignore lint/complexity/noExtraBooleanCast: migrate\n .concat(!!options.gitAssets ? options.gitAssets : [])\n .filter((a) => a),\n message: options.message\n ? options.message\n : // biome-ignore lint/suspicious/noTemplateCurlyInString: migrate\n '🔖️ `${nextRelease.gitTag}` [skip ci] \\n\\n${nextRelease.notes}',\n },\n ]\n}\n\nexport { git }\n","import type { PluginSpec } from 'semantic-release'\n\nimport type { GithubPluginOptions } from './github.types.js'\n\nconst github = (options: GithubPluginOptions = {}): PluginSpec => {\n const optionsEmpty =\n options &&\n Object.values(options).filter((i) => typeof i !== 'undefined').length === 0\n\n if (!options || optionsEmpty)\n return [\n '@semantic-release/github',\n {\n // @note(github) ensure someone has to override to put these on, haha\n addReleases: false,\n labels: false,\n releasedLabels: false,\n successComment: false,\n },\n ]\n\n const { githubAssets, ...config } = options\n return [\n '@semantic-release/github',\n {\n // @note(github) ensure someone has to override to put these on, haha\n addReleases: false,\n assets: githubAssets,\n labels: false,\n releasedLabels: false,\n successComment: false,\n ...config,\n },\n ]\n}\n\nexport { github }\n","import type { PluginSpec } from 'semantic-release'\n\nimport type { NPMPluginOptions } from './npm.types.js'\n\nconst npm = (options?: NPMPluginOptions): PluginSpec => {\n if (\n !options ||\n (typeof options.pkgRoot !== 'string' &&\n typeof options.npmPublish !== 'boolean' &&\n typeof options.tarballDir === 'undefined')\n )\n return '@semantic-release/npm'\n\n return [\n '@semantic-release/npm',\n {\n // npmPublish: true,\n // tarballDir: 'release',\n // @note this may be oddly expensive\n // @ref https://prateeksurana.me/blog/why-using-object-spread-with-reduce-bad-idea/\n ...options,\n },\n ]\n}\n\nexport { npm }\n","import type { PluginSpec } from 'semantic-release'\n\nimport type { PluginOptions } from './pluginOptions.types.js'\n\nimport { parserOpts, writerOpts } from '@jeromefitz/conventional-gitmoji'\n\nimport { commitAnalyzer, git, github, npm } from './index.js'\n\nconst getPluginOptions = (optionsPassed?: PluginOptions): PluginSpec[] => {\n const optionsDefault = {\n /**\n * @note Will only load the plugin if set to true\n */\n enableGit: false,\n enableGithub: true,\n enableNpm: true,\n enableReleaseNotes: false,\n enableReleaseNotesCustom: true,\n /**\n * @note Customized defaults\n */\n pkgRoot: './dist',\n // tarballDir: 'release',\n }\n\n /**\n * @todo(types) any\n */\n const options: any | PluginOptions = {\n ...optionsDefault,\n ...optionsPassed,\n }\n\n const releaseNotesConfig = [\n '@semantic-release/release-notes-generator',\n {\n config: '@jeromefitz/conventional-gitmoji',\n parserOpts,\n writerOpts,\n },\n ]\n const releaseNotesCustomConfig = [\n '@jeromefitz/release-notes-generator',\n {\n config: '@jeromefitz/conventional-gitmoji',\n },\n ]\n\n const { npmPublish, pkgRoot, tarballDir } = options\n const npmConfig = npm({ npmPublish, pkgRoot, tarballDir })\n\n const {\n addReleases,\n assignees,\n failComment,\n failTitle,\n githubApiPathPrefix,\n githubAssets,\n githubUrl,\n labels,\n proxy,\n releasedLabels,\n } = options\n const githubConfig = github({\n addReleases,\n assignees,\n failComment,\n failTitle,\n githubApiPathPrefix,\n githubAssets,\n githubUrl,\n labels,\n proxy,\n releasedLabels,\n })\n\n const gitConfig = git(options)\n\n const _plugins: any = [\n commitAnalyzer(options.releaseRules),\n options.enableReleaseNotes ? releaseNotesConfig : '',\n options.enableReleaseNotesCustom ? releaseNotesCustomConfig : '',\n options.enableNpm ? npmConfig : '',\n options.enableGithub ? githubConfig : '',\n options.enableGit ? gitConfig : '',\n ]\n\n const plugins: PluginSpec[] = _plugins.filter((plugin) => !!plugin)\n\n return plugins\n}\n\nexport { getPluginOptions }\n","import type { Options as SemanticReleaseOptions } from 'semantic-release'\n\nimport { getPluginOptions } from './plugins/index.js'\n\n/**\n * @todo\n * - config type\n * - - merge = with defaults\n * - - override = takeover completely\n *\n */\nconst getConfig = (configPassed = {}): SemanticReleaseOptions => {\n const plugins = getPluginOptions(configPassed)\n // const configInit: SemanticReleaseOptions = {\n const configInit: any = {\n branches: [{ name: 'main' }, { name: 'canary', prerelease: 'canary' }],\n extends: ['semantic-release-commit-filter'],\n plugins,\n tagFormat: `v\\${version}`,\n }\n\n const config: SemanticReleaseOptions = {\n ...configInit,\n ...configPassed,\n }\n\n return config\n}\n\nexport { getConfig }\n"],"mappings":"gGAMA,MAAM,GAAkB,EAAqC,EAAE,GAGtD,CACL,oCACA,CACE,OAAQ,mCACR,aANiB,CAAC,GAAGC,EAAqB,GAAG,EAAmB,CAOjE,CACF,CCJG,EAAO,GACJ,CACL,wBACA,CACE,OACE,OAAO,EAAQ,WAAc,UACzB,GACA,CAAC,eAAe,CAEb,OAAS,EAAQ,UAAY,EAAQ,UAAY,EAAE,CAAC,CACpD,OAAQ,GAAM,EAAE,CACzB,QAAS,EAAQ,QACb,EAAQ,QAER,iEACL,CACF,CCvBG,GAAU,EAA+B,EAAE,GAAiB,CAChE,IAAM,EACJ,GACA,OAAO,OAAO,EAAQ,CAAC,OAAQ,GAAa,IAAM,OAAY,CAAC,SAAW,EAE5E,GAAI,CAAC,GAAW,EACd,MAAO,CACL,2BACA,CAEE,YAAa,GACb,OAAQ,GACR,eAAgB,GAChB,eAAgB,GACjB,CACF,CAEH,GAAM,CAAE,eAAc,GAAG,GAAW,EACpC,MAAO,CACL,2BACA,CAEE,YAAa,GACb,OAAQ,EACR,OAAQ,GACR,eAAgB,GAChB,eAAgB,GAChB,GAAG,EACJ,CACF,EC7BG,EAAO,GAET,CAAC,GACA,OAAO,EAAQ,SAAY,UAC1B,OAAO,EAAQ,YAAe,WACvB,EAAQ,aAAe,OAEzB,wBAEF,CACL,wBACA,CAKE,GAAG,EACJ,CACF,CCdG,EAAoB,GAAgD,CAoBxE,IAAM,EAA+B,CAfnC,UAAW,GACX,aAAc,GACd,UAAW,GACX,mBAAoB,GACpB,yBAA0B,GAI1B,QAAS,SAST,GAAG,EACJ,CAEK,EAAqB,CACzB,4CACA,CACE,OAAQ,mCACR,aACA,aACD,CACF,CACK,EAA2B,CAC/B,sCACA,CACE,OAAQ,mCACT,CACF,CAEK,CAAE,aAAY,UAAS,cAAe,EACtC,EAAY,EAAI,CAAE,aAAY,UAAS,aAAY,CAAC,CAEpD,CACJ,cACA,YACA,cACA,YACA,sBACA,eACA,YACA,SACA,QACA,kBACE,EACE,EAAe,EAAO,CAC1B,cACA,YACA,cACA,YACA,sBACA,eACA,YACA,SACA,QACA,iBACD,CAAC,CAEI,EAAY,EAAI,EAAQ,CAa9B,MAXsB,CACpB,EAAe,EAAQ,aAAa,CACpC,EAAQ,mBAAqB,EAAqB,GAClD,EAAQ,yBAA2B,EAA2B,GAC9D,EAAQ,UAAY,EAAY,GAChC,EAAQ,aAAe,EAAe,GACtC,EAAQ,UAAY,EAAY,GACjC,CAEsC,OAAQ,GAAW,CAAC,CAAC,EAAO,EC5E/D,GAAa,EAAe,EAAE,IAUK,CANrC,SAAU,CAAC,CAAE,KAAM,OAAQ,CAAE,CAAE,KAAM,SAAU,WAAY,SAAU,CAAC,CACtE,QAAS,CAAC,iCAAiC,CAC3C,QALc,EAAiB,EAAa,CAM5C,UAAW,cAKX,GAAG,EACJ"}
@@ -1,5 +1,6 @@
1
- import { Options } from 'semantic-release';
1
+ import { Options } from "semantic-release";
2
2
 
3
+ //#region src/getConfig.d.ts
3
4
  /**
4
5
  * @todo
5
6
  * - config type
@@ -8,5 +9,6 @@ import { Options } from 'semantic-release';
8
9
  *
9
10
  */
10
11
  declare const getConfig: (configPassed?: {}) => Options;
11
-
12
+ //#endregion
12
13
  export { getConfig };
14
+ //# sourceMappingURL=getConfig.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getConfig.d.mts","names":[],"sources":["../src/getConfig.ts"],"mappings":";;;;;;AAAyE;;;;cAWnE,SAAA,GAAa,YAAA,UAAoB,OAAA"}
package/getConfig.mjs ADDED
@@ -0,0 +1 @@
1
+ import"./chunk-pm2C21R4.mjs";import{t as e}from"./getConfig-BPDDTk71.mjs";export{e as getConfig};
package/index.d.mts ADDED
@@ -0,0 +1,76 @@
1
+ import { getConfig } from "./getConfig.mjs";
2
+ import { ICommit, IReleaseRule } from "@jeromefitz/conventional-gitmoji";
3
+ import { Options, PluginSpec, Release } from "semantic-release";
4
+
5
+ //#region src/plugins/commitAnalyzer.types.d.ts
6
+ interface ReleaseRule {
7
+ release: Release['type'];
8
+ type: ICommit;
9
+ }
10
+ //#endregion
11
+ //#region src/plugins/git.types.d.ts
12
+ interface GitPluginOptions {
13
+ gitAssets?: false | string[];
14
+ message?: string;
15
+ }
16
+ //#endregion
17
+ //#region src/plugins/github.types.d.ts
18
+ interface GithubPluginOptions {
19
+ addReleases?: boolean;
20
+ assignees?: string[];
21
+ failComment?: string;
22
+ failTitle?: string;
23
+ githubApiPathPrefix?: string;
24
+ githubAssets?: string[];
25
+ githubUrl?: string;
26
+ labels?: string[];
27
+ proxy?: string;
28
+ releasedLabels?: string[];
29
+ successComment?: string;
30
+ }
31
+ //#endregion
32
+ //#region src/plugins/npm.types.d.ts
33
+ interface NPMPluginOptions {
34
+ npmPublish?: boolean;
35
+ pkgRoot?: string;
36
+ tarballDir?: false | string;
37
+ }
38
+ //#endregion
39
+ //#region src/plugins/pluginOptions.types.d.ts
40
+ interface PluginOptions extends GithubPluginOptions, GitPluginOptions, NPMPluginOptions {
41
+ enableGit?: boolean;
42
+ enableGithub?: boolean;
43
+ enableNpm?: boolean;
44
+ enableReleaseNotes?: boolean;
45
+ enableReleaseNotesCustom?: boolean;
46
+ releaseRules?: any;
47
+ }
48
+ //#endregion
49
+ //#region src/plugins/commitAnalyzer.d.ts
50
+ declare const commitAnalyzer: (releaseRulesPassed?: IReleaseRule[]) => PluginSpec;
51
+ //#endregion
52
+ //#region src/plugins/git.d.ts
53
+ /**
54
+ * @note
55
+ *
56
+ * This will modify `package.json` use with caution
57
+ * Most times you will skip this package and only use NPM publishing
58
+ *
59
+ */
60
+ declare const git: (options: GitPluginOptions) => PluginSpec;
61
+ //#endregion
62
+ //#region src/plugins/github.d.ts
63
+ declare const github: (options?: GithubPluginOptions) => PluginSpec;
64
+ //#endregion
65
+ //#region src/plugins/npm.d.ts
66
+ declare const npm: (options?: NPMPluginOptions) => PluginSpec;
67
+ //#endregion
68
+ //#region src/plugins/pluginOptions.d.ts
69
+ declare const getPluginOptions: (optionsPassed?: PluginOptions) => PluginSpec[];
70
+ //#endregion
71
+ //#region src/index.d.ts
72
+ declare const plugins: Options;
73
+ declare const config: Options;
74
+ //#endregion
75
+ export { config, getConfig, getPluginOptions, plugins };
76
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/plugins/commitAnalyzer.types.ts","../src/plugins/git.types.ts","../src/plugins/github.types.ts","../src/plugins/npm.types.ts","../src/plugins/pluginOptions.types.ts","../src/plugins/commitAnalyzer.ts","../src/plugins/git.ts","../src/plugins/github.ts","../src/plugins/npm.ts","../src/plugins/pluginOptions.ts","../src/index.ts"],"mappings":";;;;;UAIU,WAAA;EACR,OAAA,EAAS,OAAA;EACT,IAAA,EAAM,OAAA;AAAA;;;UCNE,gBAAA;EACR,SAAA;EACA,OAAA;AAAA;;;UCFQ,mBAAA;EACR,WAAA;EACA,SAAA;EACA,WAAA;EACA,SAAA;EACA,mBAAA;EACA,YAAA;EACA,SAAA;EACA,MAAA;EACA,KAAA;EACA,cAAA;EACA,cAAA;AAAA;;;UCXQ,gBAAA;EACR,UAAA;EACA,OAAA;EACA,UAAA;AAAA;;;UCIQ,aAAA,SACA,mBAAA,EACN,gBAAA,EACA,gBAAA;EACF,SAAA;EACA,YAAA;EACA,SAAA;EACA,kBAAA;EACA,wBAAA;EAEA,YAAA;AAAA;;;cCXI,cAAA,GAAkB,kBAAA,GAAoB,YAAA,OAAsB,UAAA;;;;;;;ALJnB;;;cMSzC,GAAA,GAAO,OAAA,EAAS,gBAAA,KAAmB,UAAA;;;cCPnC,MAAA,GAAU,OAAA,GAAS,mBAAA,KAA2B,UAAA;;;cCA9C,GAAA,GAAO,OAAA,GAAU,gBAAA,KAAmB,UAAA;;;cCIpC,gBAAA,GAAoB,aAAA,GAAgB,aAAA,KAAgB,UAAA;;;cCHpD,OAAA,EAAS,OAAA;AAAA,cACT,MAAA,EAAM,OAAA"}
package/index.mjs ADDED
@@ -0,0 +1,2 @@
1
+ import"./chunk-pm2C21R4.mjs";import{n as e,t}from"./getConfig-BPDDTk71.mjs";const n=e(),r=t();export{r as config,t as getConfig,e as getPluginOptions,n as plugins};
2
+ //# sourceMappingURL=index.mjs.map
package/index.mjs.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import type { Options } from 'semantic-release'\n\nimport { getConfig } from './getConfig.js'\nimport { getPluginOptions } from './plugins/index.js'\n\nconst plugins: Options = getPluginOptions()\nconst config = getConfig()\n\nexport { config, getConfig, getPluginOptions, plugins }\n"],"mappings":"4EAKA,MAAM,EAAmB,GAAkB,CACrC,EAAS,GAAW"}
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "@jeromefitz/semantic",
3
- "version": "11.1.7",
3
+ "version": "11.1.9-canary.1",
4
4
  "type": "module",
5
5
  "description": "Semantic Versioning, Conventional Commits with CI/CD for GitHub Actions.",
6
- "repository": "jeromefitz/packages.git",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/JeromeFitz/packages"
9
+ },
7
10
  "author": {
8
11
  "name": "Jerome Fitzgerald",
9
12
  "email": "j@jeromefitzgerald.com",
@@ -12,22 +15,22 @@
12
15
  "license": "MIT",
13
16
  "private": false,
14
17
  "engines": {
15
- "node": ">=20"
18
+ "node": ">=24"
16
19
  },
17
20
  "exports": {
18
- "types": "./index.d.ts",
19
- "default": "./index.js"
21
+ ".": "./index.mjs",
22
+ "./getConfig": "./dist/getConfig.mjs",
23
+ "./release.config": "./dist/release.config.mjs",
24
+ "./package.json": "./package.json"
20
25
  },
21
26
  "scripts": {
22
- "build": "tsup",
27
+ "build": "tsdown",
23
28
  "clean": "rm -rf .turbo && rm -rf dist",
24
29
  "clean:install": "pnpm run clean && rm -rf node_modules",
25
30
  "copy": "mkdir -p ./dist && ./scripts/copy.sh",
26
- "dev": "tsup --watch",
27
- "format:lint": "pnpm run lint:eslint --fix && pnpm run format:prettier --write",
28
- "format:prettier": "prettier \"./src/**/*.{cjs,js,jsx,mjs,ts,tsx,json,md,mdx,css,html,yml,yaml,scss}\" --ignore-unknown --log-level warn",
29
- "lint": "pnpm run format:prettier --check && pnpm run lint:eslint",
30
- "lint:eslint": "eslint ./src --max-warnings=0",
31
+ "dev": "tsdown --watch",
32
+ "lint": "pnpm run lint:typescript",
33
+ "lint:typescript": "tsc --noEmit --declaration",
31
34
  "semantic-release": "semantic-release",
32
35
  "semantic-release:dry": "semantic-release --dry-run"
33
36
  },
@@ -37,7 +40,7 @@
37
40
  "dependencies": {
38
41
  "@semantic-release/commit-analyzer": "13.0.1",
39
42
  "@semantic-release/git": "10.0.1",
40
- "semantic-release": "24.2.6",
43
+ "semantic-release": "25.0.3",
41
44
  "semantic-release-commit-filter": "1.0.2",
42
45
  "title": "4.0.1"
43
46
  },
@@ -45,7 +48,8 @@
45
48
  "@jeromefitz/conventional-gitmoji": "workspace:*"
46
49
  },
47
50
  "publishConfig": {
48
- "registry": "https://registry.npmjs.org/"
51
+ "registry": "https://registry.npmjs.org/",
52
+ "provenance": true
49
53
  },
50
54
  "sideEffects": false
51
55
  }
@@ -0,0 +1,7 @@
1
+ import * as semantic_release0 from "semantic-release";
2
+
3
+ //#region src/release.config.d.ts
4
+ declare const config: semantic_release0.Options;
5
+ //#endregion
6
+ export { config as default };
7
+ //# sourceMappingURL=release.config.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"release.config.d.mts","names":[],"sources":["../src/release.config.ts"],"mappings":";;;cAEM,MAAA,EAAoB,iBAAA,CAAd,OAAA"}
@@ -0,0 +1,2 @@
1
+ import"./chunk-pm2C21R4.mjs";import{t as e}from"./getConfig-BPDDTk71.mjs";const t=e();export{t as default};
2
+ //# sourceMappingURL=release.config.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"release.config.mjs","names":[],"sources":["../src/release.config.ts"],"sourcesContent":["import { getConfig } from './getConfig.js'\n\nconst config = getConfig()\n\nexport default config\n"],"mappings":"0EAEA,MAAM,EAAS,GAAW"}
package/getConfig.js DELETED
@@ -1 +0,0 @@
1
- import{releaseRules as z}from"@jeromefitz/conventional-gitmoji";var o=(e=[])=>["@semantic-release/commit-analyzer",{config:"@jeromefitz/conventional-gitmoji",releaseRules:[...z,...e]}];var l=e=>["@semantic-release/git",{assets:typeof e.gitAssets=="boolean"?!1:["package.json"].concat(e.gitAssets?e.gitAssets:[]).filter(s=>s),message:e.message?e.message:"\u{1F516}\uFE0F `${nextRelease.gitTag}` [skip ci] \n\n${nextRelease.notes}"}];var a=(e={})=>{let s=e&&Object.values(e).filter(i=>typeof i<"u").length===0;if(!e||s)return["@semantic-release/github",{addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1}];let{githubAssets:t,...n}=e;return["@semantic-release/github",{addReleases:!1,assets:t,labels:!1,releasedLabels:!1,successComment:!1,...n}]};var r=e=>!e||typeof e.pkgRoot!="string"&&typeof e.npmPublish!="boolean"&&typeof e.tarballDir>"u"?"@semantic-release/npm":["@semantic-release/npm",{...e}];import{parserOpts as A,writerOpts as G}from"@jeromefitz/conventional-gitmoji";var p=e=>{let t={...{enableGit:!1,enableGithub:!0,enableNpm:!0,enableReleaseNotes:!1,enableReleaseNotesCustom:!0,pkgRoot:"./dist"},...e},n=["@semantic-release/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji",parserOpts:A,writerOpts:G}],i=["@jeromefitz/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji"}],{npmPublish:m,pkgRoot:g,tarballDir:u}=t,c=r({npmPublish:m,pkgRoot:g,tarballDir:u}),{addReleases:f,assignees:y,failComment:b,failTitle:P,githubApiPathPrefix:R,githubAssets:O,githubUrl:h,labels:x,proxy:j,releasedLabels:d}=t,S=a({addReleases:f,assignees:y,failComment:b,failTitle:P,githubApiPathPrefix:R,githubAssets:O,githubUrl:h,labels:x,proxy:j,releasedLabels:d}),C=l(t);return[o(t.releaseRules),t.enableReleaseNotes?n:"",t.enableReleaseNotesCustom?i:"",t.enableNpm?c:"",t.enableGithub?S:"",t.enableGit?C:""].filter(N=>!!N)};var K=(e={})=>{let s=p(e);return{...{branches:[{name:"main"},{name:"canary",prerelease:"canary"}],extends:["semantic-release-commit-filter"],plugins:s,tagFormat:"v${version}"},...e}};export{K as getConfig};
package/index.d.ts DELETED
@@ -1,43 +0,0 @@
1
- import { PluginSpec, Options } from 'semantic-release';
2
- export { getConfig } from './getConfig.js';
3
-
4
- interface GitPluginOptions {
5
- gitAssets?: false | string[];
6
- message?: string;
7
- }
8
-
9
- interface GithubPluginOptions {
10
- addReleases?: boolean;
11
- assignees?: string[];
12
- failComment?: string;
13
- failTitle?: string;
14
- githubApiPathPrefix?: string;
15
- githubAssets?: string[];
16
- githubUrl?: string;
17
- labels?: string[];
18
- proxy?: string;
19
- releasedLabels?: string[];
20
- successComment?: string;
21
- }
22
-
23
- interface NPMPluginOptions {
24
- npmPublish?: boolean;
25
- pkgRoot?: string;
26
- tarballDir?: false | string;
27
- }
28
-
29
- interface PluginOptions extends GithubPluginOptions, GitPluginOptions, NPMPluginOptions {
30
- enableGit?: boolean;
31
- enableGithub?: boolean;
32
- enableNpm?: boolean;
33
- enableReleaseNotes?: boolean;
34
- enableReleaseNotesCustom?: boolean;
35
- releaseRules?: any;
36
- }
37
-
38
- declare const getPluginOptions: (optionsPassed?: PluginOptions) => PluginSpec[];
39
-
40
- declare const plugins: Options;
41
- declare const config: Options;
42
-
43
- export { config, getPluginOptions, plugins };
package/index.js DELETED
@@ -1 +0,0 @@
1
- import{releaseRules as A}from"@jeromefitz/conventional-gitmoji";var l=(e=[])=>["@semantic-release/commit-analyzer",{config:"@jeromefitz/conventional-gitmoji",releaseRules:[...A,...e]}];var r=e=>["@semantic-release/git",{assets:typeof e.gitAssets=="boolean"?!1:["package.json"].concat(e.gitAssets?e.gitAssets:[]).filter(s=>s),message:e.message?e.message:"\u{1F516}\uFE0F `${nextRelease.gitTag}` [skip ci] \n\n${nextRelease.notes}"}];var a=(e={})=>{let s=e&&Object.values(e).filter(o=>typeof o<"u").length===0;if(!e||s)return["@semantic-release/github",{addReleases:!1,labels:!1,releasedLabels:!1,successComment:!1}];let{githubAssets:t,...i}=e;return["@semantic-release/github",{addReleases:!1,assets:t,labels:!1,releasedLabels:!1,successComment:!1,...i}]};var p=e=>!e||typeof e.pkgRoot!="string"&&typeof e.npmPublish!="boolean"&&typeof e.tarballDir>"u"?"@semantic-release/npm":["@semantic-release/npm",{...e}];import{parserOpts as G,writerOpts as v}from"@jeromefitz/conventional-gitmoji";var n=e=>{let t={...{enableGit:!1,enableGithub:!0,enableNpm:!0,enableReleaseNotes:!1,enableReleaseNotesCustom:!0,pkgRoot:"./dist"},...e},i=["@semantic-release/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji",parserOpts:G,writerOpts:v}],o=["@jeromefitz/release-notes-generator",{config:"@jeromefitz/conventional-gitmoji"}],{npmPublish:g,pkgRoot:u,tarballDir:c}=t,f=p({npmPublish:g,pkgRoot:u,tarballDir:c}),{addReleases:y,assignees:b,failComment:P,failTitle:O,githubApiPathPrefix:R,githubAssets:h,githubUrl:x,labels:j,proxy:d,releasedLabels:S}=t,C=a({addReleases:y,assignees:b,failComment:P,failTitle:O,githubApiPathPrefix:R,githubAssets:h,githubUrl:x,labels:j,proxy:d,releasedLabels:S}),N=r(t);return[l(t.releaseRules),t.enableReleaseNotes?i:"",t.enableReleaseNotesCustom?o:"",t.enableNpm?f:"",t.enableGithub?C:"",t.enableGit?N:""].filter(z=>!!z)};var m=(e={})=>{let s=n(e);return{...{branches:[{name:"main"},{name:"canary",prerelease:"canary"}],extends:["semantic-release-commit-filter"],plugins:s,tagFormat:"v${version}"},...e}};var X=n(),Y=m();export{Y as config,m as getConfig,n as getPluginOptions,X as plugins};
@@ -1,5 +0,0 @@
1
- import * as semantic_release from 'semantic-release';
2
-
3
- declare const config: semantic_release.Options;
4
-
5
- export { config as default };