@mikro-orm/cli 6.3.14-dev.70 → 6.3.14-dev.72

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.
@@ -46,9 +46,9 @@ class CLIConfigurator {
46
46
  const settings = core_1.ConfigurationLoader.getSettings();
47
47
  const version = core_1.Utils.getORMVersion();
48
48
  if (settings.useTsNode !== false) {
49
- const tsNode = core_1.ConfigurationLoader.registerTsNode(settings.tsConfigPath);
49
+ const preferTs = core_1.ConfigurationLoader.registerTsNode(settings.tsConfigPath);
50
50
  /* istanbul ignore if */
51
- if (!tsNode) {
51
+ if (!preferTs) {
52
52
  process.env.MIKRO_ORM_CLI_USE_TS_NODE ??= '0';
53
53
  }
54
54
  }
package/CLIHelper.js CHANGED
@@ -30,7 +30,7 @@ class CLIHelper {
30
30
  options.getLogger().setDebugMode(!!settings.verbose);
31
31
  options.set('connect', false);
32
32
  if (settings.useTsNode !== false) {
33
- options.set('tsNode', true);
33
+ options.set('preferTs', true);
34
34
  }
35
35
  // The only times when we don't care to have a warning about no entities is also the time when we ignore entities.
36
36
  if (opts.discovery?.warnWhenNoEntities === false) {
@@ -35,16 +35,16 @@ class DebugCommand {
35
35
  else {
36
36
  CLIHelper_1.CLIHelper.dump(` - ${core_1.colors.yellow(`database connection failed (${isConnected})`)}`);
37
37
  }
38
- const tsNode = config.get('tsNode');
39
- if ([true, false].includes(tsNode)) {
40
- const warning = tsNode ? ' (this value should be set to `false` when running compiled code!)' : '';
41
- CLIHelper_1.CLIHelper.dump(` - \`tsNode\` flag explicitly set to ${tsNode}, will use \`entities${tsNode ? 'Ts' : ''}\` array${warning}`);
38
+ const preferTs = config.get('preferTs');
39
+ if ([true, false].includes(preferTs)) {
40
+ const warning = preferTs ? ' (this value should be set to `false` when running compiled code!)' : '';
41
+ CLIHelper_1.CLIHelper.dump(` - \`preferTs\` flag explicitly set to ${preferTs}, will use \`entities${preferTs ? 'Ts' : ''}\` array${warning}`);
42
42
  }
43
43
  const entities = config.get('entities', []);
44
44
  if (entities.length > 0) {
45
45
  const refs = entities.filter(p => !core_1.Utils.isString(p));
46
46
  const paths = entities.filter(p => core_1.Utils.isString(p));
47
- const will = !config.get('tsNode') ? 'will' : 'could';
47
+ const will = !config.get('preferTs') ? 'will' : 'could';
48
48
  CLIHelper_1.CLIHelper.dump(` - ${will} use \`entities\` array (contains ${refs.length} references and ${paths.length} paths)`);
49
49
  if (paths.length > 0) {
50
50
  await DebugCommand.checkPaths(paths, 'red', config.get('baseDir'));
@@ -55,7 +55,7 @@ class DebugCommand {
55
55
  const refs = entitiesTs.filter(p => !core_1.Utils.isString(p));
56
56
  const paths = entitiesTs.filter(p => core_1.Utils.isString(p));
57
57
  /* istanbul ignore next */
58
- const will = config.get('tsNode') ? 'will' : 'could';
58
+ const will = config.get('preferTs') ? 'will' : 'could';
59
59
  CLIHelper_1.CLIHelper.dump(` - ${will} use \`entitiesTs\` array (contains ${refs.length} references and ${paths.length} paths)`);
60
60
  /* istanbul ignore else */
61
61
  if (paths.length > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/cli",
3
- "version": "6.3.14-dev.70",
3
+ "version": "6.3.14-dev.72",
4
4
  "description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -63,8 +63,8 @@
63
63
  },
64
64
  "dependencies": {
65
65
  "@jercle/yargonaut": "1.1.5",
66
- "@mikro-orm/core": "6.3.14-dev.70",
67
- "@mikro-orm/knex": "6.3.14-dev.70",
66
+ "@mikro-orm/core": "6.3.14-dev.72",
67
+ "@mikro-orm/knex": "6.3.14-dev.72",
68
68
  "fs-extra": "11.2.0",
69
69
  "tsconfig-paths": "4.2.0",
70
70
  "yargs": "17.7.2"