@canonical/summon-application 0.46.0 → 0.47.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.
|
@@ -14,6 +14,11 @@ import type { Plugin, ResolvedConfig } from "vite";
|
|
|
14
14
|
* They live in `@canonical/ds-assets`; this plugin serves them from there
|
|
15
15
|
* rather than copying them into the repository, so they can never drift
|
|
16
16
|
* from the installed package version.
|
|
17
|
+
*
|
|
18
|
+
* The application's own icons (`CustomIcons` in `@canonical/ds-assets`) live
|
|
19
|
+
* in `public/icons/`, which Vite serves and copies as usual: in development
|
|
20
|
+
* this plugin hands any name it does not ship on to Vite, and in the build
|
|
21
|
+
* the two directories merge into one.
|
|
17
22
|
*/
|
|
18
23
|
const iconsDir = () =>
|
|
19
24
|
join(
|
|
@@ -48,8 +53,17 @@ export function dsIcons(): Plugin {
|
|
|
48
53
|
}
|
|
49
54
|
const file = join(iconsDir(), name);
|
|
50
55
|
if (!existsSync(file)) {
|
|
51
|
-
//
|
|
52
|
-
//
|
|
56
|
+
// Not a built-in icon: an application icon in `public/icons/` is
|
|
57
|
+
// handed on for Vite to serve. Anything else is a real 404, not the
|
|
58
|
+
// SPA fallback: a missing icon should be visible in the network
|
|
59
|
+
// tab, not silently resolve to HTML.
|
|
60
|
+
if (
|
|
61
|
+
config.publicDir &&
|
|
62
|
+
existsSync(join(config.publicDir, "icons", name))
|
|
63
|
+
) {
|
|
64
|
+
next();
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
53
67
|
response.statusCode = 404;
|
|
54
68
|
response.end();
|
|
55
69
|
return;
|
|
@@ -32,7 +32,7 @@ import { info, map } from "@canonical/task";
|
|
|
32
32
|
* `@canonical/react-ds-global`, one of the packages released at this version;
|
|
33
33
|
* a bump is reviewed against the templates rather than merged on sight.
|
|
34
34
|
*/
|
|
35
|
-
export const PRAGMA_WEB_VERSION = "0.
|
|
35
|
+
export const PRAGMA_WEB_VERSION = "0.47.0";
|
|
36
36
|
const OWN_PACKAGE = "@canonical/summon-application";
|
|
37
37
|
/**
|
|
38
38
|
* Walk up from `from` until a `package.json` names `packageName`, and return
|
|
@@ -29,7 +29,7 @@ import type { Task } from "@canonical/task";
|
|
|
29
29
|
* `@canonical/react-ds-global`, one of the packages released at this version;
|
|
30
30
|
* a bump is reviewed against the templates rather than merged on sight.
|
|
31
31
|
*/
|
|
32
|
-
export declare const PRAGMA_WEB_VERSION = "0.
|
|
32
|
+
export declare const PRAGMA_WEB_VERSION = "0.47.0";
|
|
33
33
|
/**
|
|
34
34
|
* Read an installed package's version. Not `require("<pkg>/package.json")`:
|
|
35
35
|
* none of the workspace packages export `./package.json` (and their ESM-only
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canonical/summon-application",
|
|
3
3
|
"description": "Summon generators for application scaffolding: application, domain, page, and wrapper",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.47.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"module": "dist/esm/index.js",
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
"test": "vitest run"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@canonical/summon-core": "^0.
|
|
40
|
-
"@canonical/task": "^0.
|
|
41
|
-
"@canonical/utils": "^0.
|
|
39
|
+
"@canonical/summon-core": "^0.47.0",
|
|
40
|
+
"@canonical/task": "^0.47.0",
|
|
41
|
+
"@canonical/utils": "^0.47.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@biomejs/biome": "2.6.
|
|
45
|
-
"@canonical/biome-config": "^0.
|
|
46
|
-
"@canonical/webarchitect": "^0.
|
|
44
|
+
"@biomejs/biome": "2.6.8",
|
|
45
|
+
"@canonical/biome-config": "^0.47.0",
|
|
46
|
+
"@canonical/webarchitect": "^0.47.0",
|
|
47
47
|
"@types/node": "^26.0.0",
|
|
48
48
|
"typescript": "^7.0.2",
|
|
49
49
|
"vitest": "^5.0.0"
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"url": "https://github.com/canonical/pragma-core/issues"
|
|
53
53
|
},
|
|
54
54
|
"homepage": "https://github.com/canonical/pragma-core#readme",
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "f9c8577bbd5e4657e793b7092c3931102714b8ca"
|
|
56
56
|
}
|