@nxtedition/lib 23.3.9 → 23.3.10

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 +6 -2
  2. package/package.json +1 -1
package/app.js CHANGED
@@ -65,8 +65,6 @@ export function makeApp(appConfig, onTerminate) {
65
65
  const isProduction = process.env.NODE_ENV === 'production'
66
66
  const ac = new AbortController()
67
67
 
68
- fs.mkdirSync('./.nxt', { recursive: true })
69
-
70
68
  // Crash on unhandledRejection
71
69
  process.on('unhandledRejection', (err) => {
72
70
  throw err
@@ -271,6 +269,12 @@ export function makeApp(appConfig, onTerminate) {
271
269
  })
272
270
  }
273
271
 
272
+ try {
273
+ fs.mkdirSync('./.nxt', { recursive: true })
274
+ } catch (err) {
275
+ logger.warn({ err }, 'failed to create ./nxt dir')
276
+ }
277
+
274
278
  let toobusy
275
279
 
276
280
  if (appConfig.toobusy) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "23.3.9",
3
+ "version": "23.3.10",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",