@soleil-se/build-app 2.3.1 → 2.3.2

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
@@ -4,6 +4,10 @@ title: Changelog
4
4
 
5
5
  Baseras på [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) och använder [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [2.3.2] - 2025-05-28
8
+
9
+ - Kontrollera att `./dist/src/index.js` finns innan den uppdateras.
10
+
7
11
  ## [2.3.1] - 2025-05-26
8
12
 
9
13
  - Ta bort hydration markers för en app som renderas på servern, då det inte är nödvändigt.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@soleil-se/build-app",
3
3
  "description": "Script for building WebApps, RESTApps and Widgets with Svelte in Sitevision.",
4
- "version": "2.3.1",
4
+ "version": "2.3.2",
5
5
  "bin": {
6
6
  "build-app": "./bin/index.js",
7
7
  "sv-app-build": "./bin/index.js"
package/utils/files.js CHANGED
@@ -13,8 +13,10 @@ const indexContent = `(function() {
13
13
  * @returns {Promise<void>}
14
14
  */
15
15
  async function removeHydrationMarkers(src) {
16
- const content = await fse.readFile(src);
17
- await fse.writeFile(src, content.toString().replace(/(\\x3c!----\\x3e|\\x3c!--\[--\\x3e|\\x3c!--]--\\x3e)/gm, ''));
16
+ if(fse.existsSync(src)) {
17
+ const content = await fse.readFile(src);
18
+ await fse.writeFile(src, content.toString().replace(/(\\x3c!----\\x3e|\\x3c!--\[--\\x3e|\\x3c!--]--\\x3e)/gm, ''));
19
+ }
18
20
  }
19
21
 
20
22
  async function createMain(dest) {