@mouse_484/eslint-config 3.5.13 → 3.5.14

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/cli.js +6 -4
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -39,22 +39,24 @@ function spawnAsync(command, args, options = { stdio: 'inherit' }) {
39
39
  const child = spawn(command, args, options)
40
40
  child.on('close', resolve)
41
41
  child.on('error', reject)
42
- })
42
+ }).catch(console.error)
43
43
  }
44
44
 
45
45
  async function main() {
46
+ console.info('Starting ESLint config setup...')
47
+
46
48
  const pm = await detect()
47
49
 
48
50
  // Install source config
49
51
  const installCmd = resolveCommand(pm.agent, 'add', ['-D', SOURCE.name])
50
52
  await spawnAsync(installCmd.command, installCmd.args)
51
- console.log(`Installed ${SOURCE.name}`)
53
+ console.info(`Installed ${SOURCE.name}`)
52
54
 
53
55
  // Run source config setup
54
56
  const execCmd = resolveCommand(pm.agent, 'execute', [SOURCE.name])
55
57
  await spawnAsync(execCmd.command, execCmd.args)
56
58
 
57
- console.log(`Start replacing the config from ${SOURCE.name} to ${TARGET.name}`)
59
+ console.info(`Start replacing the config from ${SOURCE.name} to ${TARGET.name}`)
58
60
 
59
61
  // Update package.json
60
62
  const cwd = process.cwd()
@@ -97,7 +99,7 @@ async function main() {
97
99
  const finalInstallCmd = resolveCommand(pm.agent, 'install')
98
100
  await spawnAsync(finalInstallCmd.command, finalInstallCmd.args)
99
101
 
100
- console.log(`Successfully replaced the config from ${SOURCE.name} to ${TARGET.name}`)
102
+ console.info(`Successfully replaced the config from ${SOURCE.name} to ${TARGET.name}`)
101
103
  }
102
104
 
103
105
  main()
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mouse_484/eslint-config",
3
3
  "type": "module",
4
- "version": "3.5.13",
4
+ "version": "3.5.14",
5
5
  "author": "mouse_484",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/mouse484/config/tree/main/packages/eslint",