create-cloudinary-react 1.0.0-beta.18 → 1.0.0-beta.19
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/CHANGELOG.md +7 -0
- package/README.md +2 -2
- package/cli.js +14 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [1.0.0-beta.19](https://github.com/cloudinary-devs/create-cloudinary-react/compare/v1.0.0-beta.18...v1.0.0-beta.19) (2026-02-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update readme ([b7a77ca](https://github.com/cloudinary-devs/create-cloudinary-react/commit/b7a77caaf4bf052c68bd912a0ae9c51d424d07cd))
|
|
7
|
+
|
|
1
8
|
# [1.0.0-beta.18](https://github.com/cloudinary-devs/create-cloudinary-react/compare/v1.0.0-beta.17...v1.0.0-beta.18) (2026-02-18)
|
|
2
9
|
|
|
3
10
|
|
package/README.md
CHANGED
|
@@ -44,10 +44,10 @@ During setup, you'll be asked which AI coding assistant(s) you're using. The CLI
|
|
|
44
44
|
|
|
45
45
|
- ✅ **Cursor** → `.cursorrules` + `.cursor/mcp.json` (if selected)
|
|
46
46
|
- ✅ **GitHub Copilot** → `.github/copilot-instructions.md`
|
|
47
|
-
- ✅ **Claude Code
|
|
47
|
+
- ✅ **Claude Code** → `CLAUDE.md` + `.mcp.json` (if selected)
|
|
48
48
|
- ✅ **Generic AI tools** → `AI_INSTRUCTIONS.md`, `PROMPT.md`
|
|
49
49
|
|
|
50
|
-
**MCP Configuration**:
|
|
50
|
+
**MCP Configuration**: Cursor and Claude Code use different config paths. If you select **Cursor**, the CLI writes `.cursor/mcp.json`. If you select **Claude**, it writes `.mcp.json` in the project root. Each tool only reads its own path, so both files are generated when you select both.
|
|
51
51
|
|
|
52
52
|
These rules help AI assistants understand Cloudinary React SDK patterns, common errors, and best practices. The generated app also includes an "AI Prompts" section with ready-to-use suggestions for your AI assistant.
|
|
53
53
|
|
package/cli.js
CHANGED
|
@@ -141,7 +141,7 @@ async function main() {
|
|
|
141
141
|
choices: [
|
|
142
142
|
{ name: 'Cursor', value: 'cursor' },
|
|
143
143
|
{ name: 'GitHub Copilot', value: 'copilot' },
|
|
144
|
-
{ name: 'Claude Code
|
|
144
|
+
{ name: 'Claude Code', value: 'claude' },
|
|
145
145
|
{ name: 'Other / Generic AI tools', value: 'generic' },
|
|
146
146
|
],
|
|
147
147
|
default: ['cursor'],
|
|
@@ -262,18 +262,21 @@ async function main() {
|
|
|
262
262
|
writeFileSync(join(projectPath, 'PROMPT.md'), aiRulesContent);
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
// Generate MCP configuration
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
265
|
+
// Generate MCP configuration: Cursor uses .cursor/mcp.json, Claude Code uses .mcp.json in project root
|
|
266
|
+
const mcpTemplatePath = join(TEMPLATES_DIR, '.cursor/mcp.json.template');
|
|
267
|
+
if (existsSync(mcpTemplatePath)) {
|
|
268
|
+
const mcpContent = replaceTemplate(
|
|
269
|
+
readFileSync(mcpTemplatePath, 'utf-8'),
|
|
270
|
+
templateVars
|
|
271
|
+
);
|
|
272
|
+
if (aiTools.includes('cursor')) {
|
|
269
273
|
const cursorDir = join(projectPath, '.cursor');
|
|
270
274
|
mkdirSync(cursorDir, { recursive: true });
|
|
271
|
-
const mcpContent = replaceTemplate(
|
|
272
|
-
readFileSync(mcpTemplatePath, 'utf-8'),
|
|
273
|
-
templateVars
|
|
274
|
-
);
|
|
275
275
|
writeFileSync(join(cursorDir, 'mcp.json'), mcpContent);
|
|
276
276
|
}
|
|
277
|
+
if (aiTools.includes('claude')) {
|
|
278
|
+
writeFileSync(join(projectPath, '.mcp.json'), mcpContent);
|
|
279
|
+
}
|
|
277
280
|
}
|
|
278
281
|
}
|
|
279
282
|
|
|
@@ -291,9 +294,8 @@ async function main() {
|
|
|
291
294
|
if (aiTools.includes('copilot')) console.log(chalk.gray(' • GitHub Copilot: .github/copilot-instructions.md'));
|
|
292
295
|
if (aiTools.includes('claude')) console.log(chalk.gray(' • Claude: CLAUDE.md'));
|
|
293
296
|
if (aiTools.includes('generic')) console.log(chalk.gray(' • Generic: AI_INSTRUCTIONS.md, PROMPT.md'));
|
|
294
|
-
if (aiTools.includes('cursor')
|
|
295
|
-
|
|
296
|
-
}
|
|
297
|
+
if (aiTools.includes('cursor')) console.log(chalk.gray(' • MCP (Cursor): .cursor/mcp.json'));
|
|
298
|
+
if (aiTools.includes('claude')) console.log(chalk.gray(' • MCP (Claude Code): .mcp.json'));
|
|
297
299
|
console.log('');
|
|
298
300
|
}
|
|
299
301
|
|