chore: configure monorepo for appium3 (#20790)

* chore(appium): configure lerna/appium to publish appium 3 beta

* chore(appium)!: bump required node engine to latest
This commit is contained in:
Jonathan Lipps
2024-12-17 05:37:23 +09:00
committed by GitHub
parent e1e00ed97a
commit 71641f1761
13 changed files with 31 additions and 23 deletions
+1 -1
View File
@@ -14,7 +14,7 @@
"version": {
"conventionalCommits": true,
"createRelease": "github",
"allowBranch": "master"
"allowBranch": ["master", "appium3"]
}
},
"ignoreChanges": ["**/test/**", "**/*.md"],
+2 -2
View File
@@ -137,8 +137,8 @@
"yaml-js": "0.3.1"
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
"npm": ">=8"
"node": "^20.9.0 || >=22.11.0",
"npm": ">=10"
},
"publishConfig": {
"access": "public"
+5 -4
View File
@@ -1,6 +1,6 @@
{
"name": "appium",
"version": "2.13.1",
"version": "3.0.0-beta.0",
"description": "Automation for Apps.",
"keywords": [
"automation",
@@ -97,11 +97,12 @@
"yaml": "2.6.1"
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
"npm": ">=8"
"node": "^20.9.0 || >=22.11.0",
"npm": ">=10"
},
"publishConfig": {
"access": "public"
"access": "public",
"tag": "beta"
},
"gitHead": "3fa73a1d1a95e3868fbceb005f8b1deb4ac53eaf"
}
+1 -1
View File
@@ -3,7 +3,7 @@
"version": "1.0.0",
"private": true,
"peerDependencies": {
"appium": "^2.0.0-beta.42"
"appium": "^2.0.0-beta.42 || ^3.0.0-beta.0"
},
"devDependencies": {
"appium": "next"
+14 -7
View File
@@ -137,7 +137,10 @@ describe('Config', function () {
'v11.0.0',
'v12.0.0',
'v14.0.0',
'v14.17.0',
'v14.17.5',
'v16.0.0',
'v22.10.0',
];
for (const version of unsupportedVersions) {
it(`should fail if node is ${version}`, function () {
@@ -149,19 +152,23 @@ describe('Config', function () {
});
describe('supported nodes', function () {
it('should succeed if node is 14.17+', function () {
it('should succeed if node is 20.9+', function () {
// @ts-expect-error
process.version = 'v14.17.0';
process.version = 'v20.9.0';
checkNodeOk.should.not.throw();
// @ts-expect-error
process.version = 'v20.9.5';
checkNodeOk.should.not.throw();
});
it('should succeed if node is 16.13+', function () {
it('should succeed if node is 22.11+', function () {
// @ts-expect-error
process.version = 'v16.13.0';
process.version = 'v22.11.0';
checkNodeOk.should.not.throw();
});
it('should succeed if node is 18+', function () {
// @ts-expect-error
process.version = 'v18.0.0';
process.version = 'v22.11.5';
checkNodeOk.should.not.throw();
// @ts-expect-error
process.version = 'v23.0.0';
checkNodeOk.should.not.throw();
});
});
+1 -1
View File
@@ -54,7 +54,7 @@
"type-fest": "4.30.0"
},
"peerDependencies": {
"appium": "^2.0.0-beta.43",
"appium": "^2.0.0-beta.43 || ^3.0.0-beta.0",
"mocha": "*"
},
"engines": {
+1 -1
View File
@@ -45,7 +45,7 @@
"webdriverio": "8.40.6"
},
"peerDependencies": {
"appium": "^2.0.0-beta.35"
"appium": "^2.0.0-beta.35 || ^3.0.0-beta.0"
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
+1 -1
View File
@@ -51,7 +51,7 @@
"xpath": "0.0.34"
},
"peerDependencies": {
"appium": "^2.4.1"
"appium": "^2.4.1 || ^3.0.0-beta.0"
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
+1 -1
View File
@@ -47,7 +47,7 @@
"source-map-support": "0.5.21"
},
"peerDependencies": {
"appium": "^2.0.0-beta.35"
"appium": "^2.0.0-beta.35 || ^3.0.0-beta.0"
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
+1 -1
View File
@@ -47,7 +47,7 @@
"source-map-support": "0.5.21"
},
"peerDependencies": {
"appium": "^2.0.0"
"appium": "^2.0.0 || ^3.0.0-beta.0"
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
+1 -1
View File
@@ -48,7 +48,7 @@
"teen_process": "2.2.2"
},
"peerDependencies": {
"appium": "^2.0.0-beta.43",
"appium": "^2.0.0-beta.43 || ^3.0.0-beta.0",
"mocha": "*"
},
"engines": {
+1 -1
View File
@@ -44,7 +44,7 @@
"source-map-support": "0.5.21"
},
"peerDependencies": {
"appium": "^2.0.0-beta.35"
"appium": "^2.0.0-beta.35 || ^3.0.0-beta.0"
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",
+1 -1
View File
@@ -44,7 +44,7 @@
"xpath": "0.0.34"
},
"peerDependencies": {
"appium": "^2.0.0-beta.35"
"appium": "^2.0.0-beta.35 || ^3.0.0-beta.0"
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0",