fg-devkit 1.24.3 → 1.24.4

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.
@@ -17,7 +17,7 @@
17
17
  "@lexical/rich-text": "0.52.0",
18
18
  "@lexical/link": "0.52.0",
19
19
  "@piwikpro/vue-piwik-pro": "2.0.0",
20
- "@sentry/vue": "11.7.0",
20
+ "@sentry/vue": "11.8.0",
21
21
  "@tanstack/vue-query": "5.104.3",
22
22
  "@types/leaflet": "1.9.22",
23
23
  "@unhead/vue": "2.0.5",
@@ -30,13 +30,13 @@
30
30
  "content-disposition-header": "0.6.0",
31
31
  "date-fns": "4.4.0",
32
32
  "element-plus": "2.14.7",
33
- "fds-vue-core": "8.11.0",
33
+ "fds-vue-core": "8.11.2",
34
34
  "imask": "7.6.1",
35
35
  "leaflet": "1.9.4",
36
36
  "lexical": "0.52.0",
37
37
  "lodash": "4.18.1",
38
38
  "lodash-es": "4.18.1",
39
- "markdown-it": "15.0.2",
39
+ "markdown-it": "15.0.3",
40
40
  "pinia": "4.1.0",
41
41
  "playwright": "1.64.1",
42
42
  "quill": "2.0.3",
@@ -67,7 +67,7 @@
67
67
  "@tsconfig/node22": "22.0.6",
68
68
  "@types/lodash-es": "4.17.12",
69
69
  "@types/node": "22.16.5",
70
- "@vitest/browser": "5.0.4",
70
+ "@vitest/browser": "5.0.5",
71
71
  "@vue/compiler-dom": "3.5.44",
72
72
  "@vue/eslint-config-standard": "8.0.1",
73
73
  "@vue/server-renderer": "3.5.44",
@@ -76,15 +76,15 @@
76
76
  "babel-eslint": "10.1.0",
77
77
  "eslint-plugin-storybook": "10.6.2",
78
78
  "globals": "15.11.0",
79
- "jsdom": "30.1.2",
80
- "sass": "1.105.1",
79
+ "jsdom": "30.1.3",
80
+ "sass": "1.105.2",
81
81
  "storybook": "10.6.2",
82
82
  "tsx": "4.23.15",
83
83
  "vega": "6.4.0",
84
84
  "vite-plugin-dts": "5.1.2",
85
85
  "vite-plugin-vue-devtools": "8.2.1",
86
86
  "vite-plugin-vue-inspector": "7.0.0",
87
- "vitest": "5.0.4",
87
+ "vitest": "5.0.5",
88
88
  "yaml": "2.9.1"
89
89
  }
90
90
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fg-devkit",
3
- "version": "1.24.3",
3
+ "version": "1.24.4",
4
4
  "description": "Shared configs, scripts, and DX tooling for Vue / TypeScript frontend repos",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -21,7 +21,7 @@
21
21
  "content-disposition-header": "0.6.0",
22
22
  "date-fns": "4.4.0",
23
23
  "dotenv": "18.0.8",
24
- "fds-vue-core": "8.11.0",
24
+ "fds-vue-core": "8.11.2",
25
25
  "pinia": "4.1.0",
26
26
  "qrcode.vue": "3.11.0",
27
27
  "vue": "3.5.44",
@@ -32,7 +32,7 @@
32
32
  "@intlify/unplugin-vue-i18n": "11.2.6",
33
33
  "@tanstack/vue-query-devtools": "6.3.3",
34
34
  "@types/node": "22.16.5",
35
- "fg-devkit": "1.24.3",
35
+ "fg-devkit": "1.24.4",
36
36
  "@vitejs/plugin-vue": "6.0.10",
37
37
  "tailwindcss": "4.3.3",
38
38
  "tsx": "4.23.15",
@@ -195,8 +195,15 @@ function assertCleanGitState() {
195
195
  }
196
196
  }
197
197
 
198
+ let gitPrefix
199
+
200
+ function repoPath(file) {
201
+ gitPrefix ??= runOrFail('git', ['rev-parse', '--show-prefix'], { capture: true }).stdout.trim()
202
+ return `${gitPrefix}${file}`
203
+ }
204
+
198
205
  function headContent(file) {
199
- const result = run('git', ['show', `HEAD:${file}`], { capture: true })
206
+ const result = run('git', ['show', `HEAD:${repoPath(file)}`], { capture: true })
200
207
  return result.status === 0 ? result.stdout : undefined
201
208
  }
202
209
 
@@ -205,11 +212,11 @@ function stageContents(contents) {
205
212
  let staged = 0
206
213
  for (const [file, content] of Object.entries(contents)) {
207
214
  if (content === undefined || content === headContent(file)) continue
208
- const sha = runOrFail('git', ['hash-object', '-w', '--stdin', `--path=${file}`], {
215
+ const sha = runOrFail('git', ['hash-object', '-w', '--stdin', `--path=${repoPath(file)}`], {
209
216
  capture: true,
210
217
  input: content,
211
218
  }).stdout.trim()
212
- runOrFail('git', ['update-index', '--add', '--cacheinfo', `100644,${sha},${file}`])
219
+ runOrFail('git', ['update-index', '--add', '--cacheinfo', `100644,${sha},${repoPath(file)}`])
213
220
  staged += 1
214
221
  }
215
222
  return staged