@docsector/docsector-reader 0.2.2 → 0.2.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.
package/bin/docsector.js CHANGED
@@ -23,7 +23,7 @@ const packageRoot = resolve(__dirname, '..')
23
23
  const args = process.argv.slice(2)
24
24
  const command = args[0]
25
25
 
26
- const VERSION = '0.2.0'
26
+ const VERSION = '0.2.3'
27
27
 
28
28
  const HELP = `
29
29
  Docsector Reader v${VERSION}
@@ -71,7 +71,13 @@ function getTemplatePackageJson (name) {
71
71
  serve: 'docsector serve'
72
72
  },
73
73
  dependencies: {
74
- '@docsector/docsector-reader': '^0.2.0'
74
+ '@docsector/docsector-reader': '^0.2.3',
75
+ '@quasar/extras': '^1.16.12',
76
+ 'quasar': '^2.16.6',
77
+ 'vue': '^3.5.13',
78
+ 'vue-i18n': '^9.0.0',
79
+ 'vue-router': '^4.0.0',
80
+ 'vuex': '^4.0.1'
75
81
  }
76
82
  }, null, 2)
77
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docsector/docsector-reader",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "A documentation rendering engine built with Vue 3, Quasar v2 and Vite. Transform Markdown into beautiful, navigable documentation sites.",
5
5
  "productName": "Docsector Reader",
6
6
  "author": "Rodrigo de Araujo Vieira",
@@ -62,25 +62,32 @@
62
62
  "test": "echo \"No test specified\" && exit 0"
63
63
  },
64
64
  "dependencies": {
65
+ "@quasar/app-vite": "^2.1.0",
65
66
  "@quasar/cli": "^2.5.0",
66
- "@quasar/extras": "^1.16.12",
67
+ "autoprefixer": "^10.4.2",
67
68
  "axios": "^1.7.7",
68
69
  "core-js": "^3.6.5",
69
- "q-colorize-mixin": "^2.0.0-alpha.5",
70
+ "hjson": "^3.2.2",
71
+ "markdown-it": "^13.0.1",
72
+ "markdown-it-attrs": "^4.1.6",
73
+ "prismjs": "^1.27.0",
74
+ "q-colorize-mixin": "^2.0.0-alpha.5"
75
+ },
76
+ "peerDependencies": {
77
+ "@quasar/extras": "^1.16.12",
70
78
  "quasar": "^2.16.6",
71
79
  "vue": "^3.5.13",
72
80
  "vue-i18n": "^9.0.0",
73
81
  "vue-router": "^4.0.0",
74
- "vuex": "^4.0.1",
75
- "hjson": "^3.2.2",
76
- "markdown-it": "^13.0.1",
77
- "markdown-it-attrs": "^4.1.6",
78
- "prismjs": "^1.27.0"
82
+ "vuex": "^4.0.1"
79
83
  },
80
84
  "devDependencies": {
81
- "@quasar/app-vite": "^2.1.0",
82
- "@quasar/quasar-app-extension-qmediaplayer": "^2.0.0-beta.6",
83
- "autoprefixer": "^10.4.2",
85
+ "@quasar/extras": "^1.16.12",
86
+ "quasar": "^2.16.6",
87
+ "vue": "^3.5.13",
88
+ "vue-i18n": "^9.0.0",
89
+ "vue-router": "^4.0.0",
90
+ "vuex": "^4.0.1",
84
91
  "eslint": "^8.57.0",
85
92
  "eslint-config-prettier": "^8.1.0",
86
93
  "eslint-plugin-import": "^2.19.1",
@@ -152,6 +152,16 @@ export function createQuasarConfig (options = {}) {
152
152
  viteConf.resolve = viteConf.resolve || {}
153
153
  viteConf.resolve.alias = viteConf.resolve.alias || {}
154
154
 
155
+ // Deduplicate Vue ecosystem packages to prevent dual-instance issues.
156
+ // When the package is installed from NPM, Vue, vue-router, vuex, etc.
157
+ // can end up duplicated (one copy in consumer's node_modules, another
158
+ // nested inside the package). This causes useRoute(), useStore(), etc.
159
+ // to return undefined because they inject from a different Vue instance.
160
+ viteConf.resolve.dedupe = [
161
+ ...(viteConf.resolve.dedupe || []),
162
+ 'vue', 'vue-router', 'vuex', 'vue-i18n', 'quasar', '@quasar/extras'
163
+ ]
164
+
155
165
  if (!isStandalone) {
156
166
  // --- Consumer project mode ---
157
167
  // Allow Vite to serve files from the package root (needed for symlinked/npm-linked packages)