@dimensional-innovations/tool-config 1.2.2 → 1.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dimensional-innovations/tool-config",
3
- "version": "1.2.2",
3
+ "version": "1.3.0",
4
4
  "description": "Universal configuration package for ESLint, Prettier, Stylelint, and semantic-release with auto-detection for React, Vue, Svelte, Solid, Astro, Angular, and more",
5
5
  "license": "MIT",
6
6
  "author": {
package/src/detectors.js CHANGED
@@ -38,7 +38,7 @@ function detectSvelteMetaFramework(deps) {
38
38
  */
39
39
  function detectBaseFramework(deps) {
40
40
  if (deps.react || deps['react-dom']) return 'react'
41
- if (deps.vue || deps['@vue/runtime-core']) return 'vue'
41
+ if (deps.vue || deps['@vue/runtime-core'] || deps['vue-router'] || deps.pinia) return 'vue'
42
42
  if (deps['@angular/core']) return 'angular'
43
43
  if (deps.svelte) return 'svelte'
44
44
  if (deps['solid-js']) return 'solid'
@@ -3,12 +3,13 @@
3
3
  *
4
4
  * Configures Prettier for Vue 3 Single File Components (.vue files)
5
5
  *
6
- * Requires: prettier-plugin-vue (optional peer dependency)
6
+ * Requires: prettier-plugin-vue and @prettier/plugin-xml (dependencies)
7
7
  */
8
8
 
9
9
  export default {
10
10
  // Use Vue plugin for .vue files
11
- plugins: ['prettier-plugin-vue'],
11
+ // XML plugin is required as a peer dependency of prettier-plugin-vue
12
+ plugins: ['prettier-plugin-vue', '@prettier/plugin-xml'],
12
13
 
13
14
  // Don't indent <script> and <style> tags
14
15
  // This keeps them aligned with <template> for consistency
@@ -59,6 +59,10 @@ test:
59
59
  # Release job - runs semantic-release on main branch
60
60
  release:
61
61
  stage: release
62
+ before_script:
63
+ # Install git (required by semantic-release)
64
+ - apk add --no-cache git
65
+ - npm ci --cache .npm --prefer-offline
62
66
  script:
63
67
  - npm run release
64
68
  only: