@beff/cli 0.0.127 → 0.0.129
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 +12 -0
- package/dist-cli/cli.js +11 -2
- package/package.json +1 -1
- package/pkg/beff_wasm_bg.wasm +0 -0
package/CHANGELOG.md
CHANGED
package/dist-cli/cli.js
CHANGED
|
@@ -48343,6 +48343,15 @@ var finalizeParserV2File = (wasmCode, mod, stringFormats, numberFormats) => {
|
|
|
48343
48343
|
exports2
|
|
48344
48344
|
].join("\n");
|
|
48345
48345
|
};
|
|
48346
|
+
var writeIfChanged = (filePath, content) => {
|
|
48347
|
+
if (fs.existsSync(filePath)) {
|
|
48348
|
+
const existingContent = fs.readFileSync(filePath, "utf-8");
|
|
48349
|
+
if (existingContent === content) {
|
|
48350
|
+
return;
|
|
48351
|
+
}
|
|
48352
|
+
}
|
|
48353
|
+
fs.writeFileSync(filePath, content);
|
|
48354
|
+
};
|
|
48346
48355
|
var execProject = (bundler, projectPath, projectJson, verbose) => {
|
|
48347
48356
|
const mod = projectJson.module ?? "esm";
|
|
48348
48357
|
const parserEntryPoint = projectJson.parser ? path.join(path.dirname(projectPath), projectJson.parser) : void 0;
|
|
@@ -48357,7 +48366,7 @@ var execProject = (bundler, projectPath, projectJson, verbose) => {
|
|
|
48357
48366
|
if (outResult == null) {
|
|
48358
48367
|
return "failed";
|
|
48359
48368
|
}
|
|
48360
|
-
|
|
48369
|
+
writeIfChanged(
|
|
48361
48370
|
path.join(outputDir, "parser.js"),
|
|
48362
48371
|
finalizeParserV2File(
|
|
48363
48372
|
outResult,
|
|
@@ -48366,7 +48375,7 @@ var execProject = (bundler, projectPath, projectJson, verbose) => {
|
|
|
48366
48375
|
projectJson.settings.numberFormats.map((it) => it.name) ?? []
|
|
48367
48376
|
)
|
|
48368
48377
|
);
|
|
48369
|
-
|
|
48378
|
+
writeIfChanged(path.join(outputDir, "parser.d.ts"), bundle_default["parser.d.ts"]);
|
|
48370
48379
|
return "ok";
|
|
48371
48380
|
};
|
|
48372
48381
|
|
package/package.json
CHANGED
package/pkg/beff_wasm_bg.wasm
CHANGED
|
Binary file
|