@toptal/davinci-bootstrap 4.0.7 → 4.0.8

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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1937](https://github.com/toptal/davinci/pull/1937) [`8b6806a6`](https://github.com/toptal/davinci/commit/8b6806a6ad1ef3f190e1e9e6a287aed12970b27f) Thanks [@dmaklygin](https://github.com/dmaklygin)! - ---
8
+
9
+ - apply identical formatting and success messages to all command logs.
10
+
11
+ - Updated dependencies [[`8b6806a6`](https://github.com/toptal/davinci/commit/8b6806a6ad1ef3f190e1e9e6a287aed12970b27f)]:
12
+ - @toptal/davinci-cli-shared@2.2.3
13
+
3
14
  ## 4.0.7
4
15
 
5
16
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/davinci-bootstrap",
3
- "version": "4.0.7",
3
+ "version": "4.0.8",
4
4
  "description": "Creates application from davinci template",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -35,7 +35,7 @@
35
35
  "url": "https://github.com/toptal/davinci/issues"
36
36
  },
37
37
  "dependencies": {
38
- "@toptal/davinci-cli-shared": "2.2.2",
38
+ "@toptal/davinci-cli-shared": "2.2.3",
39
39
  "@toptal/davinci-skeleton": "11.0.1",
40
40
  "@toptal/davinci-skeleton-lib": "0.2.0",
41
41
  "@toptal/davinci-skeleton-sub-app": "1.3.0",
@@ -7,6 +7,7 @@ import { print } from '@toptal/davinci-cli-shared'
7
7
  import { createRequire } from 'module'
8
8
 
9
9
  import workspace from '../utils/workspace.js'
10
+ // eslint-disable-next-line no-restricted-syntax
10
11
  import skeleton from '../utils/skeleton.js'
11
12
  import { APPS_PATH, NAMESPACES_PATH } from '../constants.js'
12
13
 
@@ -116,7 +117,7 @@ const installDependencies = async monorepoWorkspaceDir => {
116
117
  }
117
118
 
118
119
  const createCommand = async (appName, namespace) => {
119
- print.green(
120
+ print.header(
120
121
  'Creating',
121
122
  appName,
122
123
  namespace ? `in namespace ${namespace}` : '',
@@ -149,7 +150,7 @@ const createCommand = async (appName, namespace) => {
149
150
  // run yarn
150
151
  await installDependencies(monorepoWorkspaceDir)
151
152
 
152
- print.green('Application has been created.')
153
+ print.success('Application has been created.')
153
154
  } catch (err) {
154
155
  print.red(err)
155
156
  process.exit(1)
@@ -7,6 +7,7 @@ import { print } from '@toptal/davinci-cli-shared'
7
7
  import { createRequire } from 'module'
8
8
 
9
9
  import workspace from '../utils/workspace.js'
10
+ // eslint-disable-next-line no-restricted-syntax
10
11
  import skeleton from '../utils/skeleton.js'
11
12
  import { LIBS_PATH, NAMESPACES_PATH } from '../constants.js'
12
13
 
@@ -113,7 +114,7 @@ const installDependencies = async monorepoWorkspaceDir => {
113
114
  }
114
115
 
115
116
  const createCommand = async (libName, namespace) => {
116
- print.green(
117
+ print.header(
117
118
  'Creating',
118
119
  libName,
119
120
  namespace ? `in namespace ${namespace}` : '',
@@ -146,7 +147,7 @@ const createCommand = async (libName, namespace) => {
146
147
  // run yarn
147
148
  await installDependencies(monorepoWorkspaceDir)
148
149
 
149
- print.green('Library has been created.')
150
+ print.success('Library has been created.')
150
151
  } catch (err) {
151
152
  print.red(err)
152
153
  process.exit(1)
@@ -156,9 +157,7 @@ const createCommand = async (libName, namespace) => {
156
157
  const newLibCommandCreator = {
157
158
  command: 'new-lib',
158
159
  description: 'Create new library in monorepo',
159
- args: [
160
- ['<libName>', 'Library Name: folder name for the new library'],
161
- ],
160
+ args: [['<libName>', 'Library Name: folder name for the new library']],
162
161
  options: [
163
162
  {
164
163
  label:
@@ -160,7 +160,7 @@ const installDependencies = async destDir => {
160
160
  }
161
161
 
162
162
  const createCommand = async (appName, { skipInstall }) => {
163
- print.green('Creating', appName, '...')
163
+ print.header('Creating', appName, '...')
164
164
 
165
165
  const currentRunningDir = process.cwd()
166
166
  const currentDavinciRunningDir = thisScriptDirname
@@ -181,7 +181,7 @@ const createCommand = async (appName, { skipInstall }) => {
181
181
  await installDependencies(destDir)
182
182
  }
183
183
 
184
- print.green('Application has been created.')
184
+ print.success('Application has been created.')
185
185
  } catch (err) {
186
186
  print.red(err)
187
187
  process.exit(1)