@nxtedition/lib 21.10.0 → 21.10.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.
Files changed (2) hide show
  1. package/app.js +9 -0
  2. package/package.json +1 -1
package/app.js CHANGED
@@ -8,6 +8,7 @@ import stream from 'node:stream'
8
8
  import { Buffer } from 'node:buffer'
9
9
  import { getDockerSecretsSync } from './docker-secrets.js'
10
10
  import fp from 'lodash/fp.js'
11
+ import { mkdirSync } from 'node:fs'
11
12
  import {
12
13
  isMainThread,
13
14
  parentPort,
@@ -45,6 +46,14 @@ export function makeApp(appConfig, onTerminate) {
45
46
  let logger
46
47
  let trace
47
48
 
49
+ try {
50
+ mkdirSync('./.nxt')
51
+ } catch (err) {
52
+ if (err.code !== 'EEXIST') {
53
+ throw err
54
+ }
55
+ }
56
+
48
57
  /** @type {Array<rxjs.Subscription|Function|AsyncFunction|Disposable|AsyncDisposable>} */
49
58
  const destroyers = []
50
59
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "21.10.0",
3
+ "version": "21.10.2",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",