@mikro-orm/cli 7.2.0-dev.2 → 7.2.0-dev.4

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.
@@ -10,6 +10,7 @@ export class GenerateCacheCommand {
10
10
  desc: `Generate development cache for '.ts' files`,
11
11
  });
12
12
  args.option('combined', {
13
+ type: 'string',
13
14
  alias: 'c',
14
15
  desc: `Generate production cache into a single JSON file that can be used with the GeneratedCacheAdapter.`,
15
16
  });
@@ -19,7 +20,9 @@ export class GenerateCacheCommand {
19
20
  * @inheritDoc
20
21
  */
21
22
  async handler(args) {
22
- const options = args.combined ? { combined: './metadata.json' } : {};
23
+ const options = typeof args.combined !== 'undefined'
24
+ ? { combined: args.combined === '' ? './metadata.json' : args.combined }
25
+ : {};
23
26
  const config = await CLIHelper.getConfiguration(args.contextName, args.config, {
24
27
  metadataCache: { enabled: true, adapter: FileCacheAdapter, options },
25
28
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/cli",
3
- "version": "7.2.0-dev.2",
3
+ "version": "7.2.0-dev.4",
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
  "keywords": [
6
6
  "data-mapper",
@@ -50,8 +50,8 @@
50
50
  "copy": "node ../../scripts/copy.mjs"
51
51
  },
52
52
  "dependencies": {
53
- "@mikro-orm/core": "7.2.0-dev.2",
54
- "mikro-orm": "7.2.0-dev.2",
53
+ "@mikro-orm/core": "7.2.0-dev.4",
54
+ "mikro-orm": "7.2.0-dev.4",
55
55
  "yargs": "17.7.2"
56
56
  },
57
57
  "engines": {