@toptal/davinci-qa 11.2.6-alpha-fx-qa-postinstall.9 → 11.2.6-alpha-fx-qa-postinstall.10

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/package.json +6 -8
  2. package/postinstall.js +0 -32
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/davinci-qa",
3
- "version": "11.2.6-alpha-fx-qa-postinstall.9+07ce50ce",
3
+ "version": "11.2.6-alpha-fx-qa-postinstall.10+5317db0c",
4
4
  "description": "QA package to test your application",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -23,8 +23,7 @@
23
23
  "scripts": {
24
24
  "build:package": "../../bin/build-package.js",
25
25
  "prepublishOnly": "../../bin/prepublish.js",
26
- "test": "echo \"Error: run tests from root\" && exit 1",
27
- "postinstall": "node ./postinstall"
26
+ "test": "echo \"Error: run tests from root\" && exit 1"
28
27
  },
29
28
  "bugs": {
30
29
  "url": "https://github.com/toptal/davinci/issues"
@@ -38,8 +37,8 @@
38
37
  "@cypress/webpack-preprocessor": "^5.12.0",
39
38
  "@testing-library/jest-dom": "^5.16.4",
40
39
  "@testing-library/react": "^12.1.2",
41
- "@toptal/davinci-cli-shared": "1.5.5-alpha-fx-qa-postinstall.89+07ce50ce",
42
- "@toptal/davinci-engine": "7.4.3-alpha-fx-qa-postinstall.9+07ce50ce",
40
+ "@toptal/davinci-cli-shared": "1.5.5-alpha-fx-qa-postinstall.90+5317db0c",
41
+ "@toptal/davinci-engine": "7.4.3-alpha-fx-qa-postinstall.10+5317db0c",
43
42
  "@types/jest": "^27.5.1",
44
43
  "babel-jest": "^28.1.0",
45
44
  "cypress": "^10.0.3",
@@ -61,8 +60,7 @@
61
60
  },
62
61
  "devDependencies": {
63
62
  "json5": "^2.2.1",
64
- "mocha": "^10.0.0",
65
- "postinstall-postinstall": "^2.1.0"
63
+ "mocha": "^10.0.0"
66
64
  },
67
- "gitHead": "07ce50ce6d00c8bbd69b531b2198c78b7e929481"
65
+ "gitHead": "5317db0cbe9a4c4a8c9ee24ea78639ebfd961f30"
68
66
  }
package/postinstall.js DELETED
@@ -1,32 +0,0 @@
1
- const fs = require('fs-extra')
2
- const semver = require('semver')
3
-
4
- const packageJsonPath = './package.json'
5
-
6
- const checkDavinciEngineForWebpackVersions = () => {
7
- // in this version, davinci-engine became a dependency for qa
8
- const qaMinVersion = '11.1.1'
9
- // in this version, webpack was updated to v5
10
- const engineWebpackV5UpdateVersion = '3.0.0'
11
- const packageJson = fs.readJSONSync(packageJsonPath)
12
-
13
- const engineVersion = packageJson.dependencies['@toptal/davinci-engine']
14
- const qaVersion = packageJson.dependencies['@toptal/davinci-qa']
15
-
16
- if (
17
- engineVersion &&
18
- qaVersion &&
19
- semver.gte(qaVersion, qaMinVersion) &&
20
- semver.lt(engineVersion, engineWebpackV5UpdateVersion)
21
- ) {
22
- throw new Error(
23
- `davinci-qa packages requires davinci-engine@v4.0.0 or above to work with compatible webpack version. ${engineVersion} ${qaVersion}`
24
- )
25
- }
26
-
27
- // if (semver.lt(qaVersion, qaMinVersion) && semver.gte(engineVersion, engineWebpackV5UpdateVersion)) {
28
-
29
- // }
30
- }
31
-
32
- checkDavinciEngineForWebpackVersions()