@gallop.software/studio 1.6.6 → 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.
Files changed (2) hide show
  1. package/bin/studio.mjs +8 -2
  2. package/package.json +4 -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 studioRoot
123
- const nodeModulesSource = join(studioRoot, 'node_modules')
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gallop.software/studio",
3
- "version": "1.6.6",
3
+ "version": "1.6.8",
4
4
  "description": "Media manager for Gallop templates - upload, process, and sync images to CDN",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -59,6 +59,9 @@
59
59
  "dependencies": {
60
60
  "@aws-sdk/client-s3": "^3.705.0",
61
61
  "@emotion/react": "^11.14.0",
62
+ "@types/node": "^22.10.5",
63
+ "@types/react": "^19.0.2",
64
+ "@types/react-dom": "^19.0.2",
62
65
  "blurhash": "^2.0.5",
63
66
  "clsx": "^2.1.1",
64
67
  "next": "^15.1.0",