@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/lint-kit",
3
- "version": "201.2.0",
3
+ "version": "201.2.2",
4
4
  "private": false,
5
5
  "description": "Preset of configuration files and dependencies for linting web applications (designed for Vue.js with TypeScript)",
6
6
  "keywords": [
@@ -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
+
@@ -13,9 +13,7 @@ npm i @alexlit/config-commitlint -D
13
13
 
14
14
  ```js
15
15
  // commitlint.config.js
16
- export default {
17
- extends: ['@alexlit/config-commitlint'],
18
- };
16
+ export default { extends: ['@alexlit/config-commitlint'] };
19
17
  ```
20
18
 
21
19
  ```bash
@@ -1,3 +1 @@
1
- export default {
2
- extends: ['@commitlint/config-conventional'],
3
- };
1
+ export default { extends: ['@commitlint/config-conventional'] };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-commitlint",
3
- "version": "14.2.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.0",
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
  }
@@ -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
  "lint-staged.js"
30
31
  ],
@@ -27,6 +27,7 @@
27
27
  "main": "index.js",
28
28
  "files": [
29
29
  "README.md",
30
+ "CHANGELOG.md",
30
31
  "index.js"
31
32
  ],
32
33
  "scripts": {
@@ -24,6 +24,7 @@
24
24
  "main": "index.json",
25
25
  "files": [
26
26
  "README.md",
27
+ "CHANGELOG.md",
27
28
  "index.json"
28
29
  ],
29
30
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-npmlint",
3
- "version": "9.4.0",
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.0",
42
- "npm-package-json-lint": "^10.5.0",
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": {
@@ -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
  "plugins"
30
31
  ],
@@ -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
  "plugins"
30
31
  ],
@@ -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
- git push
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
- changelogen \
46
- --${VERSION} \
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
- if [ $CURRENT_PACKAGE_NAME != $MAIN_PACKAGE ]; then
51
- rm CHANGELOG.md
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