@sap-ux/adp-tooling 1.0.17 → 1.0.18
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.
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { fileURLToPath } from 'node:url';
|
|
2
|
+
import { dirname, join } from 'node:path';
|
|
2
3
|
import { readFileSync } from 'node:fs';
|
|
3
4
|
import { getTemplatePath } from '../templates.js';
|
|
4
5
|
import { enhanceUI5DeployYaml, enhanceUI5Yaml, hasDeployConfig, enhanceUI5YamlWithCustomConfig, enhanceUI5YamlWithCustomTask, enhanceUI5YamlWithTranspileMiddleware, enhanceUI5YamlWithCfCustomTask, enhanceUI5YamlWithFioriToolsMiddleware } from './options.js';
|
|
5
6
|
import { UI5Config, UI5_DEFAULT, getEsmTypesVersion, getTypesPackage, getTypesVersion } from '@sap-ux/ui5-config';
|
|
7
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
6
8
|
/**
|
|
7
9
|
* Retrieves the package name and version from the package.json file located two levels up the directory tree.
|
|
8
10
|
*
|
|
@@ -14,7 +16,7 @@ export function getPackageJSONInfo() {
|
|
|
14
16
|
version: 'NO_VERSION_FOUND'
|
|
15
17
|
};
|
|
16
18
|
try {
|
|
17
|
-
return JSON.parse(readFileSync(join(
|
|
19
|
+
return JSON.parse(readFileSync(join(__dirname, '../../package.json'), 'utf-8'));
|
|
18
20
|
}
|
|
19
21
|
catch (e) {
|
|
20
22
|
return defaultPackage;
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"bugs": {
|
|
11
11
|
"url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Aadp-tooling"
|
|
12
12
|
},
|
|
13
|
-
"version": "1.0.
|
|
13
|
+
"version": "1.0.18",
|
|
14
14
|
"license": "Apache-2.0",
|
|
15
15
|
"author": "@SAP/ux-tools-team",
|
|
16
16
|
"main": "dist/index.js",
|