monorepotime 1.1.15 → 1.1.17

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/dist/index.js +57 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -57771,6 +57771,7 @@ services:
57771
57771
  postgres:
57772
57772
  image: postgres:16-alpine
57773
57773
  restart: unless-stopped
57774
+ user: "1000:1000"
57774
57775
  environment:
57775
57776
  POSTGRES_USER: user
57776
57777
  POSTGRES_PASSWORD: password
@@ -57814,10 +57815,17 @@ const fs = require('fs');
57814
57815
  const path = require('path');
57815
57816
 
57816
57817
  const RUNTIME_FILE = path.join(__dirname, '.runtime.json');
57818
+ const DATA_DIR = path.join(__dirname, 'postgres-data');
57817
57819
  let containerId = null;
57818
57820
 
57819
57821
  console.log('Starting PostgreSQL...');
57820
57822
 
57823
+ // Pre-create data directory to ensure correct permissions
57824
+ if (!fs.existsSync(DATA_DIR)) {
57825
+ fs.mkdirSync(DATA_DIR, { recursive: true });
57826
+ console.log('Created postgres-data directory');
57827
+ }
57828
+
57821
57829
  // Start Docker Compose
57822
57830
  const child = spawn('docker', ['compose', 'up'], { stdio: 'inherit' });
57823
57831
 
@@ -58014,6 +58022,7 @@ services:
58014
58022
  redis:
58015
58023
  image: redis:7.2-alpine
58016
58024
  restart: unless-stopped
58025
+ user: "1000:1000"
58017
58026
  ports:
58018
58027
  - "0:6379"
58019
58028
  volumes:
@@ -58048,10 +58057,17 @@ const fs = require('fs');
58048
58057
  const path = require('path');
58049
58058
 
58050
58059
  const RUNTIME_FILE = path.join(__dirname, '.runtime.json');
58060
+ const DATA_DIR = path.join(__dirname, 'redis-data');
58051
58061
  let containerId = null;
58052
58062
 
58053
58063
  console.log('Starting Redis...');
58054
58064
 
58065
+ // Pre-create data directory to ensure correct permissions
58066
+ if (!fs.existsSync(DATA_DIR)) {
58067
+ fs.mkdirSync(DATA_DIR, { recursive: true });
58068
+ console.log('Created redis-data directory');
58069
+ }
58070
+
58055
58071
  const child = spawn('docker', ['compose', 'up'], { stdio: 'inherit' });
58056
58072
 
58057
58073
  child.on('close', (code) => {
@@ -58179,6 +58195,7 @@ var MongoDB = {
58179
58195
  mongodb:
58180
58196
  image: mongo:7.0
58181
58197
  restart: unless-stopped
58198
+ user: "1000:1000"
58182
58199
  environment:
58183
58200
  MONGO_INITDB_ROOT_USERNAME: admin
58184
58201
  MONGO_INITDB_ROOT_PASSWORD: password
@@ -58214,10 +58231,17 @@ const fs = require('fs');
58214
58231
  const path = require('path');
58215
58232
 
58216
58233
  const RUNTIME_FILE = path.join(__dirname, '.runtime.json');
58234
+ const DATA_DIR = path.join(__dirname, 'mongo-data');
58217
58235
  let containerId = null;
58218
58236
 
58219
58237
  console.log('Starting MongoDB...');
58220
58238
 
58239
+ // Pre-create data directory to ensure correct permissions
58240
+ if (!fs.existsSync(DATA_DIR)) {
58241
+ fs.mkdirSync(DATA_DIR, { recursive: true });
58242
+ console.log('Created mongo-data directory');
58243
+ }
58244
+
58221
58245
  const child = spawn('docker', ['compose', 'up'], { stdio: 'inherit' });
58222
58246
 
58223
58247
  child.on('close', (code) => {
@@ -58349,6 +58373,7 @@ var Meilisearch = {
58349
58373
  meilisearch:
58350
58374
  image: getmeili/meilisearch:v1.10
58351
58375
  restart: unless-stopped
58376
+ user: "1000:1000"
58352
58377
  environment:
58353
58378
  - MEILI_MASTER_KEY=masterKey
58354
58379
  - MEILI_ENV=development
@@ -58381,10 +58406,17 @@ const fs = require('fs');
58381
58406
  const path = require('path');
58382
58407
 
58383
58408
  const RUNTIME_FILE = path.join(__dirname, '.runtime.json');
58409
+ const DATA_DIR = path.join(__dirname, 'meili-data');
58384
58410
  let containerId = null;
58385
58411
 
58386
58412
  console.log('Starting Meilisearch...');
58387
58413
 
58414
+ // Pre-create data directory to ensure correct permissions
58415
+ if (!fs.existsSync(DATA_DIR)) {
58416
+ fs.mkdirSync(DATA_DIR, { recursive: true });
58417
+ console.log('Created meili-data directory');
58418
+ }
58419
+
58388
58420
  // Spawn Docker Compose
58389
58421
  const child = spawn('docker', ['compose', 'up'], { stdio: 'inherit' });
58390
58422
 
@@ -58519,6 +58551,7 @@ var MinIO = {
58519
58551
  image: minio/minio
58520
58552
  command: server /data --console-address ":9001"
58521
58553
  restart: unless-stopped
58554
+ user: "1000:1000"
58522
58555
  environment:
58523
58556
  - MINIO_ROOT_USER=minioadmin
58524
58557
  - MINIO_ROOT_PASSWORD=minioadmin
@@ -58552,10 +58585,17 @@ const fs = require('fs');
58552
58585
  const path = require('path');
58553
58586
 
58554
58587
  const RUNTIME_FILE = path.join(__dirname, '.runtime.json');
58588
+ const DATA_DIR = path.join(__dirname, 'minio-data');
58555
58589
  let containerId = null;
58556
58590
 
58557
58591
  console.log('Starting MinIO...');
58558
58592
 
58593
+ // Pre-create data directory to ensure correct permissions
58594
+ if (!fs.existsSync(DATA_DIR)) {
58595
+ fs.mkdirSync(DATA_DIR, { recursive: true });
58596
+ console.log('Created minio-data directory');
58597
+ }
58598
+
58559
58599
  // Spawn Docker Compose
58560
58600
  const child = spawn('docker', ['compose', 'up'], { stdio: 'inherit' });
58561
58601
 
@@ -60466,6 +60506,7 @@ var dockerCompose = `services:
60466
60506
  n8n:
60467
60507
  image: n8nio/n8n:latest
60468
60508
  restart: unless-stopped
60509
+ user: "1000:1000"
60469
60510
  environment:
60470
60511
  - N8N_BASIC_AUTH_ACTIVE=true
60471
60512
  - N8N_BASIC_AUTH_USER=admin
@@ -60499,9 +60540,17 @@ const fs = require('fs');
60499
60540
  const path = require('path');
60500
60541
 
60501
60542
  const RUNTIME_FILE = path.join(__dirname, '.runtime.json');
60543
+ const DATA_DIR = path.join(__dirname, 'n8n-data');
60502
60544
 
60503
60545
  console.log('Starting N8N...');
60504
60546
 
60547
+ // Pre-create data directory to ensure correct permissions
60548
+ // Docker creates mount directories as root, causing permission issues
60549
+ if (!fs.existsSync(DATA_DIR)) {
60550
+ fs.mkdirSync(DATA_DIR, { recursive: true });
60551
+ console.log('Created n8n-data directory');
60552
+ }
60553
+
60505
60554
  // Start Docker Compose
60506
60555
  const child = spawn('docker', ['compose', 'up'], { stdio: 'inherit' });
60507
60556
 
@@ -60814,6 +60863,7 @@ module.exports = {
60814
60863
  var dockerCompose2 = `services:
60815
60864
  localstack:
60816
60865
  image: localstack/localstack
60866
+ user: "1000:1000"
60817
60867
  ports:
60818
60868
  - "127.0.0.1:4566:4566" # LocalStack Gateway
60819
60869
  - "127.0.0.1:4510-4559:4510-4559" # External services port range
@@ -61086,10 +61136,17 @@ const { spawn, exec } = require('child_process');
61086
61136
  const deploy = require('./deploy');
61087
61137
 
61088
61138
  const RUNTIME_FILE = path.join(__dirname, '.runtime.json');
61139
+ const DATA_DIR = path.join(__dirname, 'localstack-data');
61089
61140
  let currentPort = 3748;
61090
61141
 
61091
61142
  console.log("Starting AWS Local environment...");
61092
61143
 
61144
+ // Pre-create data directory to ensure correct permissions
61145
+ if (!fs.existsSync(DATA_DIR)) {
61146
+ fs.mkdirSync(DATA_DIR, { recursive: true });
61147
+ console.log('Created localstack-data directory');
61148
+ }
61149
+
61093
61150
  // Spawn Docker Compose
61094
61151
  const docker = spawn('docker', ['compose', 'up', '-d'], { stdio: 'inherit' });
61095
61152
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monorepotime",
3
- "version": "1.1.15",
3
+ "version": "1.1.17",
4
4
  "description": "monorepo gui tool",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {