@orion-js/core 3.11.8 → 3.11.9

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.
@@ -7,6 +7,7 @@ exports.copyCursorRule = void 0;
7
7
  const path_1 = __importDefault(require("path"));
8
8
  const promises_1 = __importDefault(require("fs/promises"));
9
9
  const https_1 = __importDefault(require("https"));
10
+ const safe_1 = __importDefault(require("colors/safe"));
10
11
  async function copyCursorRule() {
11
12
  const sourceUrl = 'https://raw.githubusercontent.com/orionjs/orionjs/refs/heads/master/.cursor/rules/orionjs.mdc';
12
13
  const targetDir = path_1.default.join(process.cwd(), '.cursor', 'rules');
@@ -38,7 +39,7 @@ async function copyCursorRule() {
38
39
  const content = await downloadFile(sourceUrl);
39
40
  // Write the content to the target file
40
41
  await promises_1.default.writeFile(targetFile, content, 'utf8');
41
- console.log(`Successfully copied cursor rule to ${targetFile}`);
42
+ console.log(safe_1.default.bold(`Updated .cursor/rules/orionjs.mdc to the latest version`));
42
43
  }
43
44
  catch (error) {
44
45
  console.error('Error copying cursor rule:', error);
@@ -10,7 +10,7 @@ const copyCursorRule_1 = require("./copyCursorRule");
10
10
  async function default_1(options) {
11
11
  console.log(safe_1.default.bold('\nOrionjs App ' + safe_1.default.green(safe_1.default.bold('V3\n'))));
12
12
  if (!options.omitCursorRule) {
13
- await (0, copyCursorRule_1.copyCursorRule)();
13
+ (0, copyCursorRule_1.copyCursorRule)().catch(console.error);
14
14
  }
15
15
  if (!options.omitMcpServer) {
16
16
  // await copyMcpServer()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orion-js/core",
3
- "version": "3.11.8",
3
+ "version": "3.11.9",
4
4
  "main": "index.js",
5
5
  "author": "nicolaslopezj",
6
6
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  "engines": {
37
37
  "node": ">=14.0.0"
38
38
  },
39
- "gitHead": "78d70ac414964ec657cc000cedfad8a5efff5cc3",
39
+ "gitHead": "ff4915cc731d0d18bcb386da1845615f0aa9fd4e",
40
40
  "devDependencies": {
41
41
  "@shelf/jest-mongodb": "^2.1.0",
42
42
  "@types/prompts": "^2.4.2",