diff --git a/ci/package.json b/ci/package.json index 9ebe1a1..af98a5e 100644 --- a/ci/package.json +++ b/ci/package.json @@ -17,7 +17,7 @@ "dependencies": { "@aws-sdk/client-s3": "^3.583.0", "@supabase/supabase-js": "^2.43.4", - "jarvis-api": "0.0.2-alpha.6", + "jarvis-api": "0.0.2-alpha.7", "sharp": "^0.33.4", "zod": "^3.23.8" } diff --git a/ci/src/utils.ts b/ci/src/utils.ts index a863418..9cd9ff0 100644 --- a/ci/src/utils.ts +++ b/ci/src/utils.ts @@ -55,7 +55,7 @@ export function checkPackagesValidity(extPaths: string[]) { process.exit(1); } - /* ----------------------- Check Demo Images Existence ---------------------- */ + /* ------------------ Check Demo Images and files Existence ----------------- */ for (const extPath of extPaths) { const pkg = parsePackageJson(join(extPath, "package.json")); for (const imgPath of pkg.jarvis.demoImages) { @@ -65,6 +65,13 @@ export function checkPackagesValidity(extPaths: string[]) { process.exit(1); } } + for (const file of pkg.files) { + const fileFullPath = join(extPath, file); + if (!fs.existsSync) { + console.error(`File not found: ${fileFullPath} in ${extPath}`); + process.exit(1); + } + } } /* ------ make sure there is no tarball .tgz file in the each extension ----- */ diff --git a/extensions/git-skyline/package.json b/extensions/git-skyline/package.json index f398cff..84264ae 100644 --- a/extensions/git-skyline/package.json +++ b/extensions/git-skyline/package.json @@ -67,5 +67,8 @@ "typescript": "^5.2.2", "vite": "^5.2.0", "vue-tsc": "^2.0.6" - } + }, + "files": [ + "dist" + ] } \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 041da75..2d83f90 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -24,8 +24,8 @@ importers: specifier: ^2.43.4 version: 2.43.4 jarvis-api: - specifier: 0.0.2-alpha.6 - version: 0.0.2-alpha.6(typescript@5.4.5) + specifier: 0.0.2-alpha.7 + version: 0.0.2-alpha.7(typescript@5.4.5) sharp: specifier: ^0.33.4 version: 0.33.4 @@ -8814,6 +8814,28 @@ packages: zod: 3.23.8 dev: false + /jarvis-api@0.0.2-alpha.7(typescript@5.4.5): + resolution: {integrity: sha512-qsM4rTspzySmlvVmiZQGr1bZmdkMdTYHgTS6fWhUkypNzs7gLAFf1s1HYQHILKuu5WqcsDGsPTTNtaMU8WhlnQ==} + peerDependencies: + typescript: ^5.0.0 + dependencies: + '@tauri-apps/api': 2.0.0-beta.11 + '@tauri-apps/plugin-dialog': 2.0.0-beta.3 + '@tauri-apps/plugin-fs': 2.0.0-beta.3 + '@tauri-apps/plugin-global-shortcut': 2.0.0-beta.3 + '@tauri-apps/plugin-http': 2.0.0-beta.3 + '@tauri-apps/plugin-log': 2.0.0-beta.4 + '@tauri-apps/plugin-notification': 2.0.0-beta.3 + '@tauri-apps/plugin-os': 2.0.0-beta.3 + '@tauri-apps/plugin-shell': 2.0.0-beta.4 + '@tauri-apps/plugin-store': 2.0.0-beta.3 + '@tauri-apps/plugin-updater': 2.0.0-beta.3 + '@tauri-apps/plugin-upload': 2.0.0-beta.4 + tauri-plugin-clipboard-api: 0.7.0-beta.0 + typescript: 5.4.5 + zod: 3.23.8 + dev: false + /jiti@1.21.0: resolution: {integrity: sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==} hasBin: true