@sbc-connect/nuxt-base 0.11.0 → 0.12.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/CHANGELOG.md +6 -0
- package/app/types/base-app-config.d.ts +1 -1
- package/app/types/base-plugins.d.ts +9 -0
- package/nuxt.config.ts +12 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @sbc-connect/nuxt-base
|
|
2
2
|
|
|
3
|
+
## 0.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#180](https://github.com/bcgov/connect-nuxt/pull/180) [`4e25088`](https://github.com/bcgov/connect-nuxt/commit/4e250886da973eda99044ff1c34383604b05d718) Thanks [@deetz99](https://github.com/deetz99)! - Force type resolutions via nuxt config prepare:types hook.
|
|
8
|
+
|
|
3
9
|
## 0.11.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/nuxt.config.ts
CHANGED
|
@@ -157,5 +157,17 @@ export default defineNuxtConfig({
|
|
|
157
157
|
'zod'
|
|
158
158
|
]
|
|
159
159
|
}
|
|
160
|
+
},
|
|
161
|
+
|
|
162
|
+
// Nuxt 4 tsconfig `references` context workaround for type augmentation
|
|
163
|
+
// Forces type augmentations into the correct context
|
|
164
|
+
// https://nuxt.com/docs/4.x/guide/modules/recipes-advanced#extend-typescript-config
|
|
165
|
+
// Can also force sharedReferences, nodeReferences - and nitro references using the 'nitro:prepare:types' hook
|
|
166
|
+
hooks: {
|
|
167
|
+
'prepare:types': ({ references }) => {
|
|
168
|
+
references.push(
|
|
169
|
+
{ path: resolve('./app/types/base-plugins.d.ts') }
|
|
170
|
+
)
|
|
171
|
+
}
|
|
160
172
|
}
|
|
161
173
|
})
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sbc-connect/nuxt-base",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.12.0",
|
|
5
5
|
"repository": "github:bcgov/connect-nuxt",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "./nuxt.config.ts",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"typescript": "6.0.3",
|
|
27
27
|
"vue-tsc": "3.3.1",
|
|
28
28
|
"@sbc-connect/eslint-config": "0.0.8",
|
|
29
|
-
"@sbc-connect/
|
|
30
|
-
"@sbc-connect/
|
|
29
|
+
"@sbc-connect/playwright-config": "0.2.0",
|
|
30
|
+
"@sbc-connect/vitest-config": "0.2.0"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"preinstall": "npx only-allow pnpm",
|