@forge/manifest
13.3.0-next.1013.3.0-next.11
out/validators/resources-validator.js~
out/validators/resources-validator.jsModified+3−3
Index: package/out/validators/resources-validator.js
===================================================================
--- package/out/validators/resources-validator.js
+++ package/out/validators/resources-validator.js
@@ -65,9 +65,9 @@
...(0, utils_1.findPosition)(moduleKey, yamlContentByLine)
});
return;
}
- if (module.render === 'native' && !resource.package && this.isHtmlEntryFile(entryPath)) {
+ if (module.render === 'native' && !resource.bundler && this.isHtmlEntryFile(entryPath)) {
validationErrors.push({
message: text_1.errors.resources.invalidUiKitEntryFileType(displayEntryPath, moduleKey),
reference: text_1.References.Resources,
level: 'error',
@@ -111,9 +111,9 @@
if (!resourceType) {
return;
}
Object.entries(entryMap).forEach(([entryKey, entryPath]) => {
- if (resourceType === 'native' && !resource.package && this.isHtmlEntryFile(entryPath)) {
+ if (resourceType === 'native' && !resource.bundler && this.isHtmlEntryFile(entryPath)) {
validationErrors.push({
message: text_1.errors.resources.invalidUiKitResourceEntryFileType(resource.key, entryKey, entryPath),
reference: text_1.References.Resources,
level: 'error',
@@ -189,9 +189,9 @@
const resourcePathDir = (0, path_1.resolve)(manifestDir, resourcePath);
if (!fs_1.default.existsSync(resourcePathDir)) {
return;
}
- if (module.render === 'native' && !resource.package) {
+ if (module.render === 'native' && !resource.bundler) {
if (fs_1.default.lstatSync(resourcePathDir).isDirectory()) {
validationErrors.push({
message: text_1.errors.modules.wrongResourceType(resourcePath),
reference: text_1.References.Resources,