Skip to content

Commit d161a58

Browse files
authored
Remove deprecated title and main fields from io-package.json (#1115)
1 parent 18ce399 commit d161a58

File tree

18 files changed

+1
-35
lines changed

18 files changed

+1
-35
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
(at the beginning of a new line)
77
-->
88
## __WORK IN PROGRESS__
9+
* (AlCalzone) Remove deprecated `main` and `title` fields from `io-package.json` (#1115)
910
* (AlCalzone) Remove deprecated license field from `io-package.json` (#1114)
1011
* (AlCalzone) Add Node.js 22 as a supported version, set 20 as the default choice (#1112)
1112
* (AlCalzone) Update CI workflows for the adapter creator (#1111)

templates/io-package.json.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export = (async answers => {
99

1010
const isAdapter = answers.features.indexOf("adapter") > -1;
1111
const isWidget = answers.features.indexOf("vis") > -1;
12-
const useTypeScript = answers.language === "TypeScript";
1312
const useJsonConfig = answers.adminUi === "json";
1413
const useAdminReact = answers.adminUi === "react";
1514
const useTabReact = answers.tabReact === "yes";
@@ -80,7 +79,6 @@ export = (async answers => {
8079
"zh-cn": "首次出版"
8180
}
8281
},
83-
"title": "${title}",
8482
"titleLang": ${titleLang},
8583
"desc": ${descriptionLang},
8684
"authors": [
@@ -89,7 +87,6 @@ export = (async answers => {
8987
"keywords": ${JSON.stringify(answers.keywords || getDefaultAnswer("keywords"))},
9088
"licenseInformation": ${JSON.stringify(licenseInformation)},
9189
"platform": "Javascript/Node.js",
92-
"main": "${useTypeScript ? "build/" : ""}main.js",
9390
"icon": "${getIconName(answers)}",
9491
"enabled": true,
9592
"extIcon": "https://raw.githubusercontent.com/${answers.authorGithub}/ioBroker.${answers.adapterName}/${defaultBranch}/admin/${getIconName(answers)}",

test/baselines/adapter_JS_JsonUI_ESLint_TypeChecking_Spaces_SingleQuotes_Apache-2.0/io-package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"zh-cn": "首次出版"
1818
}
1919
},
20-
"title": "Is used to test the creator",
2120
"titleLang": {
2221
"en": "Is used to test the creator",
2322
"de": "Mock translation of 'Is used to test the creator' to 'de'",
@@ -58,7 +57,6 @@
5857
"license": "Apache-2.0"
5958
},
6059
"platform": "Javascript/Node.js",
61-
"main": "main.js",
6260
"icon": "test-adapter.png",
6361
"enabled": true,
6462
"extIcon": "https://raw.githubusercontent.com/AlCalzone/ioBroker.test-adapter/main/admin/test-adapter.png",

test/baselines/adapter_JS_React/io-package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"zh-cn": "首次出版"
1818
}
1919
},
20-
"title": "Is used to test the creator",
2120
"titleLang": {
2221
"en": "Is used to test the creator",
2322
"de": "Mock translation of 'Is used to test the creator' to 'de'",
@@ -58,7 +57,6 @@
5857
"license": "MIT"
5958
},
6059
"platform": "Javascript/Node.js",
61-
"main": "main.js",
6260
"icon": "test-adapter.png",
6361
"enabled": true,
6462
"extIcon": "https://raw.githubusercontent.com/AlCalzone/ioBroker.test-adapter/main/admin/test-adapter.png",

test/baselines/adapter_TS_ESLint_Tabs_DoubleQuotes_MIT/io-package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"zh-cn": "首次出版"
1818
}
1919
},
20-
"title": "Is used to test the creator",
2120
"titleLang": {
2221
"en": "Is used to test the creator",
2322
"de": "Mock translation of 'Is used to test the creator' to 'de'",
@@ -58,7 +57,6 @@
5857
"license": "MIT"
5958
},
6059
"platform": "Javascript/Node.js",
61-
"main": "build/main.js",
6260
"icon": "test-adapter.png",
6361
"enabled": true,
6462
"extIcon": "https://raw.githubusercontent.com/AlCalzone/ioBroker.test-adapter/main/admin/test-adapter.png",

test/baselines/adapter_TS_React/io-package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"zh-cn": "首次出版"
1818
}
1919
},
20-
"title": "Is used to test the creator",
2120
"titleLang": {
2221
"en": "Is used to test the creator",
2322
"de": "Mock translation of 'Is used to test the creator' to 'de'",
@@ -58,7 +57,6 @@
5857
"license": "MIT"
5958
},
6059
"platform": "Javascript/Node.js",
61-
"main": "build/main.js",
6260
"icon": "test-adapter.png",
6361
"enabled": true,
6462
"extIcon": "https://raw.githubusercontent.com/AlCalzone/ioBroker.test-adapter/main/admin/test-adapter.png",

test/baselines/connectionIndicator_yes/io-package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"zh-cn": "首次出版"
1818
}
1919
},
20-
"title": "Is used to test the creator",
2120
"titleLang": {
2221
"en": "Is used to test the creator",
2322
"de": "Mock translation of 'Is used to test the creator' to 'de'",
@@ -58,7 +57,6 @@
5857
"license": "MIT"
5958
},
6059
"platform": "Javascript/Node.js",
61-
"main": "build/main.js",
6260
"icon": "test-adapter.png",
6361
"enabled": true,
6462
"extIcon": "https://raw.githubusercontent.com/AlCalzone/ioBroker.test-adapter/main/admin/test-adapter.png",

test/baselines/connectionType/io-package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"zh-cn": "首次出版"
1818
}
1919
},
20-
"title": "Is used to test the creator",
2120
"titleLang": {
2221
"en": "Is used to test the creator",
2322
"de": "Mock translation of 'Is used to test the creator' to 'de'",
@@ -58,7 +57,6 @@
5857
"license": "MIT"
5958
},
6059
"platform": "Javascript/Node.js",
61-
"main": "build/main.js",
6260
"icon": "test-adapter.png",
6361
"enabled": true,
6462
"extIcon": "https://raw.githubusercontent.com/AlCalzone/ioBroker.test-adapter/main/admin/test-adapter.png",

test/baselines/customAdapterSettings/io-package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"zh-cn": "首次出版"
1818
}
1919
},
20-
"title": "Is used to test the creator",
2120
"titleLang": {
2221
"en": "Is used to test the creator",
2322
"de": "Mock translation of 'Is used to test the creator' to 'de'",
@@ -58,7 +57,6 @@
5857
"license": "MIT"
5958
},
6059
"platform": "Javascript/Node.js",
61-
"main": "build/main.js",
6260
"icon": "test-adapter.png",
6361
"enabled": true,
6462
"extIcon": "https://raw.githubusercontent.com/AlCalzone/ioBroker.test-adapter/main/admin/test-adapter.png",

test/baselines/description_empty_1/io-package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"zh-cn": "首次出版"
1818
}
1919
},
20-
"title": "Is used to test the creator",
2120
"titleLang": {
2221
"en": "Is used to test the creator",
2322
"de": "Mock translation of 'Is used to test the creator' to 'de'",
@@ -58,7 +57,6 @@
5857
"license": "MIT"
5958
},
6059
"platform": "Javascript/Node.js",
61-
"main": "build/main.js",
6260
"icon": "test-adapter.png",
6361
"enabled": true,
6462
"extIcon": "https://raw.githubusercontent.com/AlCalzone/ioBroker.test-adapter/main/admin/test-adapter.png",

0 commit comments

Comments
 (0)