@crombolo/backoffice-host 0.33.0 → 0.33.1
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/package.json +2 -2
- package/plugin/app-preview/umbraco-package.json +1 -1
- package/plugin/localizations/umbraco-package.json +1 -1
- package/plugin/seo/umbraco-package.json +1 -1
- package/plugin/sign-in/umbraco-package.json +1 -1
- package/plugin/umbraco-package.json +1 -1
- package/src/bundle-package.ts +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crombolo/backoffice-host",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.1",
|
|
4
4
|
"description": "Serves the Umbraco backoffice SPA: shell HTML, import map and package manifests.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Crombolo",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@crombolo/core": "0.33.
|
|
34
|
+
"@crombolo/core": "0.33.1",
|
|
35
35
|
"@crombolo/backoffice-dist": "18.2.0"
|
|
36
36
|
}
|
|
37
37
|
}
|
package/src/bundle-package.ts
CHANGED
|
@@ -126,7 +126,11 @@ export function validateBundlePackage(json: PackageJson, directory?: string): st
|
|
|
126
126
|
if (f.server !== undefined && (typeof f.server !== 'string' || !EXPORT_NAME.test(f.server)))
|
|
127
127
|
problems.push('"crombolo.server" must name the factory the package exports')
|
|
128
128
|
if (f.content !== undefined) {
|
|
129
|
-
if (f.content
|
|
129
|
+
if (typeof f.content === 'string')
|
|
130
|
+
problems.push(
|
|
131
|
+
'it was written before crombolo 0.33.1, with its content in a folder, a layout no longer read; rebuild it with the command that made it',
|
|
132
|
+
)
|
|
133
|
+
else if (f.content !== true)
|
|
130
134
|
problems.push(`"crombolo.content" is true: ${PAYLOAD_MANIFEST} sits at the package root`)
|
|
131
135
|
else if (directory && !existsSync(join(directory, PAYLOAD_MANIFEST)))
|
|
132
136
|
problems.push(`it declares content, and holds no ${PAYLOAD_MANIFEST} at its root`)
|