Skip to content

Commit 9d309a2

Browse files
committed
fix: remove smart-whisper dep on workspace pkgs to bypass build issues due to symlinks
1 parent 90f09be commit 9d309a2

File tree

4 files changed

+18
-7
lines changed

4 files changed

+18
-7
lines changed

apps/desktop/forge.config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,13 @@ const config: ForgeConfig = {
160160
console.log("Checking for symlinks in copied dependencies...");
161161
for (const dep of nativeModuleDependenciesToPackage) {
162162
const localDepPath = join(localNodeModules, dep);
163-
163+
164164
try {
165165
if (existsSync(localDepPath)) {
166166
const stats = lstatSync(localDepPath);
167-
if (stats.isSymbolicLink()) {
167+
//! for w/e reason sym links are persisting in ci, while locally this is working
168+
//! this is a temp bypass
169+
if (stats.isSymbolicLink() || dep === "@amical/smart-whisper") {
168170
console.log(`Found symlink for ${dep}, replacing with dereferenced copy...`);
169171

170172
// Read where the symlink points to

packages/smart-whisper/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"minimatch": "10.0.3"
3434
},
3535
"devDependencies": {
36-
"@amical/typescript-config": "workspace:*",
3736
"@types/node": "^24.3.0",
3837
"tsup": "^8.5.0",
3938
"typescript": "^5.8.2"

packages/smart-whisper/tsconfig.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
{
2-
"extends": "@amical/typescript-config/base.json",
32
"compilerOptions": {
3+
"declaration": true,
4+
"declarationMap": true,
5+
"esModuleInterop": true,
6+
"incremental": false,
7+
"isolatedModules": true,
8+
"lib": ["es2022", "DOM", "DOM.Iterable"],
9+
"module": "NodeNext",
10+
"moduleDetection": "force",
11+
"moduleResolution": "NodeNext",
12+
"noUncheckedIndexedAccess": true,
13+
"resolveJsonModule": true,
14+
"skipLibCheck": true,
15+
"strict": true,
16+
"target": "ES2022",
417
"outDir": "dist"
518
},
619
"include": ["src"],

pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)