@symbo.ls/cli 0.6.28 → 0.6.29

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/fetch.js CHANGED
@@ -8,7 +8,7 @@ import { exec } from 'child_process'
8
8
  import { program } from './program.js'
9
9
 
10
10
  const PACKAGE_PATH = process.cwd() + '/package.json'
11
- const RC_PATH = process.cwd() + '/node_modules/@symbo.ls/init/src/dynamic.json'
11
+ const RC_PATH = process.cwd() + '/.symbolsrc.json'
12
12
  const LOCAL_CONFIG_PATH = process.cwd() + '/node_modules/@symbo.ls/init/src/dynamic.json'
13
13
  const DEFAULT_REMOTE_REPOSITORY = 'https://github.com/symbo-ls/config-default/'
14
14
  const DEFAULT_REMOTE_CONFIG_PATH = 'https://raw.githubusercontent.com/symbo-ls/config-default/main/src/config.json'
package/bin/require.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createRequire } from 'module'
2
2
 
3
- class ImportError extends Error {} // Bring in the ability to create the 'require' method
3
+ class ImportError extends Error {} /* Bring in the ability to create the 'require' method */ // eslint-disable-line
4
4
  const require = createRequire(import.meta.url) // construct the require method
5
5
 
6
6
  export const loadModule = async (modulePath) => {
package/bin/sync.js CHANGED
@@ -2,10 +2,21 @@
2
2
 
3
3
  import { sync } from '@symbo.ls/socket'
4
4
  import { program } from './program.js'
5
+ import { loadModule } from './require.js'
6
+
7
+ const RC_PATH = process.cwd() + '/.symbolsrc.json'
8
+ let rc = {}
9
+ try {
10
+ rc = loadModule(RC_PATH) // eslint-disable-line
11
+ } catch (e) {}
5
12
 
6
13
  program
7
14
  .command('sync')
8
15
  .description('Sync with Symbols')
9
- .action(async () => {
10
- sync()
16
+ .option('-l, --live', 'Bypass the local build')
17
+ .action(async (options) => {
18
+ rc.then(data => {
19
+ const opts = { ...data, ...options }
20
+ sync(null, opts)
21
+ })
11
22
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbo.ls/cli",
3
- "version": "0.6.28",
3
+ "version": "0.6.29",
4
4
  "description": "Fetch your Symbols configuration",
5
5
  "main": "bin/fetch.js",
6
6
  "author": "Symbols",