Skip to content

Commit 149d846

Browse files
committed
fix: improve extension logging and refactor extension path handling
1 parent 1c82c12 commit 149d846

File tree

2 files changed

+47
-45
lines changed

2 files changed

+47
-45
lines changed

package.json

Lines changed: 42 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -14,58 +14,59 @@
1414
"lint:fix": "eslint --ext .ts,.js,.vue --ignore-path .gitignore . --fix"
1515
},
1616
"dependencies": {
17-
"@jsonforms/core": "^3.2.1",
18-
"@jsonforms/vue": "^3.2.1",
19-
"@jsonforms/vue-vanilla": "^3.2.1",
20-
"@nuxt-alt/auth": "^3.1.6",
17+
"@jsonforms/core": "^3.6.0",
18+
"@jsonforms/vue": "^3.6.0",
19+
"@jsonforms/vue-vanilla": "^3.6.0",
20+
"@nuxt-alt/auth": "^3.1.7",
2121
"@nuxt-alt/http": "^1.7.10",
2222
"@nuxt-alt/proxy": "^2.5.8",
23-
"@nyariv/sandboxjs": "^0.8.23",
24-
"@pinia/nuxt": "^0.5.1",
25-
"@quasar/extras": "^1.16.9",
26-
"@vueuse/router": "^10.7.2",
23+
"@nyariv/sandboxjs": "^0.8.25",
24+
"@pinia/nuxt": "^0.11.2",
25+
"@quasar/extras": "^1.17.0",
26+
"@vueuse/router": "^13.9.0",
2727
"ajv": "^8.17.1",
2828
"ajv-errors": "^3.0.0",
2929
"ajv-i18n": "^4.2.0",
30-
"cookie": "^0.6.0",
30+
"cookie": "^1.0.2",
3131
"fast-password-entropy": "^1.1.1",
32-
"hibp": "^14.1.2",
32+
"hibp": "^15.0.1",
3333
"moment": "^2.30.1",
34-
"monaco-editor": "^0.52.2",
35-
"openapi-fetch": "^0.8.2",
36-
"pinia": "^2.1.7",
34+
"monaco-editor": "^0.53.0",
35+
"openapi-fetch": "^0.14.0",
36+
"pinia": "^3.0.3",
3737
"qs": "^6.14.0",
38-
"quasar": "^2.15.4",
39-
"radash": "^12.1.0",
40-
"reconnecting-eventsource": "^1.6.2",
41-
"sass": "^1.70.0",
42-
"vue-eslint-parser": "^9.4.2",
43-
"yaml": "^2.4.2"
38+
"quasar": "^2.18.2",
39+
"radash": "^12.1.1",
40+
"reconnecting-eventsource": "^1.6.4",
41+
"sass": "^1.92.1",
42+
"vue-eslint-parser": "^10.2.0",
43+
"yaml": "^2.8.1"
4444
},
4545
"devDependencies": {
46-
"@nuxt/devtools": "^1.3.9",
47-
"@nuxt/eslint-config": "^0.2.0",
48-
"@types/node": "^18.17.3",
49-
"@typescript-eslint/eslint-plugin": "^6.19.1",
50-
"@typescript-eslint/parser": "^6.19.1",
51-
"@vue/language-plugin-pug": "^1.8.27",
52-
"@vueuse/core": "^10.7.2",
53-
"@vueuse/nuxt": "^10.7.2",
54-
"dayjs-nuxt": "^2.1.9",
55-
"eslint": "^8.56.0",
56-
"memfs": "^4.8.2",
57-
"nuxt": "^3.16.0",
58-
"nuxt-monaco-editor": "^1.3.2",
59-
"nuxt-quasar-ui": "^2.0.7",
60-
"openapi-typescript": "^6.7.4",
61-
"prettier": "^3.2.4",
62-
"typescript": "^5.3.3",
63-
"vite-plugin-pug": "^0.3.2",
64-
"vue": "^3.4.14",
65-
"vue-router": "^4.2.5",
66-
"vue-tsc": "^1.8.27"
46+
"@nuxt/devtools": "^2.6.3",
47+
"@nuxt/eslint-config": "^1.9.0",
48+
"@types/node": "^24.4.0",
49+
"@typescript-eslint/eslint-plugin": "^8.43.0",
50+
"@typescript-eslint/parser": "^8.43.0",
51+
"@vue/language-plugin-pug": "^3.0.7",
52+
"@vueuse/core": "^13.9.0",
53+
"@vueuse/nuxt": "^13.9.0",
54+
"dayjs-nuxt": "^2.1.11",
55+
"eslint": "^9.35.0",
56+
"memfs": "^4.39.0",
57+
"nuxt": "^4.1.2",
58+
"nuxt-monaco-editor": "^1.4.0",
59+
"nuxt-quasar-ui": "^2.1.13",
60+
"openapi-typescript": "^7.9.1",
61+
"prettier": "^3.6.2",
62+
"typescript": "^5.9.2",
63+
"vite-plugin-pug": "^0.4.1",
64+
"vue": "^3.5.21",
65+
"vue-router": "^4.5.1",
66+
"vue-tsc": "^3.0.7"
6767
},
6868
"resolutions": {
6969
"string-width": "^1.0.2 || 2 || 3 || 4"
70-
}
70+
},
71+
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
7172
}

src/server/extension.setup.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@ export default function (): string[] {
2727
if (existsSync(EXTENSIONS_FILE_PATH)) {
2828
const list = parseExtensionsList()
2929
for (const extension of list) {
30-
consola.info(`[Extension] Found extension: ${extension.name} (enabled: ${extension.enabled})`)
30+
const extensionPath = `${dirname(dirname(__dirname))}/extensions/${extension.path}`
31+
const extensionFile = extensionParseFile(extensionPath)
32+
33+
consola.info(`[Extension] Found extension: ${extensionFile?.information?.name} (enabled: ${extension.enabled})`)
3134

3235
if (extension.enabled) {
33-
const extensionPath = `${dirname(dirname(__dirname))}/extensions/${extension.path}`
34-
const extensionFile = extensionParseFile(extensionPath)
3536
if (extensionFile.settings.app.target) {
3637
const extensionAppTarget = `${extensionPath}/${extensionFile.settings.app.target}`
37-
appList.push(process.env.NODE_ENV === 'development' ? `${extensionAppTarget}/src/module` : `${extensionAppTarget}/dist/module.cjs`) // TODO: target dev and prod parameters
38+
appList.push(`${extensionAppTarget}`) // TODO: target dev and prod parameters
3839
}
3940
}
4041
}

0 commit comments

Comments
 (0)