@symbo.ls/cli 2.10.150 → 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 +2 -1
- package/package.json +2 -2
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:
|
|
98
|
+
exportDefault: exportCount === 1,
|
|
98
99
|
returnMitosisIR: true,
|
|
99
100
|
importsToRemove: uniqueImports,
|
|
100
101
|
removeReactImport: !first
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/cli",
|
|
3
|
-
"version": "2.10.
|
|
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": "
|
|
30
|
+
"gitHead": "447c8b2e2cd8f196d8485145bc3ba0e945d27f9c"
|
|
31
31
|
}
|