@symbo.ls/cli 2.10.134 → 2.10.148

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
@@ -74,19 +74,22 @@ program
74
74
  if ((await fs.promises.stat(importDir)).isDirectory()) {
75
75
  // Import the module
76
76
  const importPath = `${importDir}/index.js`
77
- console.log(`importing ${importPath}`)
77
+ console.log(`importing ${componentDir}/`)
78
78
  const domqlModule = (await import(importPath)).default
79
- console.log(domqlModule)
80
79
 
81
80
  // Create directory for component in dest dir
82
81
  const destComponentDirPath = `${destPath}/${componentDir}`
83
82
  await mkdirp(destComponentDirPath)
84
83
 
85
84
  // Convert & append each exported domql object
85
+ console.log(`Converting modules in ${componentDir}:`)
86
+ console.group()
86
87
  const uniqueImports = []
87
88
  let fileContents = ""
88
89
  let first = true
89
90
  for (const key in domqlModule) {
91
+ console.log(key)
92
+ console.group()
90
93
  const component = domqlModule[key]
91
94
  component.__name = key
92
95
  const out = convert(component, desiredFormat, {
@@ -100,8 +103,10 @@ program
100
103
  fileContents = fileContents + out.str + '\n'
101
104
  uniqueImports.push(...out.mitosisIR.imports)
102
105
  first = false
106
+ console.groupEnd()
103
107
  }
104
- console.log(uniqueImports)
108
+
109
+ console.groupEnd()
105
110
 
106
111
  // Write file
107
112
  if (fileContents.length > 0) {
package/bin/fetch.js CHANGED
@@ -6,7 +6,7 @@ import { loadModule } from './require.js'
6
6
  import { exec } from 'child_process'
7
7
  import { program } from './program.js'
8
8
 
9
- import * as fetch from '@symbo.ls/fetch'
9
+ import fetch from '@symbo.ls/fetch'
10
10
  const { fetchRemote } = fetch
11
11
 
12
12
  const PACKAGE_PATH = process.cwd() + '/package.json'
@@ -75,7 +75,7 @@ program
75
75
  .action(async (options) => {
76
76
  rc.then(async data => {
77
77
  const opts = { ...data, ...options }
78
- const key = data.key || options.key
78
+ const key = data.key || options && options.key
79
79
 
80
80
  const body = await fetchRemote(key, { endpoint: 'api.symbols.dev' })
81
81
  const { version, ...config } = body
package/bin/sync.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { updateDynamycFile } from '@symbo.ls/socket'
4
- import * as asd from '@symbo.ls/socket/client.js'
4
+ import * as socketClient from '@symbo.ls/socket/client.js'
5
5
  import { program } from './program.js'
6
6
  import { loadModule } from './require.js'
7
7
 
@@ -20,7 +20,7 @@ program
20
20
  rc.then(data => {
21
21
  const opts = { ...data, ...options }
22
22
  const key = data.key || options.key
23
- asd.connect(key, {
23
+ socketClient.connect(key, {
24
24
  onConnect: (id, socket) => {
25
25
  console.log(id)
26
26
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbo.ls/cli",
3
- "version": "2.10.134",
3
+ "version": "2.10.148",
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": "ca88f67b0c989938a8118a539f75608bcbacc26a"
30
+ "gitHead": "99ff97342558bb96790aa71786360d0d899f0e79"
31
31
  }