@ui5/tooling-webc
Advanced tools
Comparing version 0.2.6 to 0.2.7
@@ -107,2 +107,14 @@ const fs = require("fs"); | ||
// Notify the user of any missing api.json files | ||
let apiFilesMissing = false; | ||
apiFilesPaths.forEach(apiFilePath => { | ||
if (!fs.existsSync(apiFilePath)) { | ||
console.log(`Unable to read the ${apiFilePath} file.\nPlease run: "npm run build" / "yarn build" for the web components package first.`); | ||
apiFilesMissing = true; | ||
} | ||
}); | ||
if (apiFilesMissing) { | ||
process.exit(); | ||
} | ||
// build the API | ||
@@ -109,0 +121,0 @@ const apiFiles = apiFilesPaths.map(apiFilePath => `${fs.readFileSync(apiFilePath)}`); |
@@ -24,2 +24,6 @@ const fs = require("fs").promises; | ||
const output = await generateAll(packageName, packageConfig, aliases); | ||
if (output.length === 0) { | ||
console.log(`Warning: no files found for package: ${packageName}!\nPlease run: "npm run build" / "yarn build" for the web components package first.`); | ||
process.exit(); | ||
} | ||
@@ -26,0 +30,0 @@ try { |
{ | ||
"name": "@ui5/tooling-webc", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"description": "UI5 Tooling Extensions to include UI5 Web Components projects into OpenUI5/SAPUI5", | ||
@@ -5,0 +5,0 @@ "author": "SAP SE", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
116311
1951