@symbo.ls/cli 2.10.150 → 2.10.158

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/sync.js CHANGED
@@ -34,11 +34,11 @@ program
34
34
  PROJECT_SNIPPETS,
35
35
  PROJECT_PAGES
36
36
  } = data
37
- if (PROJECT_SYSTEM) d.system = PROJECT_SYSTEM
38
- if (PROJECT_STATE) d.system = PROJECT_STATE
39
- if (PROJECT_COMPONENTS) d.system = PROJECT_COMPONENTS
40
- if (PROJECT_SNIPPETS) d.system = PROJECT_SNIPPETS
41
- if (PROJECT_PAGES) d.system = PROJECT_PAGES
37
+ if (PROJECT_SYSTEM) d.designSystem = PROJECT_SYSTEM
38
+ if (PROJECT_STATE) d.designSystem = PROJECT_STATE
39
+ if (PROJECT_COMPONENTS) d.designSystem = PROJECT_COMPONENTS
40
+ if (PROJECT_SNIPPETS) d.designSystem = PROJECT_SNIPPETS
41
+ if (PROJECT_PAGES) d.designSystem = PROJECT_PAGES
42
42
  if (Object.keys(d).length) updateDynamycFile(d)
43
43
  },
44
44
  onError: (err, socket) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbo.ls/cli",
3
- "version": "2.10.150",
3
+ "version": "2.10.158",
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": "f036699eb329a58105d1e272a49d406094ac839d"
30
+ "gitHead": "3a847545c01796c874758c2c2a91e2417bcd29d6"
31
31
  }