@glossarist/concept-browser 0.4.0 → 0.4.1
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/cli/index.mjs +3 -1
- package/package.json +1 -1
package/cli/index.mjs
CHANGED
|
@@ -100,7 +100,9 @@ Environment:
|
|
|
100
100
|
// Run vite build using the package's vite.config.ts
|
|
101
101
|
console.log(`\n=== BUILD SPA ===\n`);
|
|
102
102
|
const viteConfig = resolve(pkgRoot, 'vite.config.ts');
|
|
103
|
-
const viteBin = resolve(pkgRoot, 'node_modules', '.bin', 'vite')
|
|
103
|
+
const viteBin = [resolve(pkgRoot, 'node_modules', '.bin', 'vite'), 'vite'].find(p => {
|
|
104
|
+
try { execSync(`${p} --version`, { stdio: 'pipe' }); return true; } catch { return false; }
|
|
105
|
+
});
|
|
104
106
|
execSync(`${viteBin} build --config ${viteConfig}`, {
|
|
105
107
|
stdio: 'inherit',
|
|
106
108
|
env: { ...process.env },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glossarist/concept-browser",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Vue SPA for browsing Glossarist terminology datasets with cross-reference resolution, graph visualization, and multi-language support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|