@anolilab/commitlint-config 2.0.0 → 3.0.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,41 @@
1
+ ## @anolilab/commitlint-config [3.0.0](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/commitlint-config@2.0.1...@anolilab/commitlint-config@3.0.0) (2023-07-18)
2
+
3
+
4
+ ### ⚠ BREAKING CHANGES
5
+
6
+ * fixing broken releases that semantic-release did create
7
+ Signed-off-by: prisis <d.bannert@anolilab.de>
8
+
9
+ ### Bug Fixes
10
+
11
+ * fixed broken releases ([d46de22](https://github.com/anolilab/javascript-style-guide/commit/d46de22a999cc09cc46f9a4d4e7682441705a861))
12
+ * update node version ([9a22309](https://github.com/anolilab/javascript-style-guide/commit/9a22309775cd2219320eed903ac3e22f66ffbe94))
13
+
14
+
15
+ ### Miscellaneous Chores
16
+
17
+ * "Update package versions in pnpm-lock.yaml" ([9c24c65](https://github.com/anolilab/javascript-style-guide/commit/9c24c6549de3f3df60fc4ca3cef3e8759da40a8e))
18
+
19
+
20
+
21
+ ### Dependencies
22
+
23
+ * **@anolilab/package-json-utils:** upgraded to 3.0.1
24
+ * **@anolilab/semantic-release-preset:** upgraded to 6.0.1
25
+
26
+ ## @anolilab/commitlint-config [2.0.1](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/commitlint-config@2.0.0...@anolilab/commitlint-config@2.0.1) (2023-07-05)
27
+
28
+
29
+ ### Bug Fixes
30
+
31
+ * Refactor async functions to use async/await and update tsconfig.json ([2a59d6e](https://github.com/anolilab/javascript-style-guide/commit/2a59d6e0d06a5a37c92b222961acbe9f17578f26))
32
+
33
+
34
+ ### Dependencies
35
+
36
+ * **@anolilab/package-json-utils:** upgraded to 2.0.1
37
+ * **@anolilab/semantic-release-preset:** upgraded to 5.0.1
38
+
1
39
  ## @anolilab/commitlint-config [2.0.0](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/commitlint-config@1.0.5...@anolilab/commitlint-config@2.0.0) (2023-07-03)
2
40
 
3
41
 
@@ -5,8 +5,8 @@ var fs = require('fs');
5
5
  var path = require('path');
6
6
  var util = require('util');
7
7
 
8
- process.env.CI&&process.exit(0);var r=util.promisify(fs.writeFile);console.log("Configuring @anolilab/commitlint-config",packageJsonUtils.projectPath,`
9
- `);var a=()=>{let o=path.join(packageJsonUtils.projectPath,"commitlint.config.js");return fs.existsSync(o)?(console.warn("\u26A0\uFE0F commitlint.config.js already exists;"),Promise.resolve()):r(o,`${packageJsonUtils.packageIsTypeModule?"export default":"module.exports ="} {
8
+ process.env.CI&&process.exit(0);var i=util.promisify(fs.writeFile);console.log("Configuring @anolilab/commitlint-config",packageJsonUtils.projectPath,`
9
+ `);var a=async()=>{let o=path.join(packageJsonUtils.projectPath,"commitlint.config.js");if(fs.existsSync(o)){console.warn("\u26A0\uFE0F commitlint.config.js already exists;");return}await i(o,`${packageJsonUtils.packageIsTypeModule?"export default":"module.exports ="} {
10
10
  extends: ["@anolilab/commitlint-config"],
11
11
  rules: {
12
12
  // overwrite rules here
@@ -14,10 +14,10 @@ process.env.CI&&process.exit(0);var r=util.promisify(fs.writeFile);console.log("
14
14
  },
15
15
  };
16
16
 
17
- `,"utf-8")},m=()=>{let o=path.join(packageJsonUtils.projectPath,".czrc");return fs.existsSync(o)?(console.warn("\u26A0\uFE0F .czrc already exists;"),Promise.resolve()):r(o,`{
17
+ `,"utf-8");},m=async()=>{let o=path.join(packageJsonUtils.projectPath,".czrc");if(fs.existsSync(o)){console.warn("\u26A0\uFE0F .czrc already exists;");return}await i(o,`{
18
18
  "path": "cz-conventional-changelog"
19
19
  }
20
20
 
21
- `,"utf-8")};(async()=>{try{await a(),await m(),console.log("\u{1F60E} Everything went well, have fun!"),process.exit(0);}catch(o){console.log("\u{1F62C} something went wrong:"),console.error(o),process.exit(1);}})();
21
+ `,"utf-8");};(async()=>{try{await a(),await m(),console.log("\u{1F60E} Everything went well, have fun!"),process.exit(0);}catch(o){console.log("\u{1F62C} something went wrong:"),console.error(o),process.exit(1);}})();
22
22
  //# sourceMappingURL=out.js.map
23
23
  //# sourceMappingURL=postinstall.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/postinstall.ts"],"names":["packageIsTypeModule","projectPath","existsSync","writeFile","join","promisify","writeFileAsync","writeCommitLintConfig","commitlintPath","writeCzrc","filePath","error"],"mappings":"AAAA,OAAS,uBAAAA,EAAqB,eAAAC,MAAmB,+BACjD,OAAS,cAAAC,EAAY,aAAAC,MAAiB,KACtC,OAAS,QAAAC,MAAY,OACrB,OAAS,aAAAC,MAAiB,OAEtB,QAAQ,IAAI,IAEZ,QAAQ,KAAK,CAAC,EAGlB,IAAMC,EAAiBD,EAAUF,CAAS,EAE1C,QAAQ,IAAI,0CAA2CF,EAAa;AAAA,CAAI,EAKxE,IAAMM,EAAwB,IAAM,CAChC,IAAMC,EAAiBJ,EAAKH,EAAa,sBAAsB,EAG/D,OAAIC,EAAWM,CAAc,GACzB,QAAQ,KAAK,oDAA0C,EAEhD,QAAQ,QAAQ,GAapBF,EAAeE,EAVN,GAAGR,EAAsB,iBAAmB,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAU/B,OAAO,CAC1D,EAKMS,EAAY,IAAM,CACpB,IAAMC,EAAWN,EAAKH,EAAa,OAAO,EAG1C,OAAIC,EAAWQ,CAAQ,GACnB,QAAQ,KAAK,qCAA2B,EAEjC,QAAQ,QAAQ,GASpBJ,EAAeI,EANN;AAAA;AAAA;AAAA;AAAA,EAMyB,OAAO,CACpD,GAGC,SAAY,CACT,GAAI,CACA,MAAMH,EAAsB,EAC5B,MAAME,EAAU,EAEhB,QAAQ,IAAI,4CAAqC,EAGjD,QAAQ,KAAK,CAAC,CAClB,OAASE,EAAP,CACE,QAAQ,IAAI,kCAA2B,EACvC,QAAQ,MAAMA,CAAK,EAGnB,QAAQ,KAAK,CAAC,CAClB,CACJ,GAAG","sourcesContent":["import { packageIsTypeModule, projectPath } from \"@anolilab/package-json-utils\";\nimport { existsSync, writeFile } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { promisify } from \"node:util\";\n\nif (process.env[\"CI\"]) {\n // eslint-disable-next-line unicorn/no-process-exit\n process.exit(0);\n}\n\nconst writeFileAsync = promisify(writeFile);\n\nconsole.log(\"Configuring @anolilab/commitlint-config\", projectPath, \"\\n\");\n\n/**\n * Writes commitlint.config.js if it doesn't exist. Warns if it exists.\n */\nconst writeCommitLintConfig = () => {\n const commitlintPath = join(projectPath, \"commitlint.config.js\");\n\n // eslint-disable-next-line security/detect-non-literal-fs-filename\n if (existsSync(commitlintPath)) {\n console.warn(\"⚠️ commitlint.config.js already exists;\");\n\n return Promise.resolve();\n }\n\n const content = `${packageIsTypeModule ? \"export default\" : \"module.exports =\"} {\n extends: [\"@anolilab/commitlint-config\"],\n rules: {\n // overwrite rules here\n // or extend rules\n },\n};\n\n`;\n\n return writeFileAsync(commitlintPath, content, \"utf-8\");\n};\n\n/**\n * Writes .czrc if it doesn't exist. Warns if it exists.\n */\nconst writeCzrc = () => {\n const filePath = join(projectPath, \".czrc\");\n\n // eslint-disable-next-line security/detect-non-literal-fs-filename\n if (existsSync(filePath)) {\n console.warn(\"⚠️ .czrc already exists;\");\n\n return Promise.resolve();\n }\n\n const content = `{\n \"path\": \"cz-conventional-changelog\"\n}\n\n`;\n\n return writeFileAsync(filePath, content, \"utf-8\");\n};\n\n// eslint-disable-next-line unicorn/prefer-top-level-await\n(async () => {\n try {\n await writeCommitLintConfig();\n await writeCzrc();\n\n console.log(\"😎 Everything went well, have fun!\");\n\n // eslint-disable-next-line unicorn/no-process-exit\n process.exit(0);\n } catch (error) {\n console.log(\"😬 something went wrong:\");\n console.error(error);\n\n // eslint-disable-next-line unicorn/no-process-exit\n process.exit(1);\n }\n})();\n"]}
1
+ {"version":3,"sources":["../src/postinstall.ts"],"names":["packageIsTypeModule","projectPath","existsSync","writeFile","join","promisify","writeFileAsync","writeCommitLintConfig","commitlintPath","writeCzrc","filePath","error"],"mappings":"AAAA,OAAS,uBAAAA,EAAqB,eAAAC,MAAmB,+BACjD,OAAS,cAAAC,EAAY,aAAAC,MAAiB,KACtC,OAAS,QAAAC,MAAY,OACrB,OAAS,aAAAC,MAAiB,OAEtB,QAAQ,IAAI,IAEZ,QAAQ,KAAK,CAAC,EAGlB,IAAMC,EAAiBD,EAAUF,CAAS,EAE1C,QAAQ,IAAI,0CAA2CF,EAAa;AAAA,CAAI,EAKxE,IAAMM,EAAwB,SAAY,CACtC,IAAMC,EAAiBJ,EAAKH,EAAa,sBAAsB,EAG/D,GAAIC,EAAWM,CAAc,EAAG,CAC5B,QAAQ,KAAK,oDAA0C,EAEvD,MACJ,CAYA,MAAMF,EAAeE,EAVL,GAAGR,EAAsB,iBAAmB,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUhC,OAAO,CACzD,EAKMS,EAAY,SAAY,CAC1B,IAAMC,EAAWN,EAAKH,EAAa,OAAO,EAG1C,GAAIC,EAAWQ,CAAQ,EAAG,CACtB,QAAQ,KAAK,qCAA2B,EAExC,MACJ,CAQA,MAAMJ,EAAeI,EANL;AAAA;AAAA;AAAA;AAAA,EAMwB,OAAO,CACnD,GAGC,SAAY,CACT,GAAI,CACA,MAAMH,EAAsB,EAC5B,MAAME,EAAU,EAEhB,QAAQ,IAAI,4CAAqC,EAGjD,QAAQ,KAAK,CAAC,CAClB,OAASE,EAAP,CACE,QAAQ,IAAI,kCAA2B,EACvC,QAAQ,MAAMA,CAAK,EAGnB,QAAQ,KAAK,CAAC,CAClB,CACJ,GAAG","sourcesContent":["import { packageIsTypeModule, projectPath } from \"@anolilab/package-json-utils\";\nimport { existsSync, writeFile } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { promisify } from \"node:util\";\n\nif (process.env[\"CI\"]) {\n // eslint-disable-next-line unicorn/no-process-exit\n process.exit(0);\n}\n\nconst writeFileAsync = promisify(writeFile);\n\nconsole.log(\"Configuring @anolilab/commitlint-config\", projectPath, \"\\n\");\n\n/**\n * Writes commitlint.config.js if it doesn't exist. Warns if it exists.\n */\nconst writeCommitLintConfig = async () => {\n const commitlintPath = join(projectPath, \"commitlint.config.js\");\n\n // eslint-disable-next-line security/detect-non-literal-fs-filename\n if (existsSync(commitlintPath)) {\n console.warn(\"⚠️ commitlint.config.js already exists;\");\n\n return;\n }\n\n const content = `${packageIsTypeModule ? \"export default\" : \"module.exports =\"} {\n extends: [\"@anolilab/commitlint-config\"],\n rules: {\n // overwrite rules here\n // or extend rules\n },\n};\n\n`;\n\n await writeFileAsync(commitlintPath, content, \"utf-8\");\n};\n\n/**\n * Writes .czrc if it doesn't exist. Warns if it exists.\n */\nconst writeCzrc = async () => {\n const filePath = join(projectPath, \".czrc\");\n\n // eslint-disable-next-line security/detect-non-literal-fs-filename\n if (existsSync(filePath)) {\n console.warn(\"⚠️ .czrc already exists;\");\n\n return;\n }\n\n const content = `{\n \"path\": \"cz-conventional-changelog\"\n}\n\n`;\n\n await writeFileAsync(filePath, content, \"utf-8\");\n};\n\n// eslint-disable-next-line unicorn/prefer-top-level-await\n(async () => {\n try {\n await writeCommitLintConfig();\n await writeCzrc();\n\n console.log(\"😎 Everything went well, have fun!\");\n\n // eslint-disable-next-line unicorn/no-process-exit\n process.exit(0);\n } catch (error) {\n console.log(\"😬 something went wrong:\");\n console.error(error);\n\n // eslint-disable-next-line unicorn/no-process-exit\n process.exit(1);\n }\n})();\n"]}
@@ -3,8 +3,8 @@ import { writeFile, existsSync } from 'fs';
3
3
  import { join } from 'path';
4
4
  import { promisify } from 'util';
5
5
 
6
- process.env.CI&&process.exit(0);var r=promisify(writeFile);console.log("Configuring @anolilab/commitlint-config",projectPath,`
7
- `);var a=()=>{let o=join(projectPath,"commitlint.config.js");return existsSync(o)?(console.warn("\u26A0\uFE0F commitlint.config.js already exists;"),Promise.resolve()):r(o,`${packageIsTypeModule?"export default":"module.exports ="} {
6
+ process.env.CI&&process.exit(0);var i=promisify(writeFile);console.log("Configuring @anolilab/commitlint-config",projectPath,`
7
+ `);var a=async()=>{let o=join(projectPath,"commitlint.config.js");if(existsSync(o)){console.warn("\u26A0\uFE0F commitlint.config.js already exists;");return}await i(o,`${packageIsTypeModule?"export default":"module.exports ="} {
8
8
  extends: ["@anolilab/commitlint-config"],
9
9
  rules: {
10
10
  // overwrite rules here
@@ -12,10 +12,10 @@ process.env.CI&&process.exit(0);var r=promisify(writeFile);console.log("Configur
12
12
  },
13
13
  };
14
14
 
15
- `,"utf-8")},m=()=>{let o=join(projectPath,".czrc");return existsSync(o)?(console.warn("\u26A0\uFE0F .czrc already exists;"),Promise.resolve()):r(o,`{
15
+ `,"utf-8");},m=async()=>{let o=join(projectPath,".czrc");if(existsSync(o)){console.warn("\u26A0\uFE0F .czrc already exists;");return}await i(o,`{
16
16
  "path": "cz-conventional-changelog"
17
17
  }
18
18
 
19
- `,"utf-8")};(async()=>{try{await a(),await m(),console.log("\u{1F60E} Everything went well, have fun!"),process.exit(0);}catch(o){console.log("\u{1F62C} something went wrong:"),console.error(o),process.exit(1);}})();
19
+ `,"utf-8");};(async()=>{try{await a(),await m(),console.log("\u{1F60E} Everything went well, have fun!"),process.exit(0);}catch(o){console.log("\u{1F62C} something went wrong:"),console.error(o),process.exit(1);}})();
20
20
  //# sourceMappingURL=out.js.map
21
21
  //# sourceMappingURL=postinstall.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/postinstall.ts"],"names":["packageIsTypeModule","projectPath","existsSync","writeFile","join","promisify","writeFileAsync","writeCommitLintConfig","commitlintPath","writeCzrc","filePath","error"],"mappings":"AAAA,OAAS,uBAAAA,EAAqB,eAAAC,MAAmB,+BACjD,OAAS,cAAAC,EAAY,aAAAC,MAAiB,KACtC,OAAS,QAAAC,MAAY,OACrB,OAAS,aAAAC,MAAiB,OAEtB,QAAQ,IAAI,IAEZ,QAAQ,KAAK,CAAC,EAGlB,IAAMC,EAAiBD,EAAUF,CAAS,EAE1C,QAAQ,IAAI,0CAA2CF,EAAa;AAAA,CAAI,EAKxE,IAAMM,EAAwB,IAAM,CAChC,IAAMC,EAAiBJ,EAAKH,EAAa,sBAAsB,EAG/D,OAAIC,EAAWM,CAAc,GACzB,QAAQ,KAAK,oDAA0C,EAEhD,QAAQ,QAAQ,GAapBF,EAAeE,EAVN,GAAGR,EAAsB,iBAAmB,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAU/B,OAAO,CAC1D,EAKMS,EAAY,IAAM,CACpB,IAAMC,EAAWN,EAAKH,EAAa,OAAO,EAG1C,OAAIC,EAAWQ,CAAQ,GACnB,QAAQ,KAAK,qCAA2B,EAEjC,QAAQ,QAAQ,GASpBJ,EAAeI,EANN;AAAA;AAAA;AAAA;AAAA,EAMyB,OAAO,CACpD,GAGC,SAAY,CACT,GAAI,CACA,MAAMH,EAAsB,EAC5B,MAAME,EAAU,EAEhB,QAAQ,IAAI,4CAAqC,EAGjD,QAAQ,KAAK,CAAC,CAClB,OAASE,EAAP,CACE,QAAQ,IAAI,kCAA2B,EACvC,QAAQ,MAAMA,CAAK,EAGnB,QAAQ,KAAK,CAAC,CAClB,CACJ,GAAG","sourcesContent":["import { packageIsTypeModule, projectPath } from \"@anolilab/package-json-utils\";\nimport { existsSync, writeFile } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { promisify } from \"node:util\";\n\nif (process.env[\"CI\"]) {\n // eslint-disable-next-line unicorn/no-process-exit\n process.exit(0);\n}\n\nconst writeFileAsync = promisify(writeFile);\n\nconsole.log(\"Configuring @anolilab/commitlint-config\", projectPath, \"\\n\");\n\n/**\n * Writes commitlint.config.js if it doesn't exist. Warns if it exists.\n */\nconst writeCommitLintConfig = () => {\n const commitlintPath = join(projectPath, \"commitlint.config.js\");\n\n // eslint-disable-next-line security/detect-non-literal-fs-filename\n if (existsSync(commitlintPath)) {\n console.warn(\"⚠️ commitlint.config.js already exists;\");\n\n return Promise.resolve();\n }\n\n const content = `${packageIsTypeModule ? \"export default\" : \"module.exports =\"} {\n extends: [\"@anolilab/commitlint-config\"],\n rules: {\n // overwrite rules here\n // or extend rules\n },\n};\n\n`;\n\n return writeFileAsync(commitlintPath, content, \"utf-8\");\n};\n\n/**\n * Writes .czrc if it doesn't exist. Warns if it exists.\n */\nconst writeCzrc = () => {\n const filePath = join(projectPath, \".czrc\");\n\n // eslint-disable-next-line security/detect-non-literal-fs-filename\n if (existsSync(filePath)) {\n console.warn(\"⚠️ .czrc already exists;\");\n\n return Promise.resolve();\n }\n\n const content = `{\n \"path\": \"cz-conventional-changelog\"\n}\n\n`;\n\n return writeFileAsync(filePath, content, \"utf-8\");\n};\n\n// eslint-disable-next-line unicorn/prefer-top-level-await\n(async () => {\n try {\n await writeCommitLintConfig();\n await writeCzrc();\n\n console.log(\"😎 Everything went well, have fun!\");\n\n // eslint-disable-next-line unicorn/no-process-exit\n process.exit(0);\n } catch (error) {\n console.log(\"😬 something went wrong:\");\n console.error(error);\n\n // eslint-disable-next-line unicorn/no-process-exit\n process.exit(1);\n }\n})();\n"]}
1
+ {"version":3,"sources":["../src/postinstall.ts"],"names":["packageIsTypeModule","projectPath","existsSync","writeFile","join","promisify","writeFileAsync","writeCommitLintConfig","commitlintPath","writeCzrc","filePath","error"],"mappings":"AAAA,OAAS,uBAAAA,EAAqB,eAAAC,MAAmB,+BACjD,OAAS,cAAAC,EAAY,aAAAC,MAAiB,KACtC,OAAS,QAAAC,MAAY,OACrB,OAAS,aAAAC,MAAiB,OAEtB,QAAQ,IAAI,IAEZ,QAAQ,KAAK,CAAC,EAGlB,IAAMC,EAAiBD,EAAUF,CAAS,EAE1C,QAAQ,IAAI,0CAA2CF,EAAa;AAAA,CAAI,EAKxE,IAAMM,EAAwB,SAAY,CACtC,IAAMC,EAAiBJ,EAAKH,EAAa,sBAAsB,EAG/D,GAAIC,EAAWM,CAAc,EAAG,CAC5B,QAAQ,KAAK,oDAA0C,EAEvD,MACJ,CAYA,MAAMF,EAAeE,EAVL,GAAGR,EAAsB,iBAAmB,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUhC,OAAO,CACzD,EAKMS,EAAY,SAAY,CAC1B,IAAMC,EAAWN,EAAKH,EAAa,OAAO,EAG1C,GAAIC,EAAWQ,CAAQ,EAAG,CACtB,QAAQ,KAAK,qCAA2B,EAExC,MACJ,CAQA,MAAMJ,EAAeI,EANL;AAAA;AAAA;AAAA;AAAA,EAMwB,OAAO,CACnD,GAGC,SAAY,CACT,GAAI,CACA,MAAMH,EAAsB,EAC5B,MAAME,EAAU,EAEhB,QAAQ,IAAI,4CAAqC,EAGjD,QAAQ,KAAK,CAAC,CAClB,OAASE,EAAP,CACE,QAAQ,IAAI,kCAA2B,EACvC,QAAQ,MAAMA,CAAK,EAGnB,QAAQ,KAAK,CAAC,CAClB,CACJ,GAAG","sourcesContent":["import { packageIsTypeModule, projectPath } from \"@anolilab/package-json-utils\";\nimport { existsSync, writeFile } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { promisify } from \"node:util\";\n\nif (process.env[\"CI\"]) {\n // eslint-disable-next-line unicorn/no-process-exit\n process.exit(0);\n}\n\nconst writeFileAsync = promisify(writeFile);\n\nconsole.log(\"Configuring @anolilab/commitlint-config\", projectPath, \"\\n\");\n\n/**\n * Writes commitlint.config.js if it doesn't exist. Warns if it exists.\n */\nconst writeCommitLintConfig = async () => {\n const commitlintPath = join(projectPath, \"commitlint.config.js\");\n\n // eslint-disable-next-line security/detect-non-literal-fs-filename\n if (existsSync(commitlintPath)) {\n console.warn(\"⚠️ commitlint.config.js already exists;\");\n\n return;\n }\n\n const content = `${packageIsTypeModule ? \"export default\" : \"module.exports =\"} {\n extends: [\"@anolilab/commitlint-config\"],\n rules: {\n // overwrite rules here\n // or extend rules\n },\n};\n\n`;\n\n await writeFileAsync(commitlintPath, content, \"utf-8\");\n};\n\n/**\n * Writes .czrc if it doesn't exist. Warns if it exists.\n */\nconst writeCzrc = async () => {\n const filePath = join(projectPath, \".czrc\");\n\n // eslint-disable-next-line security/detect-non-literal-fs-filename\n if (existsSync(filePath)) {\n console.warn(\"⚠️ .czrc already exists;\");\n\n return;\n }\n\n const content = `{\n \"path\": \"cz-conventional-changelog\"\n}\n\n`;\n\n await writeFileAsync(filePath, content, \"utf-8\");\n};\n\n// eslint-disable-next-line unicorn/prefer-top-level-await\n(async () => {\n try {\n await writeCommitLintConfig();\n await writeCzrc();\n\n console.log(\"😎 Everything went well, have fun!\");\n\n // eslint-disable-next-line unicorn/no-process-exit\n process.exit(0);\n } catch (error) {\n console.log(\"😬 something went wrong:\");\n console.error(error);\n\n // eslint-disable-next-line unicorn/no-process-exit\n process.exit(1);\n }\n})();\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anolilab/commitlint-config",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "Anolilab´s shareable coding standard config for commitlint.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -52,7 +52,7 @@
52
52
  "postinstall": "node ./skip.js || node ./dist/postinstall.js"
53
53
  },
54
54
  "dependencies": {
55
- "@anolilab/package-json-utils": "2.0.0",
55
+ "@anolilab/package-json-utils": "3.0.1",
56
56
  "@commitlint/config-conventional": "^17.6.6",
57
57
  "@commitlint/core": "^17.6.6",
58
58
  "commitizen": "^4.3.0",
@@ -60,17 +60,17 @@
60
60
  "cz-conventional-changelog": "^3.3.0"
61
61
  },
62
62
  "devDependencies": {
63
- "@anolilab/semantic-release-preset": "5.0.0",
63
+ "@anolilab/semantic-release-preset": "6.0.1",
64
64
  "@commitlint/cli": "^17.6.6",
65
65
  "rimraf": "^5.0.1",
66
66
  "tsup": "^7.1.0",
67
- "vitest": "^0.32.4"
67
+ "vitest": "^0.33.0"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "@commitlint/cli": "^17.6.5"
71
71
  },
72
72
  "engines": {
73
- "node": ">=16"
73
+ "node": ">=18"
74
74
  },
75
75
  "publishConfig": {
76
76
  "access": "public",