@poveste/shared 0.8.2 → 0.10.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/dist/types/plugin.d.ts +7 -1
- package/package.json +2 -2
package/dist/types/plugin.d.ts
CHANGED
|
@@ -92,7 +92,13 @@ export interface Plugin {
|
|
|
92
92
|
/**
|
|
93
93
|
* Use this hook to do processing during production build.
|
|
94
94
|
*/
|
|
95
|
-
|
|
95
|
+
/**
|
|
96
|
+
* `onCleanup` runs however the build ends, including when it fails. Anything a
|
|
97
|
+
* plugin opened belongs there rather than in `onBuildEnd`, which only runs when
|
|
98
|
+
* the build succeeded — a plugin holding a framework instance or a watcher kept
|
|
99
|
+
* a failed build's process alive on that difference (#434).
|
|
100
|
+
*/
|
|
101
|
+
onBuild?: (api: PluginApiBuild, onCleanup: (cb: () => Awaitable<void>) => void) => Awaitable<void>;
|
|
96
102
|
/**
|
|
97
103
|
* Use this hook to do processing when preview is started.
|
|
98
104
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poveste/shared",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.10.0",
|
|
5
5
|
"description": "Shared utilities for Poveste",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Sorin Gitlan"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"pathe": "^1.1.2",
|
|
45
45
|
"picocolors": "^1.1.1",
|
|
46
46
|
"unhead": "^3.1.0",
|
|
47
|
-
"@poveste/vendors": "^0.
|
|
47
|
+
"@poveste/vendors": "^0.10.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "5.6.3",
|