@anolilab/commitlint-config 1.0.4 → 2.0.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/CHANGELOG.md +34 -0
- package/dist/postinstall.js +4 -4
- package/dist/postinstall.js.map +1 -1
- package/dist/postinstall.mjs +4 -4
- package/dist/postinstall.mjs.map +1 -1
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,37 @@
|
|
|
1
|
+
## @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)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Refactor async functions to use async/await and update tsconfig.json ([2a59d6e](https://github.com/anolilab/javascript-style-guide/commit/2a59d6e0d06a5a37c92b222961acbe9f17578f26))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Dependencies
|
|
11
|
+
|
|
12
|
+
* **@anolilab/package-json-utils:** upgraded to 2.0.1
|
|
13
|
+
* **@anolilab/semantic-release-preset:** upgraded to 5.0.1
|
|
14
|
+
|
|
15
|
+
## @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)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### ⚠ BREAKING CHANGES
|
|
19
|
+
|
|
20
|
+
* Because of broken release version this needs a version bump
|
|
21
|
+
Signed-off-by: prisis <d.bannert@anolilab.de>
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* Bumping the version up, because of a broken release with semantic-releases ([a646624](https://github.com/anolilab/javascript-style-guide/commit/a646624aa3e831809aa6bacb961c6e2c777d15b1))
|
|
26
|
+
* Update dependencies version in pnpm-lock.yaml ([1f75f7b](https://github.com/anolilab/javascript-style-guide/commit/1f75f7bec8190da5ae6f2ba7e6ac249d802fabb4))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Dependencies
|
|
31
|
+
|
|
32
|
+
* **@anolilab/package-json-utils:** upgraded to 2.0.0
|
|
33
|
+
* **@anolilab/semantic-release-preset:** upgraded to 5.0.0
|
|
34
|
+
|
|
1
35
|
## @anolilab/commitlint-config [1.0.4](https://github.com/anolilab/javascript-style-guide/compare/@anolilab/commitlint-config@1.0.3...@anolilab/commitlint-config@1.0.4) (2023-06-29)
|
|
2
36
|
|
|
3
37
|
|
package/dist/postinstall.js
CHANGED
|
@@ -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
|
|
9
|
-
`);var a=()=>{let o=path.join(packageJsonUtils.projectPath,"commitlint.config.js");
|
|
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");
|
|
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
|
package/dist/postinstall.js.map
CHANGED
|
@@ -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,
|
|
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/dist/postinstall.mjs
CHANGED
|
@@ -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
|
|
7
|
-
`);var a=()=>{let o=join(projectPath,"commitlint.config.js");
|
|
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");
|
|
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
|
package/dist/postinstall.mjs.map
CHANGED
|
@@ -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,
|
|
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": "
|
|
3
|
+
"version": "2.0.1",
|
|
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": "
|
|
55
|
+
"@anolilab/package-json-utils": "2.0.1",
|
|
56
56
|
"@commitlint/config-conventional": "^17.6.6",
|
|
57
57
|
"@commitlint/core": "^17.6.6",
|
|
58
58
|
"commitizen": "^4.3.0",
|
|
@@ -60,10 +60,11 @@
|
|
|
60
60
|
"cz-conventional-changelog": "^3.3.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
+
"@anolilab/semantic-release-preset": "5.0.1",
|
|
63
64
|
"@commitlint/cli": "^17.6.6",
|
|
64
65
|
"rimraf": "^5.0.1",
|
|
65
66
|
"tsup": "^7.1.0",
|
|
66
|
-
"vitest": "^0.32.
|
|
67
|
+
"vitest": "^0.32.4"
|
|
67
68
|
},
|
|
68
69
|
"peerDependencies": {
|
|
69
70
|
"@commitlint/cli": "^17.6.5"
|