@symbo.ls/cli 2.10.133 → 2.10.135
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 +8 -3
- package/package.json +2 -2
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 ${
|
|
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
|
-
|
|
108
|
+
|
|
109
|
+
console.groupEnd()
|
|
105
110
|
|
|
106
111
|
// Write file
|
|
107
112
|
if (fileContents.length > 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/cli",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.135",
|
|
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": "babcdc69829c0cff99804ea15312b8ae564729d8"
|
|
31
31
|
}
|