rollup-plugin-zephyr 0.1.1-next.2 → 0.1.1-next.4
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/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { InputOptions, NormalizedOutputOptions, OutputBundle } from 'rollup';
|
|
2
|
-
|
|
2
|
+
import { type ZephyrBuildHooks } from 'zephyr-agent';
|
|
3
|
+
export declare function withZephyr(options?: {
|
|
4
|
+
hooks?: ZephyrBuildHooks;
|
|
5
|
+
}): {
|
|
3
6
|
name: string;
|
|
4
7
|
buildStart: (options: InputOptions) => Promise<void>;
|
|
5
8
|
writeBundle: (_options: NormalizedOutputOptions, bundle: OutputBundle) => Promise<void>;
|
|
@@ -13,8 +13,9 @@ const getInputFolder = (options) => {
|
|
|
13
13
|
return Object.values(options.input)[0];
|
|
14
14
|
return (0, node_process_1.cwd)();
|
|
15
15
|
};
|
|
16
|
-
function withZephyr() {
|
|
16
|
+
function withZephyr(options) {
|
|
17
17
|
const { zephyr_engine_defer, zephyr_defer_create } = zephyr_agent_1.ZephyrEngine.defer_create();
|
|
18
|
+
const hooks = options === null || options === void 0 ? void 0 : options.hooks;
|
|
18
19
|
return {
|
|
19
20
|
name: 'with-zephyr',
|
|
20
21
|
buildStart: async (options) => {
|
|
@@ -33,6 +34,7 @@ function withZephyr() {
|
|
|
33
34
|
await zephyr_engine.upload_assets({
|
|
34
35
|
assetsMap: (0, get_assets_map_1.getAssetsMap)(bundle),
|
|
35
36
|
buildStats: await (0, zephyr_agent_1.zeBuildDashData)(zephyr_engine),
|
|
37
|
+
hooks,
|
|
36
38
|
});
|
|
37
39
|
await zephyr_engine.build_finished();
|
|
38
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollup-plugin-zephyr.js","sourceRoot":"","sources":["../../src/lib/rollup-plugin-zephyr.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3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C,MAAM,aAAa,CAAC,aAAa,CAAC;oBAChC,SAAS,EAAE,IAAA,6BAAY,EAAC,MAAM,CAAC;oBAC/B,UAAU,EAAE,MAAM,IAAA,8BAAe,EAAC,aAAa,CAAC;oBAChD,KAAK;iBACN,CAAC,CAAC;gBAEH,MAAM,aAAa,CAAC,cAAc,EAAE,CAAC;YACvC,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAA,oBAAK,EAAC,OAAO,EAAE,0BAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;YAC5C,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollup-plugin-zephyr",
|
|
3
|
-
"version": "0.1.1-next.
|
|
3
|
+
"version": "0.1.1-next.4",
|
|
4
4
|
"description": "Rollup plugin for Zephyr",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rollup",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"is-ci": "^4.1.0",
|
|
26
26
|
"rollup": "^4.36.0",
|
|
27
27
|
"tslib": "^2.8.1",
|
|
28
|
-
"zephyr-agent": "0.1.1-next.
|
|
28
|
+
"zephyr-agent": "0.1.1-next.4"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/is-ci": "3.0.4",
|