@beff/cli 0.0.126 → 0.0.128

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,17 @@
1
1
  # @beff/cli
2
2
 
3
+ ## 0.0.128
4
+
5
+ ### Patch Changes
6
+
7
+ - stable writes
8
+
9
+ ## 0.0.127
10
+
11
+ ### Patch Changes
12
+
13
+ - fix keyof bug
14
+
3
15
  ## 0.0.126
4
16
 
5
17
  ### Patch Changes
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
- fs.writeFileSync(
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
- fs.writeFileSync(path.join(outputDir, "parser.d.ts"), bundle_default["parser.d.ts"]);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beff/cli",
3
- "version": "0.0.126",
3
+ "version": "0.0.128",
4
4
  "description": "",
5
5
  "bin": {
6
6
  "beff": "./bin/index.js"
Binary file