@symbo.ls/cli 0.6.17 → 0.6.18

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.
Files changed (2) hide show
  1. package/bin/fetch.js +8 -5
  2. package/package.json +1 -1
package/bin/fetch.js CHANGED
@@ -1,16 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import 'v8-compile-cache'
4
- import { loadModule } from './require.js'
5
- import { Command } from 'commander'
4
+ import fs from 'fs'
6
5
  import fetch from 'node-fetch'
7
6
  import chalk from 'chalk'
7
+ import { loadModule } from './require.js'
8
+ import { Command } from 'commander'
8
9
 
9
10
  const pkg = loadModule('../package.json')
10
11
  const program = new Command()
11
12
 
12
13
  const API_URL = 'https://api.symbols.app/' // eslint-disable-line
13
- const DEFAULT_CONFIG = 'https://raw.githubusercontent.com/symbo-ls/uikit/8e7026a2216c68efad260961a77c9302d34c7aa4/packages/config-default/src/config.json'
14
+ const DEFAULT_CONFIG = 'https://raw.githubusercontent.com/symbo-ls/uikit/feature/monorepo/packages/config-default/src/config.json'
15
+ const LOG_DEST = 'https://raw.githubusercontent.com/symbo-ls/uikit/packages/config-default/src/config.json'
14
16
 
15
17
  program
16
18
  .version(pkg.version)
@@ -24,10 +26,11 @@ program
24
26
  const { version, ...config } = body
25
27
 
26
28
  console.log('')
27
- console.log(chalk.bold('Symbols'), 'config received: ', chalk.green(version))
29
+ console.log(chalk.bold('Symbols'), 'config fetched:', chalk.green(version))
30
+ console.log(chalk.dim('- Default config from:'), chalk.dim.underline(LOG_DEST))
28
31
 
29
32
  const path = process.cwd() + '/.symbolsrc.json'
30
- console.log(chalk.dim('Default config fetched: '), chalk.dim.underline(path))
33
+ console.log(chalk.dim('- .symbolsrc.json created:'), chalk.dim.underline(path))
31
34
  console.log('')
32
35
 
33
36
  fs.writeFile(path, JSON.stringify(body), err => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbo.ls/cli",
3
- "version": "0.6.17",
3
+ "version": "0.6.18",
4
4
  "description": "Fetch your Symbols configuration",
5
5
  "main": "bin/fetch.js",
6
6
  "author": "Symbols",