@anolilab/commitlint-config 3.0.4 → 3.0.6
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 +44 -0
- package/dist/postinstall.js +1 -1
- package/dist/postinstall.js.map +1 -1
- package/dist/postinstall.mjs +1 -1
- package/dist/postinstall.mjs.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,47 @@
|
|
|
1
|
+
## @anolilab/commitlint-config [3.0.6](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/commitlint-config@3.0.5...@anolilab/commitlint-config@3.0.6) (2023-09-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update dependencies ([72eabc7](https://github.com/anolilab/javascript-style-guide/commit/72eabc78c68be9778ac3e06ec4c2abb982da0636))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Styles
|
|
10
|
+
|
|
11
|
+
* cs fixes based on new rules ([b99c020](https://github.com/anolilab/javascript-style-guide/commit/b99c020b9f61f2517acd65b4d1a9f3d1f15812b1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Miscellaneous Chores
|
|
15
|
+
|
|
16
|
+
* **deps:** update dependency vitest to ^0.34.4 ([#755](https://github.com/anolilab/javascript-style-guide/issues/755)) ([3246b55](https://github.com/anolilab/javascript-style-guide/commit/3246b55702eae25cf8d95ac95bd5f9b1323b51ff))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Dependencies
|
|
21
|
+
|
|
22
|
+
* **@anolilab/semantic-release-preset:** upgraded to 6.0.6
|
|
23
|
+
|
|
24
|
+
## @anolilab/commitlint-config [3.0.5](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/commitlint-config@3.0.4...@anolilab/commitlint-config@3.0.5) (2023-08-30)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* **deps:** update dependency conventional-changelog-conventionalcommits to v7 ([#749](https://github.com/anolilab/javascript-style-guide/issues/749)) ([ca57778](https://github.com/anolilab/javascript-style-guide/commit/ca5777809d0c1087dabb1ae191c7466c086b09e9)) (reverted)
|
|
30
|
+
* fix for https://github.com/semantic-release/semantic-release/issues/2929 ([05c0392](https://github.com/anolilab/javascript-style-guide/commit/05c0392c4a564cbf556f6d5dfab46919002cad48))
|
|
31
|
+
* updated dependencies to latest versions ([509bb76](https://github.com/anolilab/javascript-style-guide/commit/509bb763780a2fa85a275d8e91cc0525cc57e29f))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Miscellaneous Chores
|
|
35
|
+
|
|
36
|
+
* **deps:** update dependency vitest to ^0.34.3 ([#739](https://github.com/anolilab/javascript-style-guide/issues/739)) ([67dd404](https://github.com/anolilab/javascript-style-guide/commit/67dd404766bceb0103f637208fc646ed40aefb16))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Dependencies
|
|
41
|
+
|
|
42
|
+
* **@anolilab/package-json-utils:** upgraded to 3.0.5
|
|
43
|
+
* **@anolilab/semantic-release-preset:** upgraded to 6.0.5
|
|
44
|
+
|
|
1
45
|
## @anolilab/commitlint-config [3.0.4](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/commitlint-config@3.0.3...@anolilab/commitlint-config@3.0.4) (2023-08-10)
|
|
2
46
|
|
|
3
47
|
|
package/dist/postinstall.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
4
3
|
var fs = require('fs');
|
|
5
4
|
var path = require('path');
|
|
6
5
|
var util = require('util');
|
|
6
|
+
var packageJsonUtils = require('@anolilab/package-json-utils');
|
|
7
7
|
|
|
8
8
|
process.env.CI&&process.exit(0);var i=util.promisify(fs.writeFile);console.log("Configuring @anolilab/commitlint-config",packageJsonUtils.projectPath,`
|
|
9
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 ="} {
|
package/dist/postinstall.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/postinstall.ts"],"names":["
|
|
1
|
+
{"version":3,"sources":["../src/postinstall.ts"],"names":["existsSync","writeFile","join","promisify","packageIsTypeModule","projectPath","writeFileAsync","writeCommitLintConfig","commitlintPath","writeCzrc","filePath","error"],"mappings":"AAAA,OAAS,cAAAA,EAAY,aAAAC,MAAiB,KACtC,OAAS,QAAAC,MAAY,OACrB,OAAS,aAAAC,MAAiB,OAE1B,OAAS,uBAAAC,EAAqB,eAAAC,MAAmB,+BAE7C,QAAQ,IAAI,IAEZ,QAAQ,KAAK,CAAC,EAGlB,IAAMC,EAAiBH,EAAUF,CAAS,EAE1C,QAAQ,IAAI,0CAA2CI,EAAa;AAAA,CAAI,EAKxE,IAAME,EAAwB,SAAY,CACtC,IAAMC,EAAiBN,EAAKG,EAAa,sBAAsB,EAG/D,GAAIL,EAAWQ,CAAc,EAAG,CAC5B,QAAQ,KAAK,oDAA0C,EAEvD,MACJ,CAYA,MAAMF,EAAeE,EAVL,GAAGJ,EAAsB,iBAAmB,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUhC,OAAO,CACzD,EAKMK,EAAY,SAAY,CAC1B,IAAMC,EAAWR,EAAKG,EAAa,OAAO,EAG1C,GAAIL,EAAWU,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 { existsSync, writeFile } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { promisify } from \"node:util\";\n\nimport { packageIsTypeModule, projectPath } from \"@anolilab/package-json-utils\";\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/dist/postinstall.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { projectPath, packageIsTypeModule } from '@anolilab/package-json-utils';
|
|
2
1
|
import { writeFile, existsSync } from 'fs';
|
|
3
2
|
import { join } from 'path';
|
|
4
3
|
import { promisify } from 'util';
|
|
4
|
+
import { projectPath, packageIsTypeModule } from '@anolilab/package-json-utils';
|
|
5
5
|
|
|
6
6
|
process.env.CI&&process.exit(0);var i=promisify(writeFile);console.log("Configuring @anolilab/commitlint-config",projectPath,`
|
|
7
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 ="} {
|
package/dist/postinstall.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/postinstall.ts"],"names":["
|
|
1
|
+
{"version":3,"sources":["../src/postinstall.ts"],"names":["existsSync","writeFile","join","promisify","packageIsTypeModule","projectPath","writeFileAsync","writeCommitLintConfig","commitlintPath","writeCzrc","filePath","error"],"mappings":"AAAA,OAAS,cAAAA,EAAY,aAAAC,MAAiB,KACtC,OAAS,QAAAC,MAAY,OACrB,OAAS,aAAAC,MAAiB,OAE1B,OAAS,uBAAAC,EAAqB,eAAAC,MAAmB,+BAE7C,QAAQ,IAAI,IAEZ,QAAQ,KAAK,CAAC,EAGlB,IAAMC,EAAiBH,EAAUF,CAAS,EAE1C,QAAQ,IAAI,0CAA2CI,EAAa;AAAA,CAAI,EAKxE,IAAME,EAAwB,SAAY,CACtC,IAAMC,EAAiBN,EAAKG,EAAa,sBAAsB,EAG/D,GAAIL,EAAWQ,CAAc,EAAG,CAC5B,QAAQ,KAAK,oDAA0C,EAEvD,MACJ,CAYA,MAAMF,EAAeE,EAVL,GAAGJ,EAAsB,iBAAmB,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUhC,OAAO,CACzD,EAKMK,EAAY,SAAY,CAC1B,IAAMC,EAAWR,EAAKG,EAAa,OAAO,EAG1C,GAAIL,EAAWU,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 { existsSync, writeFile } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { promisify } from \"node:util\";\n\nimport { packageIsTypeModule, projectPath } from \"@anolilab/package-json-utils\";\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": "3.0.
|
|
3
|
+
"version": "3.0.6",
|
|
4
4
|
"description": "Anolilab´s shareable coding standard config for commitlint.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -53,19 +53,19 @@
|
|
|
53
53
|
"postinstall": "node ./skip.js || node ./dist/postinstall.js"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@anolilab/package-json-utils": "3.0.
|
|
56
|
+
"@anolilab/package-json-utils": "3.0.5",
|
|
57
57
|
"@commitlint/config-conventional": "^17.7.0",
|
|
58
58
|
"@commitlint/core": "^17.7.1",
|
|
59
59
|
"commitizen": "^4.3.0",
|
|
60
|
-
"conventional-changelog-conventionalcommits": "
|
|
60
|
+
"conventional-changelog-conventionalcommits": "6.1.0",
|
|
61
61
|
"cz-conventional-changelog": "^3.3.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@anolilab/semantic-release-preset": "6.0.
|
|
64
|
+
"@anolilab/semantic-release-preset": "6.0.6",
|
|
65
65
|
"@commitlint/cli": "^17.7.1",
|
|
66
66
|
"rimraf": "^5.0.1",
|
|
67
67
|
"tsup": "^7.2.0",
|
|
68
|
-
"vitest": "^0.34.
|
|
68
|
+
"vitest": "^0.34.4"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"@commitlint/cli": "^17.6.5"
|