@granite-js/plugin-hermes 0.1.10 → 0.1.11
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 +8 -0
- package/dist/index.cjs +2 -1
- package/dist/index.js +2 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
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.
|
|
4
|
+
"version": "0.1.11",
|
|
5
5
|
"description": "Hermes compilation plugin for Granite",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"prepack": "yarn build",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"vitest": "^3.1.3"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@granite-js/plugin-core": "0.1.
|
|
38
|
-
"@granite-js/utils": "0.1.
|
|
37
|
+
"@granite-js/plugin-core": "0.1.11",
|
|
38
|
+
"@granite-js/utils": "0.1.11",
|
|
39
39
|
"es-toolkit": "^1.39.8",
|
|
40
40
|
"execa": "^5",
|
|
41
41
|
"source-map": "^0.8.0-beta.0"
|