@symbo.ls/cli 2.10.148 → 2.10.156

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/bin/convert.js CHANGED
@@ -87,6 +87,7 @@ program
87
87
  const uniqueImports = []
88
88
  let fileContents = ""
89
89
  let first = true
90
+ const exportCount = Object.keys(domqlModule).length
90
91
  for (const key in domqlModule) {
91
92
  console.log(key)
92
93
  console.group()
@@ -94,7 +95,7 @@ program
94
95
  component.__name = key
95
96
  const out = convert(component, desiredFormat, {
96
97
  verbose: false,
97
- exportDefault: false,
98
+ exportDefault: exportCount === 1,
98
99
  returnMitosisIR: true,
99
100
  importsToRemove: uniqueImports,
100
101
  removeReactImport: !first
package/bin/fetch.js CHANGED
@@ -85,7 +85,7 @@ program
85
85
  else console.log(chalk.dim('- Default config from:'), chalk.dim.underline(DEFAULT_REMOTE_REPOSITORY))
86
86
  console.log('')
87
87
 
88
- console.log(chalk.dim('- symbols.json created:'), chalk.dim.underline(LOCAL_CONFIG_PATH))
88
+ console.log(chalk.dim('- dynamic.json updated:'), chalk.dim.underline(LOCAL_CONFIG_PATH))
89
89
  console.log('')
90
90
 
91
91
  for (const t in config) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbo.ls/cli",
3
- "version": "2.10.148",
3
+ "version": "2.10.156",
4
4
  "description": "Fetch your Symbols configuration",
5
5
  "main": "bin/fetch.js",
6
6
  "author": "Symbols",
@@ -27,5 +27,5 @@
27
27
  "standard": {
28
28
  "parser": "babel-eslint"
29
29
  },
30
- "gitHead": "99ff97342558bb96790aa71786360d0d899f0e79"
30
+ "gitHead": "447c8b2e2cd8f196d8485145bc3ba0e945d27f9c"
31
31
  }