@gallop.software/studio 1.6.7 → 1.6.8
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/studio.mjs +8 -2
- package/package.json +1 -1
package/bin/studio.mjs
CHANGED
|
@@ -119,10 +119,16 @@ const tsconfig = {
|
|
|
119
119
|
}
|
|
120
120
|
writeFileSync(join(tempDir, 'tsconfig.json'), JSON.stringify(tsconfig, null, 2))
|
|
121
121
|
|
|
122
|
-
// Symlink node_modules from
|
|
123
|
-
|
|
122
|
+
// Symlink node_modules from workspace (where Studio is installed as a dependency)
|
|
123
|
+
// This ensures all hoisted packages are available
|
|
124
|
+
const workspaceNodeModules = join(workspace, 'node_modules')
|
|
124
125
|
const nodeModulesTarget = join(tempDir, 'node_modules')
|
|
125
126
|
|
|
127
|
+
// Use workspace's node_modules if it exists, otherwise fall back to studioRoot's
|
|
128
|
+
const nodeModulesSource = existsSync(workspaceNodeModules)
|
|
129
|
+
? workspaceNodeModules
|
|
130
|
+
: join(studioRoot, 'node_modules')
|
|
131
|
+
|
|
126
132
|
try {
|
|
127
133
|
symlinkSync(nodeModulesSource, nodeModulesTarget, 'junction')
|
|
128
134
|
} catch (e) {
|
package/package.json
CHANGED