@zairakai/js-dev-tools 1.3.0 → 1.4.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.
@@ -14,7 +14,6 @@
14
14
  "forceConsistentCasingInFileNames": true,
15
15
  "noUnusedLocals": true,
16
16
  "noUnusedParameters": true,
17
- "exactOptionalPropertyTypes": true,
18
- "ignoreDeprecations": "5.0"
17
+ "exactOptionalPropertyTypes": true
19
18
  }
20
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zairakai/js-dev-tools",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "The unified and centralized development toolkit for JavaScript/TypeScript projects - ESLint, Prettier, Stylelint, Knip, Vitest, Git Hooks, and GitLab CI pipeline templates",
5
5
  "keywords": [
6
6
  "dev-tools",
@@ -96,12 +96,12 @@
96
96
  "eslint": "^10.0.0",
97
97
  "eslint-config-prettier": "^10.0.0",
98
98
  "eslint-plugin-vue": "^10.0.0",
99
- "globals": "^17.0.0",
99
+ "globals": "^17.5.0",
100
100
  "markdownlint-cli2": "^0.22.0",
101
- "prettier": "^3.0.0",
101
+ "prettier": "^3.8.3",
102
102
  "prettier-plugin-blade": "^2.1.0",
103
103
  "prettier-plugin-organize-imports": "^4.0.0",
104
- "stylelint": "^17.0.0",
104
+ "stylelint": "^17.8.0",
105
105
  "stylelint-config-html": "^1.1.0",
106
106
  "stylelint-config-recommended-vue": "^1.5.0",
107
107
  "stylelint-config-standard": "^40.0.0",
@@ -111,17 +111,15 @@
111
111
  "vue-eslint-parser": "^10.0.0"
112
112
  },
113
113
  "devDependencies": {
114
- "@vitest/coverage-v8": "^4.0.0",
115
- "knip": "^5.85.0",
114
+ "@vitest/coverage-v8": "^4.1.4",
115
+ "knip": "^6.4.1",
116
116
  "sort-package-json": "^3.6.1",
117
- "typescript": "^5.9.3",
118
- "vitest": "^4.0.0",
117
+ "typescript": "^6.0.3",
118
+ "vitest": "^4.1.4",
119
119
  "zod": "^4.0.0"
120
120
  },
121
121
  "peerDependencies": {
122
122
  "eslint": "^10.0.0",
123
- "prettier": "^3.0.0",
124
- "stylelint": "^17.0.0",
125
123
  "typedoc": "^0.28.0",
126
124
  "zod": "^3.0.0 || ^4.0.0"
127
125
  },
@@ -15,11 +15,10 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
15
15
  source "${SCRIPT_DIR}/config.sh"
16
16
 
17
17
  TSC_BIN="${BIN_DIR}/tsc"
18
+ VUE_TSC_BIN="${BIN_DIR}/vue-tsc"
18
19
 
19
20
  log_header "TypeScript Type Checking"
20
21
 
21
- ensure_bin "$TSC_BIN" "tsc (typescript)"
22
-
23
22
  if [[ ! -f "${PROJECT_ROOT}/tsconfig.json" ]]; then
24
23
  log_error "No tsconfig.json found at project root"
25
24
  log_info "Publish one with:"
@@ -30,12 +29,20 @@ fi
30
29
  log_info "Config: tsconfig.json"
31
30
  log_info "Mode: --noEmit (type validation only)"
32
31
 
33
- # Skip gracefully if no .ts files are found
34
- if ! has_files "${PROJECT_ROOT}/**/*.ts" && ! has_files "${PROJECT_ROOT}/**/*.tsx"; then
35
- log_info "No TypeScript files found — skipping"
32
+ # Skip gracefully if no .ts/.vue files are found
33
+ if ! has_files "${PROJECT_ROOT}/**/*.ts" && ! has_files "${PROJECT_ROOT}/**/*.tsx" && ! has_files "${PROJECT_ROOT}/**/*.vue"; then
34
+ log_info "No TypeScript or Vue files found — skipping"
36
35
  exit 0
37
36
  fi
38
37
 
39
- "$TSC_BIN" --noEmit
38
+ # Prefer vue-tsc when available (handles .vue SFC imports correctly)
39
+ if [[ -x "$VUE_TSC_BIN" ]]; then
40
+ log_info "Checker: vue-tsc (Vue SFC support)"
41
+ "$VUE_TSC_BIN" --noEmit
42
+ else
43
+ ensure_bin "$TSC_BIN" "tsc (typescript)"
44
+ log_info "Checker: tsc"
45
+ "$TSC_BIN" --noEmit
46
+ fi
40
47
 
41
48
  log_success "TypeScript type checking passed"