@alexlit/lint-kit 201.2.0 → 201.2.2
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/package.json +1 -1
- package/packages/config-commitlint/CHANGELOG.md +21 -0
- package/packages/config-commitlint/README.md +1 -3
- package/packages/config-commitlint/index.js +1 -3
- package/packages/config-commitlint/package.json +2 -1
- package/packages/config-eslint/package.json +6 -5
- package/packages/config-hooks/package.json +1 -0
- package/packages/config-htmllint/package.json +1 -0
- package/packages/config-markdownlint/package.json +1 -0
- package/packages/config-npmlint/package.json +4 -3
- package/packages/config-prettier/package.json +1 -0
- package/packages/config-stylelint/package.json +1 -0
- package/scripts/release.sh +4 -1
- package/scripts/semver.sh +19 -6
package/package.json
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## v14.2.5
|
|
5
|
+
|
|
6
|
+
[compare changes](https://github.com/alex-lit/lint-kit/compare/@alexlit/config-commitlint@14.2.4...v14.2.5)
|
|
7
|
+
|
|
8
|
+
## v14.2.4
|
|
9
|
+
|
|
10
|
+
[compare changes](https://github.com/alex-lit/lint-kit/compare/@alexlit/config-commitlint@14.2.3...v14.2.4)
|
|
11
|
+
|
|
12
|
+
### 🏡 Chore
|
|
13
|
+
|
|
14
|
+
- **@alexlit/config-commitlint:** Bump version ([785b4395](https://github.com/alex-lit/lint-kit/commit/785b4395))
|
|
15
|
+
- **@alexlit/config-eslint:** Bump version ([85371f81](https://github.com/alex-lit/lint-kit/commit/85371f81))
|
|
16
|
+
- **@alexlit/config-eslint:** Bump version ([f777f12e](https://github.com/alex-lit/lint-kit/commit/f777f12e))
|
|
17
|
+
|
|
18
|
+
### ❤️ Contributors
|
|
19
|
+
|
|
20
|
+
- Alexey Litovchenko ([@alex-lit](https://github.com/alex-lit))
|
|
21
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-commitlint",
|
|
3
|
-
"version": "14.2.
|
|
3
|
+
"version": "14.2.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Commitlint config",
|
|
6
6
|
"keywords": [
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"main": "index.js",
|
|
26
26
|
"files": [
|
|
27
27
|
"README.md",
|
|
28
|
+
"CHANGELOG.md",
|
|
28
29
|
"index.js"
|
|
29
30
|
],
|
|
30
31
|
"scripts": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-eslint",
|
|
3
|
-
"version": "153.2.
|
|
3
|
+
"version": "153.2.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Sharable ESLint configuration",
|
|
6
6
|
"keywords": [
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
"index.js",
|
|
29
29
|
"plugins/",
|
|
30
30
|
"presets/",
|
|
31
|
-
"README.md"
|
|
31
|
+
"README.md",
|
|
32
|
+
"CHANGELOG.md"
|
|
32
33
|
],
|
|
33
34
|
"scripts": {
|
|
34
35
|
"inspect": "npx @eslint/config-inspector@latest",
|
|
@@ -65,11 +66,11 @@
|
|
|
65
66
|
"typescript-eslint": "^8.67.0",
|
|
66
67
|
"yaml-eslint-parser": "^2.1.0"
|
|
67
68
|
},
|
|
69
|
+
"devDependencies": {
|
|
70
|
+
"tailwindcss": "^4.3.3"
|
|
71
|
+
},
|
|
68
72
|
"publishConfig": {
|
|
69
73
|
"access": "public",
|
|
70
74
|
"registry": "https://registry.npmjs.org/"
|
|
71
|
-
},
|
|
72
|
-
"devDependencies": {
|
|
73
|
-
"tailwindcss": "^4.3.3"
|
|
74
75
|
}
|
|
75
76
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-npmlint",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "npmlint config",
|
|
6
6
|
"keywords": [
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"main": "index.json",
|
|
29
29
|
"files": [
|
|
30
30
|
"README.md",
|
|
31
|
+
"CHANGELOG.md",
|
|
31
32
|
"index.json"
|
|
32
33
|
],
|
|
33
34
|
"scripts": {
|
|
@@ -38,8 +39,8 @@
|
|
|
38
39
|
"up": "../../scripts/up.sh"
|
|
39
40
|
},
|
|
40
41
|
"dependencies": {
|
|
41
|
-
"lockfile-lint": "^5.0.
|
|
42
|
-
"npm-package-json-lint": "^10.5.
|
|
42
|
+
"lockfile-lint": "^5.0.1",
|
|
43
|
+
"npm-package-json-lint": "^10.5.1",
|
|
43
44
|
"npm-package-json-lint-config-default": "^9.0.1"
|
|
44
45
|
},
|
|
45
46
|
"publishConfig": {
|
package/scripts/release.sh
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Релиз пакета (коммит в npm и git)
|
|
2
2
|
|
|
3
|
+
set -euo pipefail
|
|
4
|
+
|
|
3
5
|
source "$(dirname $0)"/../bash.config.sh
|
|
4
6
|
|
|
5
7
|
VERSION=${1:-patch} # patch | minor | major
|
|
@@ -12,7 +14,8 @@ CURRENT_PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
|
12
14
|
echo -e "${YELLOW}Релиз пакета ${GREEN}${CURRENT_PACKAGE_NAME}@${CURRENT_PACKAGE_VERSION}${YELLOW}...${WHITE}"
|
|
13
15
|
|
|
14
16
|
echo -e "${YELLOW}Коммит в ${GREEN}git${YELLOW}...${WHITE}"
|
|
15
|
-
|
|
17
|
+
# --follow-tags: пушим вместе с тегом, созданным в semver.sh
|
|
18
|
+
git push --follow-tags
|
|
16
19
|
|
|
17
20
|
echo -e "${YELLOW}Публикация в ${GREEN}registry.npmjs.org${YELLOW}...${WHITE}"
|
|
18
21
|
npm publish --no-git-checks
|
package/scripts/semver.sh
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Обновляет версию пакета
|
|
2
2
|
|
|
3
|
+
set -euo pipefail
|
|
4
|
+
|
|
3
5
|
source "$(dirname $0)"/../bash.config.sh
|
|
4
6
|
|
|
5
7
|
VERSION=patch
|
|
@@ -42,16 +44,27 @@ done
|
|
|
42
44
|
|
|
43
45
|
echo -e "${YELLOW}Поднимаю ${GREEN}${VERSION}${YELLOW} версию пакета ${GREEN}${CURRENT_PACKAGE_NAME}${YELLOW}...${WHITE}"
|
|
44
46
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
--no-commit \
|
|
48
|
-
--release
|
|
47
|
+
# Базовый тег — последний релиз ТОЛЬКО этого пакета (в монорепо git-теги глобальные)
|
|
48
|
+
LAST_PACKAGE_TAG=$(git describe --tags --abbrev=0 --match "${CURRENT_PACKAGE_NAME}@*" 2> /dev/null || true)
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
# --bump (а не --release): поднимает версию и пишет CHANGELOG.md, но НЕ делает
|
|
51
|
+
# коммит/тег/GitHub release — их делаем сами ниже, ПОСЛЕ коммита бампа
|
|
52
|
+
CHANGELOGEN_ARGS=(--${VERSION} --bump)
|
|
53
|
+
if [ -n "${LAST_PACKAGE_TAG}" ]; then
|
|
54
|
+
CHANGELOGEN_ARGS+=(--from "${LAST_PACKAGE_TAG}")
|
|
52
55
|
fi
|
|
53
56
|
|
|
57
|
+
changelogen "${CHANGELOGEN_ARGS[@]}"
|
|
58
|
+
|
|
59
|
+
NEW_PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
60
|
+
|
|
61
|
+
# CHANGELOG.md оставляем у каждого пакета: он теперь генерируется корректно
|
|
62
|
+
# (--from берётся по тегам именно этого пакета)
|
|
63
|
+
|
|
54
64
|
git add .
|
|
55
65
|
git commit -m "chore(${CURRENT_PACKAGE_NAME}): bump version"
|
|
56
66
|
|
|
67
|
+
# Тег создаём ПОСЛЕ коммита бампа, чтобы он указывал на правильный коммит
|
|
68
|
+
git tag -a "${CURRENT_PACKAGE_NAME}@${NEW_PACKAGE_VERSION}" -m "${CURRENT_PACKAGE_NAME}@${NEW_PACKAGE_VERSION}"
|
|
69
|
+
|
|
57
70
|
SAY_GOODBYE
|