@candlerip/shared3 0.0.14 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/bash
2
- set -e
3
2
 
4
3
  PACKAGES=( @candlerip/shared3 @candlerip/shared-aws3 @candlerip/shared-backend3 )
5
4
  for PACKAGE in "${PACKAGES[@]}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared3",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -1,6 +1,10 @@
1
1
  export interface EnvironmentVariables {
2
+ DATABASE_URL: string;
2
3
  DICTIONARY_SERVICE_PORT: number;
3
4
  DOMAIN_NAME: string;
4
5
  PROJECT_NAME: string;
6
+ REDIS_PORT: number;
7
+ REDIS_PWD: string;
8
+ REDIS_URL: string;
5
9
  S3_IMAGES_BUCKET_NAME: string;
6
10
  }
@@ -0,0 +1,2 @@
1
+ import { EnvironmentVariables } from '../../../../environment/index.js';
2
+ export type CacheServiceConfig = Pick<EnvironmentVariables, 'DATABASE_URL' | 'REDIS_PWD' | 'REDIS_URL'>;
@@ -1,2 +1,4 @@
1
1
  export * from './backend-init-config/index.js';
2
+ export * from './cache-service-config/index.js';
2
3
  export * from './dictionary-service-config/index.js';
4
+ export * from './redis-config/index.js';
@@ -1,2 +1,4 @@
1
1
  export * from './backend-init-config/index.js';
2
+ export * from './cache-service-config/index.js';
2
3
  export * from './dictionary-service-config/index.js';
4
+ export * from './redis-config/index.js';
@@ -0,0 +1,2 @@
1
+ import { EnvironmentVariables } from '../../../../environment/index.js';
2
+ export type RedisConfig = Pick<EnvironmentVariables, 'REDIS_PORT' | 'REDIS_PWD'>;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,2 +1,2 @@
1
1
  import { SubProjectName } from '../../../sub-project/index.js';
2
- export type ConfigName = Exclude<SubProjectName, 'config'>;
2
+ export type ConfigName = Exclude<SubProjectName, 'backend' | 'config'>;
@@ -1 +1 @@
1
- export declare const SUB_PROJECT_NAMES: readonly ["backend-init", "dictionary-service", "config"];
1
+ export declare const SUB_PROJECT_NAMES: readonly ["backend-init", "backend", "dictionary-service", "cache-service", "config", "redis"];
@@ -1 +1 @@
1
- export const SUB_PROJECT_NAMES = ['backend-init', 'dictionary-service', 'config'];
1
+ export const SUB_PROJECT_NAMES = ['backend-init', 'backend', 'dictionary-service', 'cache-service', 'config', 'redis'];