@toptal/davinci-ci 3.1.1-alpha-feature-esm-migration-b7a1c917.27 → 3.1.1-alpha-feature-esm-migration-e551c09d.28

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/davinci-ci",
3
- "version": "3.1.1-alpha-feature-esm-migration-b7a1c917.27+b7a1c917",
3
+ "version": "3.1.1-alpha-feature-esm-migration-e551c09d.28+e551c09d",
4
4
  "description": "Continuos integrations tools for frontend projects",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -35,12 +35,12 @@
35
35
  "dependencies": {
36
36
  "@commitlint/cli": "^17.4.0",
37
37
  "@commitlint/config-conventional": "^17.1.0",
38
- "@toptal/davinci-cli-shared": "1.10.3-alpha-feature-esm-migration-b7a1c917.29+b7a1c917",
38
+ "@toptal/davinci-cli-shared": "1.10.3-alpha-feature-esm-migration-e551c09d.30+e551c09d",
39
39
  "danger": "^11.0.7",
40
40
  "markdown-table": "^2.0.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@jest/globals": "28.1.0"
44
44
  },
45
- "gitHead": "b7a1c917fc2cee48f71652bb6d6eda3ae34c42f5"
45
+ "gitHead": "e551c09d98a4e340ab16afb27a42fe52a8548d00"
46
46
  }
@@ -1,22 +1,23 @@
1
1
  const { schedule } = require('danger')
2
+ const {
3
+ config: davinciProjectConfig,
4
+ } = require('@toptal/davinci-cli-shared/config')
2
5
 
3
- const { conventionalCommits } = require('./plugins/conventional-commits/index.cjs')
4
- const { conventionalPRTitle } = require('./plugins/conventional-pr-title/index.cjs')
6
+ const {
7
+ conventionalCommits,
8
+ } = require('./plugins/conventional-commits/index.cjs')
9
+ const {
10
+ conventionalPRTitle,
11
+ } = require('./plugins/conventional-pr-title/index.cjs')
5
12
  const { checkAssigneeExist } = require('../plugins/empty-assignee.cjs')
6
13
 
7
-
8
14
  schedule(conventionalCommits)
9
15
  schedule(conventionalPRTitle)
10
16
 
11
- const setup = async () => {
12
- const { davinciProjectConfig } = await import('@toptal/davinci-cli-shared')
13
- const {
14
- master: { requireAssignee },
15
- } = davinciProjectConfig
17
+ const {
18
+ master: { requireAssignee },
19
+ } = davinciProjectConfig
16
20
 
17
- if (requireAssignee) {
18
- schedule(checkAssigneeExist)
19
- }
21
+ if (requireAssignee) {
22
+ schedule(checkAssigneeExist)
20
23
  }
21
-
22
- module.exports.default = setup
@@ -1,14 +1,15 @@
1
1
  /// <reference types="danger" />
2
2
  /* globals danger, fail */
3
+ const {
4
+ config: davinciProjectConfig,
5
+ } = require('@toptal/davinci-cli-shared/config')
3
6
 
4
- const setup = async () => {
5
- const { davinciProjectConfig } = await import('@toptal/davinci-cli-shared')
6
- const {
7
- master: { requireAssigneeWhiteList = [] },
8
- } = davinciProjectConfig
9
-
10
- const WHITELISTED_USERS = requireAssigneeWhiteList
7
+ const {
8
+ master: { requireAssigneeWhiteList = [] },
9
+ } = davinciProjectConfig
11
10
 
11
+ const WHITELISTED_USERS = requireAssigneeWhiteList
12
+ const checkAssigneeExist = () => {
12
13
  const isLocalRun = !danger.github
13
14
 
14
15
  if (isLocalRun || WHITELISTED_USERS.includes(danger.github.pr.user.login)) {
@@ -20,10 +21,6 @@ const setup = async () => {
20
21
  }
21
22
  }
22
23
 
23
- const checkAssigneeExist = () => {
24
- setup()
25
- }
26
-
27
24
  module.exports = {
28
25
  checkAssigneeExist,
29
26
  }
@@ -1,5 +1,7 @@
1
1
  const { schedule } = require('danger')
2
- const { davinciProjectConfig } = require('@toptal/davinci-cli-shared')
2
+ const {
3
+ config: davinciProjectConfig,
4
+ } = require('@toptal/davinci-cli-shared/config')
3
5
 
4
6
  const { toptalCommits } = require('./plugins/toptal-commits/index.cjs')
5
7
  const { toptalPRTitle } = require('./plugins/toptal-pr-title/index.cjs')