@sap-ux/app-config-writer 0.6.124 → 0.6.125
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.
|
@@ -42,7 +42,7 @@ async function convertEslintConfig(basePath, options) {
|
|
|
42
42
|
await removeFioriToolsFromExistingConfig(basePath, fs, logger);
|
|
43
43
|
await runMigrationCommand(basePath, fs);
|
|
44
44
|
await injectFioriToolsIntoMigratedConfig(basePath, fs, options.config, logger);
|
|
45
|
-
await updatePackageJson(basePath, fs);
|
|
45
|
+
await updatePackageJson(basePath, fs, logger);
|
|
46
46
|
return fs;
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
@@ -216,14 +216,20 @@ async function spawnMigrationCommand(basePath, configFileName) {
|
|
|
216
216
|
*
|
|
217
217
|
* @param basePath - base path to be used for the conversion
|
|
218
218
|
* @param fs - file system reference
|
|
219
|
+
* @param logger - logger to report info to the user
|
|
219
220
|
*/
|
|
220
|
-
async function updatePackageJson(basePath, fs) {
|
|
221
|
+
async function updatePackageJson(basePath, fs, logger) {
|
|
221
222
|
const packageJsonPath = (0, node_path_1.join)(basePath, project_access_1.FileName.Package);
|
|
222
223
|
const packageJson = fs.readJSON(packageJsonPath);
|
|
223
224
|
packageJson.devDependencies ??= {};
|
|
224
225
|
packageJson.devDependencies[packageName.ESLINT] = '^9.0.0';
|
|
225
226
|
packageJson.devDependencies[packageName.ESLINT_PLUGIN_FIORI_TOOLS] = '^9.0.0';
|
|
226
227
|
delete packageJson.devDependencies[packageName.ESLINT_PLUGIN_FIORI_CUSTOM];
|
|
228
|
+
packageJson.scripts ??= {};
|
|
229
|
+
if (packageJson.scripts['lint']) {
|
|
230
|
+
logger?.info('The `lint` script in the `package.json` file will be overwritten.');
|
|
231
|
+
}
|
|
232
|
+
packageJson.scripts['lint'] = 'eslint ./';
|
|
227
233
|
fs.writeJSON(packageJsonPath, packageJson);
|
|
228
234
|
}
|
|
229
235
|
//# sourceMappingURL=convert.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/app-config-writer",
|
|
3
3
|
"description": "Add or update configuration for SAP Fiori tools application",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.125",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"@sap-ux/axios-extension": "1.25.24",
|
|
32
32
|
"@sap-ux/ui5-application-writer": "1.8.1",
|
|
33
33
|
"@sap-ux/btp-utils": "1.1.10",
|
|
34
|
-
"@sap-ux/logger": "0.8.2",
|
|
35
34
|
"@sap-ux/project-access": "1.35.14",
|
|
36
35
|
"@sap-ux/store": "1.5.10",
|
|
36
|
+
"@sap-ux/logger": "0.8.2",
|
|
37
37
|
"@sap-ux/ui5-config": "0.30.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@types/cross-spawn": "6.0.6",
|
|
46
46
|
"axios": "1.13.5",
|
|
47
47
|
"nock": "14.0.11",
|
|
48
|
-
"@sap-ux/preview-middleware": "0.24.
|
|
48
|
+
"@sap-ux/preview-middleware": "0.24.5"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": ">=20.x"
|