@granite-js/plugin-hermes 0.1.10 → 0.1.12

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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @granite-js/plugin-hermes
2
2
 
3
+ ## 0.1.12
4
+
5
+ ### Patch Changes
6
+
7
+ - d1e6585: fix module resolutions
8
+ - Updated dependencies [d1e6585]
9
+ - Updated dependencies [1e99fe1]
10
+ - @granite-js/plugin-core@0.1.12
11
+ - @granite-js/utils@0.1.12
12
+
13
+ ## 0.1.11
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [d3a2b58]
18
+ - @granite-js/plugin-core@0.1.11
19
+ - @granite-js/utils@0.1.11
20
+
3
21
  ## 0.1.10
4
22
 
5
23
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -21,6 +21,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  }) : target, mod));
22
22
 
23
23
  //#endregion
24
+ const __granite_js_plugin_core = __toESM(require("@granite-js/plugin-core"));
24
25
  const es_toolkit = __toESM(require("es-toolkit"));
25
26
  const execa = __toESM(require("execa"));
26
27
  const fs_promises = __toESM(require("fs/promises"));
@@ -99,7 +100,7 @@ const hermesPlugin = (options) => {
99
100
  order: "post",
100
101
  handler: async function(config) {
101
102
  const hermesResult = [];
102
- const files = config.buildResults.map(({ outfile, sourcemapOutfile }) => ({
103
+ const files = config.buildResults.filter(__granite_js_plugin_core.isBuildSuccess).map(({ outfile, sourcemapOutfile }) => ({
103
104
  jsBundle: outfile,
104
105
  jsSourcemap: sourcemapOutfile,
105
106
  hermesBytecode: `${outfile.replace(".js", "")}.hbc`
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { createRequire } from "node:module";
2
+ import { isBuildSuccess } from "@granite-js/plugin-core";
2
3
  import { isNotNil } from "es-toolkit";
3
4
  import execa from "execa";
4
5
  import * as fs from "fs/promises";
@@ -81,7 +82,7 @@ const hermesPlugin = (options) => {
81
82
  order: "post",
82
83
  handler: async function(config) {
83
84
  const hermesResult = [];
84
- const files = config.buildResults.map(({ outfile, sourcemapOutfile }) => ({
85
+ const files = config.buildResults.filter(isBuildSuccess).map(({ outfile, sourcemapOutfile }) => ({
85
86
  jsBundle: outfile,
86
87
  jsSourcemap: sourcemapOutfile,
87
88
  hermesBytecode: `${outfile.replace(".js", "")}.hbc`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@granite-js/plugin-hermes",
3
3
  "type": "module",
4
- "version": "0.1.10",
4
+ "version": "0.1.12",
5
5
  "description": "Hermes compilation plugin for Granite",
6
6
  "scripts": {
7
7
  "prepack": "yarn build",
@@ -9,6 +9,8 @@
9
9
  "test": "vitest --run --coverage --passWithNoTests",
10
10
  "build": "tsdown"
11
11
  },
12
+ "main": "./dist/index.cjs",
13
+ "module": "./dist/index.js",
12
14
  "types": "./dist/index.d.ts",
13
15
  "exports": {
14
16
  ".": {
@@ -17,9 +19,8 @@
17
19
  "default": "./dist/index.js"
18
20
  },
19
21
  "require": {
20
- "types": "./dist/index.d.ts",
21
- "import": "./dist/index.js",
22
- "require": "./dist/index.cjs"
22
+ "types": "./dist/index.d.cts",
23
+ "default": "./dist/index.cjs"
23
24
  }
24
25
  },
25
26
  "./package.json": "./package.json"
@@ -34,8 +35,8 @@
34
35
  "vitest": "^3.1.3"
35
36
  },
36
37
  "dependencies": {
37
- "@granite-js/plugin-core": "0.1.10",
38
- "@granite-js/utils": "0.1.10",
38
+ "@granite-js/plugin-core": "0.1.12",
39
+ "@granite-js/utils": "0.1.12",
39
40
  "es-toolkit": "^1.39.8",
40
41
  "execa": "^5",
41
42
  "source-map": "^0.8.0-beta.0"