fds-vue-core 4.10.1 → 4.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/README.md CHANGED
@@ -142,6 +142,23 @@ All components are fully typed. Type definitions are included in the package.
142
142
  - [Configuration Files](./CONFIG.md) - TypeScript, ESLint, Prettier, and VS Code configuration
143
143
  - [Storybook](./) - Component API documentation and examples (run `pnpm storybook`)
144
144
 
145
+ ### Local development in another project (pnpm)
146
+
147
+ When you want to test `fds-vue-core` changes in another pnpm-based project **without** publishing to npm, use a local `file:` dependency instead of `yalc`:
148
+
149
+ In the consuming project, add the dependency pointing to your local checkout of `fds-vue-core`:
150
+
151
+ ```bash
152
+ pnpm add file:../../fds-vue-core
153
+ ```
154
+
155
+ Adjust the relative path so it points to this repo from your consuming project. After that:
156
+
157
+ - Run `pnpm install` in the consuming project as usual.
158
+ - Rebuild `fds-vue-core` when you change it (for example `pnpm build` in this repo), then restart or reload the consuming app if needed.
159
+
160
+ > Note: `yalc` is not recommended together with pnpm in this setup; use `pnpm add file:...` instead.
161
+
145
162
  ### Publish to npm
146
163
 
147
164
  After you are done editing the fds-vue-core project you want to publish your changes in order to be able to access the changes in the projects that are using fds-vue-core.
package/components.d.ts CHANGED
@@ -43,7 +43,7 @@ import type { FdsListHeadingProps } from './src/components/Typography/FdsListHea
43
43
  import type { FdsMetaProps } from './src/components/Typography/FdsMeta/types'
44
44
 
45
45
  // Global component declarations visible in consuming projects
46
- declare module '@vue/runtime-core' {
46
+ declare module 'vue' {
47
47
  export interface GlobalComponents {
48
48
  FdsTreeView: DefineComponent<WrapperProps>
49
49
  FdsButtonPrimary: DefineComponent<FdsButtonBaseProps>