@deckio/deck-engine 1.7.5 → 1.7.6
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/package.json +1 -1
- package/scripts/init-project.mjs +26 -0
package/package.json
CHANGED
package/scripts/init-project.mjs
CHANGED
|
@@ -168,6 +168,31 @@ function createEyesDir() {
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
+
function ensureVSCodeSettings() {
|
|
172
|
+
const vscodeDir = join(projectRoot, '.vscode')
|
|
173
|
+
const settingsPath = join(vscodeDir, 'settings.json')
|
|
174
|
+
|
|
175
|
+
mkdirSync(vscodeDir, { recursive: true })
|
|
176
|
+
|
|
177
|
+
let settings = {}
|
|
178
|
+
if (existsSync(settingsPath)) {
|
|
179
|
+
try {
|
|
180
|
+
settings = JSON.parse(readFileSync(settingsPath, 'utf-8'))
|
|
181
|
+
} catch {
|
|
182
|
+
console.warn('⚠️ Could not parse .vscode/settings.json — leaving it unchanged')
|
|
183
|
+
return
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
if (settings['simpleBrowser.useIntegratedBrowser'] === true) {
|
|
188
|
+
return
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
settings['simpleBrowser.useIntegratedBrowser'] = true
|
|
192
|
+
writeFileSync(settingsPath, JSON.stringify(settings, null, 2) + '\n', 'utf-8')
|
|
193
|
+
console.log(' Ensured .vscode/settings.json uses the integrated browser')
|
|
194
|
+
}
|
|
195
|
+
|
|
171
196
|
// ── Main ──
|
|
172
197
|
|
|
173
198
|
const meta = readProjectMeta()
|
|
@@ -184,5 +209,6 @@ if (agentsCopied) console.log(' Copied AGENTS.md to project root')
|
|
|
184
209
|
|
|
185
210
|
bootstrapState(meta)
|
|
186
211
|
createEyesDir()
|
|
212
|
+
ensureVSCodeSettings()
|
|
187
213
|
|
|
188
214
|
console.log(`\n✅ Done. Run \`copilot --yolo\` to start editing with Copilot skills.\n`)
|