@symbo.ls/cli 2.11.330 → 2.11.352
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/fs.js +23 -0
- package/package.json +2 -2
package/bin/fs.js
CHANGED
|
@@ -7,6 +7,9 @@ import { createPatch } from 'diff'
|
|
|
7
7
|
|
|
8
8
|
const { deepDestringify, objectToString, joinArrays, isString } = utils
|
|
9
9
|
|
|
10
|
+
const LOCAL_CONFIG_PATH =
|
|
11
|
+
process.cwd() + '/node_modules/@symbo.ls/init/dynamic.json'
|
|
12
|
+
|
|
10
13
|
const keys = ['components', 'snippets', 'pages']
|
|
11
14
|
const singleFileKeys = ['designSystem', 'state']
|
|
12
15
|
const defaultExports = ['pages', 'designSystem', 'state']
|
|
@@ -148,6 +151,26 @@ export async function createFs (
|
|
|
148
151
|
|
|
149
152
|
await fs.promises.writeFile(filePath, stringifiedContent, 'utf8')
|
|
150
153
|
}
|
|
154
|
+
|
|
155
|
+
// Generate final package.json string
|
|
156
|
+
// function createPackageJson (key, data, distDir, update) {
|
|
157
|
+
// const genStr = JSON.stringify({
|
|
158
|
+
// name: `@symbo.ls/${desiredFormat}-${packageName}`,
|
|
159
|
+
// version: packageStruct.version ?? '1.0.0',
|
|
160
|
+
// license: packageStruct.license ?? 'UNLICENSED',
|
|
161
|
+
// dependencies: deps,
|
|
162
|
+
// peerDependencies: {
|
|
163
|
+
// smbls: '^18.2.0',
|
|
164
|
+
// 'react-dom': '^18.2.0'
|
|
165
|
+
// },
|
|
166
|
+
// main: 'index.js',
|
|
167
|
+
// source: 'index.js'
|
|
168
|
+
// }, undefined, 2)
|
|
169
|
+
|
|
170
|
+
// fs.writeFileSync(destPath, genStr)
|
|
171
|
+
// }
|
|
172
|
+
|
|
173
|
+
await fs.writeFileSync(LOCAL_CONFIG_PATH, '{}')
|
|
151
174
|
}
|
|
152
175
|
|
|
153
176
|
async function findDiff (targetDir, distDir) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/cli",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.352",
|
|
4
4
|
"description": "Fetch your Symbols configuration",
|
|
5
5
|
"main": "bin/fetch.js",
|
|
6
6
|
"author": "Symbols",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"node-fetch": "^3.1.0",
|
|
27
27
|
"v8-compile-cache": "^2.3.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "c294479f06e6f576951c7c1cb3df309a08d59dc4"
|
|
30
30
|
}
|