@poveste/plugin-vue 0.1.1 → 0.1.3

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.
@@ -1,5 +1,5 @@
1
1
  import { createAutoBuildingObject as K, indent as _, voidElements as N, serializeJs as P } from "@poveste/shared";
2
- import { camelCase as M, pascalCase as U } from "../node_modules/.pnpm/change-case@5.4.4/node_modules/change-case/dist/index.js";
2
+ import { camelCase as M, pascalCase as U } from "change-case";
3
3
  import { Text as W, vModelText as z, vModelSelect as D, vModelRadio as F, vModelCheckbox as E, vModelDynamic as J } from "vue";
4
4
  async function I(t) {
5
5
  const o = t.slots().default?.({ state: t.state ?? {} }) ?? [], a = Array.isArray(o) ? o : [o], b = [];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@poveste/plugin-vue",
3
3
  "type": "module",
4
- "version": "0.1.1",
4
+ "version": "0.1.3",
5
5
  "description": "Poveste plugin for Vue.js support",
6
6
  "author": {
7
7
  "name": "Sorin Gitlan"
@@ -44,16 +44,16 @@
44
44
  "types": "dist/index.node.d.ts",
45
45
  "peerDependencies": {
46
46
  "vue": "^3.5.26",
47
- "poveste": "^0.1.1"
47
+ "poveste": "^0.1.3"
48
48
  },
49
49
  "dependencies": {
50
50
  "change-case": "^5.4.4",
51
51
  "globby": "^14.0.2",
52
52
  "launch-editor": "^2.9.1",
53
53
  "pathe": "^1.1.2",
54
- "@poveste/shared": "^0.1.1",
55
- "@poveste/vendors": "^0.1.1",
56
- "@poveste/controls": "^0.1.1"
54
+ "@poveste/controls": "^0.1.3",
55
+ "@poveste/shared": "^0.1.3",
56
+ "@poveste/vendors": "^0.1.3"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/node": "^22.10.1",
@@ -61,7 +61,7 @@
61
61
  "typescript": "5.6.3",
62
62
  "vite": "^7.3.0",
63
63
  "vue": "^3.5.26",
64
- "poveste": "0.1.1"
64
+ "poveste": "0.1.3"
65
65
  },
66
66
  "scripts": {
67
67
  "build": "rimraf dist && vite build && tsc -d -P tsconfig.build.json && pnpm run build:types",
package/vite.config.ts CHANGED
@@ -2,6 +2,13 @@ import fs from 'node:fs'
2
2
  import { globbySync } from 'globby'
3
3
  import { defineConfig } from 'vite'
4
4
 
5
+ // Externalize every declared dependency/peer so the lib build emits bare
6
+ // specifiers (e.g. `import 'change-case'`) instead of resolved node_modules
7
+ // paths. With preserveModules, an un-externalized npm dep leaks its pnpm-store
8
+ // path (`../node_modules/.pnpm/change-case@x/...`) which only exists in the
9
+ // workspace and breaks every published/fresh install.
10
+ const pkg = JSON.parse(fs.readFileSync(new URL('./package.json', import.meta.url), 'utf-8'))
11
+
5
12
  export default defineConfig({
6
13
  plugins: [
7
14
  {
@@ -43,6 +50,8 @@ export default defineConfig({
43
50
  /\$poveste/,
44
51
  /@poveste/,
45
52
  'vue',
53
+ ...Object.keys(pkg.dependencies ?? {}),
54
+ ...Object.keys(pkg.peerDependencies ?? {}),
46
55
  ],
47
56
 
48
57
  input: [