@automattic/vip 2.31.1-dev → 2.31.1-dev3
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/.editorconfig +11 -0
- package/.prettierignore +6 -0
- package/CONTRIBUTING.md +20 -19
- package/dist/bin/vip-app-list.js +12 -10
- package/dist/bin/vip-dev-env-start.js +4 -1
- package/dist/bin/vip-dev-env-sync-sql.js +1 -1
- package/dist/bin/vip-export-sql.js +3 -2
- package/dist/bin/vip-import-media-abort.js +3 -3
- package/dist/bin/vip-import-media.js +3 -3
- package/dist/bin/vip-import-sql.js +2 -1
- package/dist/bin/vip-sync.js +27 -13
- package/dist/bin/vip-validate-preflight.js +16 -14
- package/dist/bin/vip-wp.js +9 -9
- package/dist/commands/backup-db.js +30 -26
- package/dist/commands/export-sql.js +2 -3
- package/dist/lib/api/cache-purge.js +2 -10
- package/dist/lib/app-logs/app-logs.js +10 -4
- package/dist/lib/cli/format.js +2 -2
- package/dist/lib/config/software.js +10 -9
- package/dist/lib/constants/dev-environment.js +3 -6
- package/dist/lib/dev-environment/dev-environment-cli.js +3 -3
- package/dist/lib/dev-environment/dev-environment-core.js +52 -41
- package/dist/lib/dev-environment/dev-environment-lando.js +3 -1
- package/dist/lib/envvar/api-delete.js +2 -11
- package/dist/lib/envvar/api-get-all.js +3 -10
- package/dist/lib/envvar/api-list.js +3 -10
- package/dist/lib/envvar/api-set.js +2 -12
- package/dist/lib/media-import/status.js +18 -18
- package/dist/lib/validations/site-type.js +1 -1
- package/dist/lib/validations/sql.js +2 -1
- package/dist/lib/vip-import-validate-files.js +1 -0
- package/helpers/check-version.js +7 -5
- package/helpers/prepublishOnly.js +90 -0
- package/npm-shrinkwrap.json +238 -3936
- package/package.json +12 -12
- package/tsconfig.json +5 -9
- package/automattic-vip-2.31.1-dev.tgz +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/vip",
|
|
3
|
-
"version": "2.31.1-
|
|
3
|
+
"version": "2.31.1-dev3",
|
|
4
4
|
"description": "The VIP Javascript library & CLI",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -57,17 +57,21 @@
|
|
|
57
57
|
"test": "npm run lint && npm run flow && npm run check-types && jest --coverage --testPathIgnorePatterns __tests__/devenv-e2e/",
|
|
58
58
|
"test:e2e:dev-env": "jest -c __tests__/devenv-e2e/jest/jest.config.js",
|
|
59
59
|
"clean": "rimraf dist",
|
|
60
|
+
"cmd:format": "prettier '**/*.(js|json|jsx|md|ts|tsx|yml|yaml)'",
|
|
61
|
+
"cmd:lint": "eslint --ext 'js,jsx,ts,tsx'",
|
|
60
62
|
"prepare": "npm run clean && npm run build",
|
|
61
63
|
"check-types": "tsc",
|
|
62
64
|
"postinstall": "node ./helpers/check-version.js",
|
|
63
65
|
"build": "babel src -d dist --extensions=\".js,.ts\"",
|
|
64
66
|
"build:watch": "babel src -d dist --watch --source-maps --extensions=\".js,.ts\"",
|
|
65
67
|
"flow": "flow",
|
|
68
|
+
"format": "npm run cmd:format -- --write",
|
|
69
|
+
"format:check": "npm run cmd:format -- --check",
|
|
66
70
|
"jest": "jest --testPathIgnorePatterns __tests__/devenv-e2e/",
|
|
67
|
-
"lint": "
|
|
71
|
+
"lint": "npm run cmd:lint .",
|
|
72
|
+
"lint:fix": "npm run cmd:lint . -- --fix",
|
|
68
73
|
"publish-please": "publish-please",
|
|
69
|
-
"prepublishOnly": "
|
|
70
|
-
"prePublishScript": "check-node-version --package && npm test"
|
|
74
|
+
"prepublishOnly": "node ./helpers/prepublishOnly.js"
|
|
71
75
|
},
|
|
72
76
|
"repository": {
|
|
73
77
|
"type": "git",
|
|
@@ -92,7 +96,7 @@
|
|
|
92
96
|
},
|
|
93
97
|
"homepage": "https://github.com/Automattic/vip#readme",
|
|
94
98
|
"devDependencies": {
|
|
95
|
-
"@automattic/eslint-plugin-wpvip": "
|
|
99
|
+
"@automattic/eslint-plugin-wpvip": "0.5.8",
|
|
96
100
|
"@babel/cli": "7.22.5",
|
|
97
101
|
"@babel/core": "7.22.5",
|
|
98
102
|
"@babel/eslint-parser": "7.22.5",
|
|
@@ -125,11 +129,10 @@
|
|
|
125
129
|
"dockerode": "^3.3.4",
|
|
126
130
|
"eslint": "^8.35.0",
|
|
127
131
|
"eslint-plugin-flowtype": "^8.0.3",
|
|
128
|
-
"flow-bin": "^0.
|
|
132
|
+
"flow-bin": "^0.210.0",
|
|
129
133
|
"jest": "^29.5.0",
|
|
130
134
|
"nock": "13.3.1",
|
|
131
|
-
"prettier": "
|
|
132
|
-
"publish-please": "5.5.2",
|
|
135
|
+
"prettier": "npm:wp-prettier@2.8.5",
|
|
133
136
|
"rimraf": "5.0.1",
|
|
134
137
|
"typescript": "^5.1.3"
|
|
135
138
|
},
|
|
@@ -157,7 +160,7 @@
|
|
|
157
160
|
"node-fetch": "^2.6.1",
|
|
158
161
|
"opn": "5.5.0",
|
|
159
162
|
"proxy-from-env": "^1.1.0",
|
|
160
|
-
"semver": "7.5.
|
|
163
|
+
"semver": "7.5.3",
|
|
161
164
|
"shelljs": "^0.8.5",
|
|
162
165
|
"single-line-log": "1.1.2",
|
|
163
166
|
"socket.io-client": "^4.5.3",
|
|
@@ -172,9 +175,6 @@
|
|
|
172
175
|
"@postman/node-keytar": "~7.9.3"
|
|
173
176
|
},
|
|
174
177
|
"overrides": {
|
|
175
|
-
"publish-please": {
|
|
176
|
-
"lodash": "4.17.21"
|
|
177
|
-
},
|
|
178
178
|
"@lando/compose": {
|
|
179
179
|
"js-yaml": "^4.1.0"
|
|
180
180
|
},
|
package/tsconfig.json
CHANGED
|
@@ -14,10 +14,7 @@
|
|
|
14
14
|
"resolveJsonModule": true,
|
|
15
15
|
"baseUrl": ".",
|
|
16
16
|
"paths": {
|
|
17
|
-
"*": [
|
|
18
|
-
"./types/*",
|
|
19
|
-
"./node_modules/*"
|
|
20
|
-
]
|
|
17
|
+
"*": [ "./types/*", "./node_modules/*" ]
|
|
21
18
|
},
|
|
22
19
|
// It's worth enabling this, I promise!
|
|
23
20
|
"noImplicitAny": true
|
|
@@ -28,10 +25,9 @@
|
|
|
28
25
|
"config",
|
|
29
26
|
"__tests__",
|
|
30
27
|
"__fixtures__",
|
|
31
|
-
"noImplictAnyImportBypass.d.ts"
|
|
28
|
+
"noImplictAnyImportBypass.d.ts",
|
|
29
|
+
// built-in globals like `console` doesn't work properly with the TypeScript language server without the following line
|
|
30
|
+
"./node_modules/@types/node/globals.d.ts"
|
|
32
31
|
],
|
|
33
|
-
"exclude": [
|
|
34
|
-
"node_modules",
|
|
35
|
-
"**/*.js"
|
|
36
|
-
]
|
|
32
|
+
"exclude": [ "**/*.js" ]
|
|
37
33
|
}
|
|
Binary file
|