zephyr-rolldown-plugin 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.
@@ -1,3 +1,3 @@
1
- import { OutputBundle } from 'rolldown';
2
- import { ZeBuildAssetsMap } from 'zephyr-agent';
1
+ import type { OutputBundle } from 'rolldown';
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/internal/get-assets-map.ts"],"names":[],"mappings":";;AAGA,oCAEC;AAJD,+CAAgE;AAEhE,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"}
1
+ {"version":3,"file":"get-assets-map.js","sourceRoot":"","sources":["../../../src/lib/internal/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"}
@@ -2,5 +2,5 @@ import type { InputOptions, NormalizedOutputOptions, OutputBundle } from 'rolldo
2
2
  export declare function withZephyr(): {
3
3
  name: string;
4
4
  buildStart: (options: InputOptions) => Promise<void>;
5
- writeBundle: (options: NormalizedOutputOptions, bundle: OutputBundle) => Promise<void>;
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 (options, bundle) => {
28
- const zephyr_engine = await zephyr_engine_defer;
29
- await zephyr_engine.start_new_build();
30
- await zephyr_engine.upload_assets({
31
- assetsMap: (0, get_assets_map_1.getAssetsMap)(bundle),
32
- buildStats: await (0, zephyr_agent_1.zeBuildDashData)(zephyr_engine),
33
- });
34
- await zephyr_engine.build_finished();
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":"zephyr-rolldown-plugin.js","sourceRoot":"","sources":["../../src/lib/zephyr-rolldown-plugin.ts"],"names":[],"mappings":";;AAYA,gCAsBC;AAjCD,+CAA6D;AAC7D,+CAAmC;AACnC,8DAAyD;AAEzD,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,EAAE,gEAAgE;gBACnF,OAAO,EAAE,qBAAqB;aAC/B,CAAC,CAAC;QACL,CAAC;QACD,WAAW,EAAE,KAAK,EAAE,OAAgC,EAAE,MAAoB,E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AE,gEAAgE;gBACnF,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"}
package/dist/package.json CHANGED
@@ -1,7 +1,18 @@
1
1
  {
2
2
  "name": "zephyr-rolldown-plugin",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
4
+ "description": "Rolldown plugin for Zephyr",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/ZephyrCloudIO/zephyr-packages.git",
8
+ "directory": "libs/zephyr-rolldown-plugin"
9
+ },
4
10
  "license": "Apache-2.0",
11
+ "author": {
12
+ "name": "ZephyrCloudIO",
13
+ "url": "https://github.com/ZephyrCloudIO"
14
+ },
15
+ "type": "commonjs",
5
16
  "main": "dist/index.js",
6
17
  "types": "dist/index.d.ts",
7
18
  "scripts": {
@@ -10,14 +21,17 @@
10
21
  },
11
22
  "dependencies": {
12
23
  "is-ci": "catalog:plugin-shared",
13
- "zephyr-agent": "workspace:*",
14
- "rolldown": "catalog:rolldown"
24
+ "rolldown": "catalog:rolldown",
25
+ "zephyr-agent": "workspace:*"
15
26
  },
16
27
  "devDependencies": {
17
- "@typescript-eslint/eslint-plugin": "catalog:eslint",
18
28
  "@types/is-ci": "catalog:typescript",
19
- "ts-jest": "catalog:typescript",
20
- "@types/jest": "catalog:typescript"
29
+ "@types/jest": "catalog:typescript",
30
+ "@typescript-eslint/eslint-plugin": "catalog:eslint",
31
+ "ts-jest": "catalog:typescript"
21
32
  },
22
- "type": "commonjs"
33
+ "publishConfig": {
34
+ "access": "public",
35
+ "provenance": true
36
+ }
23
37
  }
package/package.json CHANGED
@@ -1,19 +1,34 @@
1
1
  {
2
2
  "name": "zephyr-rolldown-plugin",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
4
+ "description": "Rolldown plugin for Zephyr",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/ZephyrCloudIO/zephyr-packages.git",
8
+ "directory": "libs/zephyr-rolldown-plugin"
9
+ },
4
10
  "license": "Apache-2.0",
11
+ "author": {
12
+ "name": "ZephyrCloudIO",
13
+ "url": "https://github.com/ZephyrCloudIO"
14
+ },
15
+ "type": "commonjs",
5
16
  "main": "dist/index.js",
6
17
  "types": "dist/index.d.ts",
7
18
  "dependencies": {
8
19
  "is-ci": "^4.1.0",
9
20
  "rolldown": "1.0.0-beta.3",
10
- "zephyr-agent": "0.0.41"
21
+ "zephyr-agent": "0.0.43"
11
22
  },
12
23
  "devDependencies": {
13
- "@typescript-eslint/eslint-plugin": "^8.27.0",
14
24
  "@types/is-ci": "3.0.4",
15
- "ts-jest": "^29.2.6",
16
- "@types/jest": "29.5.14"
25
+ "@types/jest": "29.5.14",
26
+ "@typescript-eslint/eslint-plugin": "^8.27.0",
27
+ "ts-jest": "^29.2.6"
28
+ },
29
+ "publishConfig": {
30
+ "access": "public",
31
+ "provenance": true
17
32
  },
18
33
  "scripts": {
19
34
  "build": "nx run zephyr-rolldown-plugin:build",