smart-home-engine 0.28.0 → 0.28.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.
@@ -1,4 +1,4 @@
1
- import{m as O}from"./monaco-langs-BW2J83t5.js";import{t as I}from"./index-BSDf7HLk.js";/*!-----------------------------------------------------------------------------
1
+ import{m as O}from"./monaco-langs-BW2J83t5.js";import{t as I}from"./index-DeQBzoGc.js";/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
4
  * Released under the MIT license
@@ -155,7 +155,7 @@
155
155
  }
156
156
  })();
157
157
  </script>
158
- <script type="module" crossorigin src="/assets/index-BSDf7HLk.js"></script>
158
+ <script type="module" crossorigin src="/assets/index-DeQBzoGc.js"></script>
159
159
  <link rel="modulepreload" crossorigin href="/assets/monaco-langs-BW2J83t5.js">
160
160
  <link rel="stylesheet" crossorigin href="/assets/monaco-langs-DyX1CsEw.css">
161
161
  <link rel="stylesheet" crossorigin href="/assets/index-DMJ3LJnK.css">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smart-home-engine",
3
- "version": "0.28.0",
3
+ "version": "0.28.2",
4
4
  "description": "Node.js based script runner for use in MQTT based Smart Home environments",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -167,8 +167,9 @@ router.post('/commit', async (req, res) => {
167
167
  }
168
168
  } else {
169
169
  // Stage the entire script directory.
170
+ // When scriptDir === gitRoot, relative() returns '' — use '.' in that case.
170
171
  const scriptDirRel = path.relative(gitRoot, scriptDir).replace(/\\/g, '/');
171
- await git(['add', scriptDirRel + '/'], gitRoot);
172
+ await git(['add', scriptDirRel ? scriptDirRel + '/' : '.'], gitRoot);
172
173
  }
173
174
 
174
175
  await git(['commit', '-m', message], gitRoot);