@forge/manifest 13.2.0 → 13.3.0-next.0

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @forge/manifest
2
2
 
3
+ ## 13.3.0-next.0
4
+
5
+ ### Minor Changes
6
+
7
+ - d706cd8: Add "package" property to resource manifest definition to allow custom bundling for UI Kit resources
8
+
3
9
  ## 13.2.0
4
10
 
5
11
  ### Minor Changes
@@ -33253,6 +33253,11 @@
33253
33253
  "path": {
33254
33254
  "type": "string"
33255
33255
  },
33256
+ "package": {
33257
+ "type": "string",
33258
+ "enum": ["manual@2026"],
33259
+ "description": "For UI Kit resources only. When set, the CLI treats the resource path as already-built output."
33260
+ },
33256
33261
  "entry": {
33257
33262
  "type": "object",
33258
33263
  "minProperties": 1,
@@ -76621,6 +76621,10 @@ export interface HostedResourcesSchema {
76621
76621
  */
76622
76622
  key: string;
76623
76623
  path: string;
76624
+ /**
76625
+ * For UI Kit resources only. When set, the CLI treats the resource path as already-built output.
76626
+ */
76627
+ package?: 'manual@2026';
76624
76628
  entry?: {
76625
76629
  [k: string]: string;
76626
76630
  };
@@ -1 +1 @@
1
- {"version":3,"file":"resources-validator.d.ts","sourceRoot":"","sources":["../../src/validators/resources-validator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAGrF,OAAO,EAAyB,cAAc,EAAmB,MAAM,oBAAoB,CAAC;AAC5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAUrC,qBAAa,kBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IAEzF,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,8BAA8B;IAoGtC,OAAO,CAAC,4BAA4B;IAwBpC,OAAO,CAAC,+BAA+B;IAwCjC,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;CAsOrD"}
1
+ {"version":3,"file":"resources-validator.d.ts","sourceRoot":"","sources":["../../src/validators/resources-validator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAGrF,OAAO,EAAyB,cAAc,EAAmB,MAAM,oBAAoB,CAAC;AAC5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAUrC,qBAAa,kBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IAEzF,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,8BAA8B;IAqGtC,OAAO,CAAC,4BAA4B;IAwBpC,OAAO,CAAC,+BAA+B;IAwCjC,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;CAsOrD"}
@@ -66,7 +66,7 @@ class ResourcesValidator {
66
66
  });
67
67
  return;
68
68
  }
69
- if (module.render === 'native' && this.isHtmlEntryFile(entryPath)) {
69
+ if (module.render === 'native' && !resource.package && this.isHtmlEntryFile(entryPath)) {
70
70
  validationErrors.push({
71
71
  message: text_1.errors.resources.invalidUiKitEntryFileType(displayEntryPath, moduleKey),
72
72
  reference: text_1.References.Resources,
@@ -112,7 +112,7 @@ class ResourcesValidator {
112
112
  return;
113
113
  }
114
114
  Object.entries(entryMap).forEach(([entryKey, entryPath]) => {
115
- if (resourceType === 'native' && this.isHtmlEntryFile(entryPath)) {
115
+ if (resourceType === 'native' && !resource.package && this.isHtmlEntryFile(entryPath)) {
116
116
  validationErrors.push({
117
117
  message: text_1.errors.resources.invalidUiKitResourceEntryFileType(resource.key, entryKey, entryPath),
118
118
  reference: text_1.References.Resources,
@@ -190,7 +190,7 @@ class ResourcesValidator {
190
190
  if (!fs_1.default.existsSync(resourcePathDir)) {
191
191
  return;
192
192
  }
193
- if (module.render === 'native') {
193
+ if (module.render === 'native' && !resource.package) {
194
194
  if (fs_1.default.lstatSync(resourcePathDir).isDirectory()) {
195
195
  validationErrors.push({
196
196
  message: text_1.errors.modules.wrongResourceType(resourcePath),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/manifest",
3
- "version": "13.2.0",
3
+ "version": "13.3.0-next.0",
4
4
  "description": "Definitions and validations of the Forge manifest",
5
5
  "main": "out/index.js",
6
6
  "scripts": {