@symbo.ls/cli 2.10.259 → 2.10.273
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 +4 -1
- package/package.json +2 -2
package/bin/convert.js
CHANGED
|
@@ -24,6 +24,8 @@ async function mkdirp (dir) {
|
|
|
24
24
|
return null
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
const IGNORED_FILES = ['index.js', 'package.json', 'node_modules', 'dist']
|
|
28
|
+
|
|
27
29
|
program
|
|
28
30
|
.command('convert')
|
|
29
31
|
.description('Recursively convert and copy all DomQL components under a directory')
|
|
@@ -53,7 +55,7 @@ program
|
|
|
53
55
|
await mkdirp(tmpDirPath)
|
|
54
56
|
await mkdirp(destPath)
|
|
55
57
|
|
|
56
|
-
const origFiles = await fs.promises.readdir(srcPath)
|
|
58
|
+
const origFiles = await (await fs.promises.readdir(srcPath)).filter(file => !IGNORED_FILES.includes(file))
|
|
57
59
|
|
|
58
60
|
// Bundle components
|
|
59
61
|
await esbuild.build({
|
|
@@ -68,6 +70,7 @@ program
|
|
|
68
70
|
// Convert components
|
|
69
71
|
const componentDirs = await fs.promises.readdir(tmpDirPath)
|
|
70
72
|
for (const componentDir of componentDirs) {
|
|
73
|
+
console.log(componentDirs)
|
|
71
74
|
const importDir = path.join(tmpDirPath, componentDir)
|
|
72
75
|
if ((await fs.promises.stat(importDir)).isDirectory()) {
|
|
73
76
|
// Import the module
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/cli",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.273",
|
|
4
4
|
"description": "Fetch your Symbols configuration",
|
|
5
5
|
"main": "bin/fetch.js",
|
|
6
6
|
"author": "Symbols",
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"node-fetch": "^3.1.0",
|
|
26
26
|
"v8-compile-cache": "^2.3.0"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "3c31d52ceaa8952aae3306e6d553ed3ddd8202b9"
|
|
29
29
|
}
|