rollup-plugin-zephyr 0.0.41 → 0.0.43
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/lib/rollup-plugin-zephyr.d.ts +1 -1
- package/dist/lib/rollup-plugin-zephyr.js +15 -8
- package/dist/lib/rollup-plugin-zephyr.js.map +1 -1
- package/dist/lib/transform/get-assets-map.d.ts +2 -2
- package/dist/lib/transform/get-assets-map.js.map +1 -1
- package/dist/package.json +24 -10
- package/package.json +25 -11
|
@@ -2,5 +2,5 @@ import type { InputOptions, NormalizedOutputOptions, OutputBundle } from 'rollup
|
|
|
2
2
|
export declare function withZephyr(): {
|
|
3
3
|
name: string;
|
|
4
4
|
buildStart: (options: InputOptions) => Promise<void>;
|
|
5
|
-
writeBundle: (
|
|
5
|
+
writeBundle: (_options: NormalizedOutputOptions, bundle: OutputBundle) => Promise<void>;
|
|
6
6
|
};
|
|
@@ -24,14 +24,21 @@ function withZephyr() {
|
|
|
24
24
|
context: path_to_execution_dir,
|
|
25
25
|
});
|
|
26
26
|
},
|
|
27
|
-
writeBundle: async (
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
writeBundle: async (_options, bundle) => {
|
|
28
|
+
try {
|
|
29
|
+
const zephyr_engine = await zephyr_engine_defer;
|
|
30
|
+
// Start a new build
|
|
31
|
+
await zephyr_engine.start_new_build();
|
|
32
|
+
// Upload assets and finish the build
|
|
33
|
+
await zephyr_engine.upload_assets({
|
|
34
|
+
assetsMap: (0, get_assets_map_1.getAssetsMap)(bundle),
|
|
35
|
+
buildStats: await (0, zephyr_agent_1.zeBuildDashData)(zephyr_engine),
|
|
36
|
+
});
|
|
37
|
+
await zephyr_engine.build_finished();
|
|
38
|
+
}
|
|
39
|
+
catch (error) {
|
|
40
|
+
(0, zephyr_agent_1.logFn)('error', zephyr_agent_1.ZephyrError.format(error));
|
|
41
|
+
}
|
|
35
42
|
},
|
|
36
43
|
};
|
|
37
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollup-plugin-zephyr.js","sourceRoot":"","sources":["../../src/lib/rollup-plugin-zephyr.ts"],"names":[],"mappings":";;AAYA,
|
|
1
|
+
{"version":3,"file":"rollup-plugin-zephyr.js","sourceRoot":"","sources":["../../src/lib/rollup-plugin-zephyr.ts"],"names":[],"mappings":";;AAYA,gCA+BC;AA1CD,+CAAiF;AACjF,+DAA0D;AAC1D,+CAAmC;AAEnC,MAAM,cAAc,GAAG,CAAC,OAAqB,EAAU,EAAE;IACvD,IAAI,OAAO,OAAO,CAAC,KAAK,KAAK,QAAQ;QAAE,OAAO,OAAO,CAAC,KAAK,CAAC;IAC5D,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC1D,IAAI,OAAO,OAAO,CAAC,KAAK,KAAK,QAAQ;QAAE,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9E,OAAO,IAAA,kBAAG,GAAE,CAAC;AACf,CAAC,CAAC;AAEF,SAAgB,UAAU;IACxB,MAAM,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,GAAG,2BAAY,CAAC,YAAY,EAAE,CAAC;IAEjF,OAAO;QACL,IAAI,EAAE,aAAa;QACnB,UAAU,EAAE,KAAK,EAAE,OAAqB,EAAE,EAAE;YAC1C,MAAM,qBAAqB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;YACtD,mBAAmB,CAAC;gBAClB,OAAO,EAAE,QAAQ;gBACjB,OAAO,EAAE,qBAAqB;aAC/B,CAAC,CAAC;QACL,CAAC;QACD,WAAW,EAAE,KAAK,EAAE,QAAiC,EAAE,MAAoB,EAAE,EAAE;YAC7E,IAAI,CAAC;gBACH,MAAM,aAAa,GAAG,MAAM,mBAAmB,CAAC;gBAEhD,oBAAoB;gBACpB,MAAM,aAAa,CAAC,eAAe,EAAE,CAAC;gBAEtC,qCAAqC;gBACrC,MAAM,aAAa,CAAC,aAAa,CAAC;oBAChC,SAAS,EAAE,IAAA,6BAAY,EAAC,MAAM,CAAC;oBAC/B,UAAU,EAAE,MAAM,IAAA,8BAAe,EAAC,aAAa,CAAC;iBACjD,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"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { OutputBundle } from 'rollup';
|
|
2
|
-
import { ZeBuildAssetsMap } from 'zephyr-agent';
|
|
1
|
+
import type { OutputBundle } from 'rollup';
|
|
2
|
+
import type { ZeBuildAssetsMap } from 'zephyr-agent';
|
|
3
3
|
export declare function getAssetsMap(assets: OutputBundle): ZeBuildAssetsMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-assets-map.js","sourceRoot":"","sources":["../../../src/lib/transform/get-assets-map.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"get-assets-map.js","sourceRoot":"","sources":["../../../src/lib/transform/get-assets-map.ts"],"names":[],"mappings":";;AAIA,oCAEC;AAJD,+CAA8C;AAE9C,SAAgB,YAAY,CAAC,MAAoB;IAC/C,OAAO,IAAA,6BAAc,EAAC,MAAM,EAAE,aAAa,EAAE,YAAY,CAAC,CAAC;AAC7D,CAAC;AAED,MAAM,aAAa,GAAG,CAAC,KAAgC,EAAsB,EAAE;IAC7E,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;QACnB,KAAK,OAAO;YACV,OAAO,KAAK,CAAC,IAAI,CAAC;QACpB,KAAK,OAAO;YACV,OAAO,OAAO,KAAK,CAAC,MAAM,KAAK,QAAQ;gBACrC,CAAC,CAAC,KAAK,CAAC,MAAM;gBACd,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC7C;YACE,OAAO,KAAK,CAAC,CAAC;IAClB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,KAAgC,EAAU,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC"}
|
package/dist/package.json
CHANGED
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollup-plugin-zephyr",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.43",
|
|
4
|
+
"description": "Rollup plugin for Zephyr",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"rollup",
|
|
7
|
+
"rollup-plugin",
|
|
8
|
+
"zephyr",
|
|
9
|
+
"deploy"
|
|
10
|
+
],
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/ZephyrCloudIO/zephyr-packages.git",
|
|
14
|
+
"directory": "libs/rollup-plugin-zephyr"
|
|
15
|
+
},
|
|
4
16
|
"license": "Apache-2.0",
|
|
17
|
+
"author": {
|
|
18
|
+
"name": "ZephyrCloudIO",
|
|
19
|
+
"url": "https://github.com/ZephyrCloudIO"
|
|
20
|
+
},
|
|
5
21
|
"type": "commonjs",
|
|
6
22
|
"main": "dist/index.js",
|
|
7
23
|
"types": "dist/index.d.ts",
|
|
@@ -15,16 +31,14 @@
|
|
|
15
31
|
"tslib": "catalog:typescript",
|
|
16
32
|
"zephyr-agent": "workspace:*"
|
|
17
33
|
},
|
|
18
|
-
"keywords": [
|
|
19
|
-
"rollup",
|
|
20
|
-
"rollup-plugin",
|
|
21
|
-
"zephyr",
|
|
22
|
-
"deploy"
|
|
23
|
-
],
|
|
24
34
|
"devDependencies": {
|
|
25
|
-
"@typescript-eslint/eslint-plugin": "catalog:eslint",
|
|
26
35
|
"@types/is-ci": "catalog:typescript",
|
|
27
|
-
"
|
|
28
|
-
"@
|
|
36
|
+
"@types/jest": "catalog:typescript",
|
|
37
|
+
"@typescript-eslint/eslint-plugin": "catalog:eslint",
|
|
38
|
+
"ts-jest": "catalog:typescript"
|
|
39
|
+
},
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public",
|
|
42
|
+
"provenance": true
|
|
29
43
|
}
|
|
30
44
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollup-plugin-zephyr",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.43",
|
|
4
|
+
"description": "Rollup plugin for Zephyr",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"rollup",
|
|
7
|
+
"rollup-plugin",
|
|
8
|
+
"zephyr",
|
|
9
|
+
"deploy"
|
|
10
|
+
],
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/ZephyrCloudIO/zephyr-packages.git",
|
|
14
|
+
"directory": "libs/rollup-plugin-zephyr"
|
|
15
|
+
},
|
|
4
16
|
"license": "Apache-2.0",
|
|
17
|
+
"author": {
|
|
18
|
+
"name": "ZephyrCloudIO",
|
|
19
|
+
"url": "https://github.com/ZephyrCloudIO"
|
|
20
|
+
},
|
|
5
21
|
"type": "commonjs",
|
|
6
22
|
"main": "dist/index.js",
|
|
7
23
|
"types": "dist/index.d.ts",
|
|
@@ -9,19 +25,17 @@
|
|
|
9
25
|
"is-ci": "^4.1.0",
|
|
10
26
|
"rollup": "^4.36.0",
|
|
11
27
|
"tslib": "^2.8.1",
|
|
12
|
-
"zephyr-agent": "0.0.
|
|
28
|
+
"zephyr-agent": "0.0.43"
|
|
13
29
|
},
|
|
14
|
-
"keywords": [
|
|
15
|
-
"rollup",
|
|
16
|
-
"rollup-plugin",
|
|
17
|
-
"zephyr",
|
|
18
|
-
"deploy"
|
|
19
|
-
],
|
|
20
30
|
"devDependencies": {
|
|
21
|
-
"@typescript-eslint/eslint-plugin": "^8.27.0",
|
|
22
31
|
"@types/is-ci": "3.0.4",
|
|
23
|
-
"
|
|
24
|
-
"@
|
|
32
|
+
"@types/jest": "29.5.14",
|
|
33
|
+
"@typescript-eslint/eslint-plugin": "^8.27.0",
|
|
34
|
+
"ts-jest": "^29.2.6"
|
|
35
|
+
},
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public",
|
|
38
|
+
"provenance": true
|
|
25
39
|
},
|
|
26
40
|
"scripts": {
|
|
27
41
|
"build": "nx run rollup-plugin-zephyr:build",
|