@candlerip/shared 0.0.19 → 0.0.21

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 (30) hide show
  1. package/devops/cdk/cdk-deploy.sh +4 -0
  2. package/devops/docker/publish-to-docker-hub.sh +1 -1
  3. package/devops/environment/create-env-file.sh +1 -1
  4. package/devops/eslint/eslint.sh +1 -1
  5. package/devops/npm/publish-to-npm-registry.sh +1 -1
  6. package/devops/prettier/prettier.sh +1 -1
  7. package/devops/typescript/tsc-build.sh +1 -1
  8. package/devops/typescript/tsc-watch.sh +1 -1
  9. package/package.json +2 -1
  10. package/src/environment/env-var-name/domains.d.ts +2 -0
  11. package/src/environment/{environment-variables → envs}/domains.d.ts +1 -1
  12. package/src/environment/index.d.ts +2 -2
  13. package/src/environment/index.js +2 -2
  14. package/src/service/index.d.ts +1 -1
  15. package/src/service/index.js +1 -1
  16. package/src/service/service-envs/constants.d.ts +2 -0
  17. package/src/service/{service-environment-variables → service-envs}/constants.js +1 -1
  18. package/src/service/service-envs/type.d.ts +5 -0
  19. package/src/environment/environment-variable/domains.d.ts +0 -2
  20. package/src/service/service-environment-variables/constants.d.ts +0 -2
  21. package/src/service/service-environment-variables/type.d.ts +0 -5
  22. /package/src/environment/{environment-variable → env-var-name}/domains.js +0 -0
  23. /package/src/environment/{environment-variable → env-var-name}/index.d.ts +0 -0
  24. /package/src/environment/{environment-variable → env-var-name}/index.js +0 -0
  25. /package/src/environment/{environment-variables → envs}/domains.js +0 -0
  26. /package/src/environment/{environment-variables → envs}/index.d.ts +0 -0
  27. /package/src/environment/{environment-variables → envs}/index.js +0 -0
  28. /package/src/service/{service-environment-variables → service-envs}/index.d.ts +0 -0
  29. /package/src/service/{service-environment-variables → service-envs}/index.js +0 -0
  30. /package/src/service/{service-environment-variables → service-envs}/type.js +0 -0
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env sh
2
+ set -e
3
+
4
+ cdk deploy --require-approval never
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env bash
1
+ #!/usr/bin/env sh
2
2
 
3
3
  DOCKERFILE=${2:-"Dockerfile"}
4
4
 
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env bash
1
+ #!/usr/bin/env sh
2
2
  set -e
3
3
 
4
4
  PARAM_NAMES=(${1//,/ })
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env bash
1
+ #!/usr/bin/env sh
2
2
  set -e
3
3
 
4
4
  npx eslint .
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env bash
1
+ #!/usr/bin/env sh
2
2
  set -e
3
3
 
4
4
  npm config set //registry.npmjs.org/:_authToken $NPM_ACCESS_TOKEN
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env bash
1
+ #!/usr/bin/env sh
2
2
  set -e
3
3
 
4
4
  npx prettier . --write
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env bash
1
+ #!/usr/bin/env sh
2
2
  set -e
3
3
 
4
4
  rm -rf dist
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env bash
1
+ #!/usr/bin/env sh
2
2
  set -e
3
3
 
4
4
  rm -rf dist
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@candlerip/shared",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": "=22.19.0"
7
7
  },
8
8
  "main": "src/index.js",
9
9
  "bin": {
10
+ "crs-cdk-deploy": "devops/cdk/cdk-deploy.sh",
10
11
  "crs-create-env-file": "devops/environment/create-env-file.sh",
11
12
  "crs-publish-to-docker-hub": "./devops/docker/publish-to-docker-hub.sh",
12
13
  "crs-eslint": "devops/eslint/eslint.sh",
@@ -0,0 +1,2 @@
1
+ import { Envs } from '../envs/index.js';
2
+ export type EnvVarName = keyof Envs;
@@ -1,5 +1,5 @@
1
1
  import { EnvironmentMode } from '../environment-mode/index.js';
2
- export type EnvironmentVariables = {
2
+ export type Envs = {
3
3
  APP_NAME: string;
4
4
  APP_PORT: number;
5
5
  AWS_REGION: string;
@@ -1,3 +1,3 @@
1
1
  export * from './environment-mode/index.js';
2
- export * from './environment-variable/index.js';
3
- export * from './environment-variables/index.js';
2
+ export * from './env-var-name/index.js';
3
+ export * from './envs/index.js';
@@ -1,3 +1,3 @@
1
1
  export * from './environment-mode/index.js';
2
- export * from './environment-variable/index.js';
3
- export * from './environment-variables/index.js';
2
+ export * from './env-var-name/index.js';
3
+ export * from './envs/index.js';
@@ -1,2 +1,2 @@
1
- export * from './service-environment-variables/index.js';
1
+ export * from './service-envs/index.js';
2
2
  export * from './service-name/index.js';
@@ -1,2 +1,2 @@
1
- export * from './service-environment-variables/index.js';
1
+ export * from './service-envs/index.js';
2
2
  export * from './service-name/index.js';
@@ -0,0 +1,2 @@
1
+ import { ServiceEnvs } from './type.js';
2
+ export declare const SERVICE_ENVS: ServiceEnvs;
@@ -1,4 +1,4 @@
1
- export const SERVICE_ENVIRONMENT_VARIABLES = {
1
+ export const SERVICE_ENVS = {
2
2
  'environment-service': ['APP_NAME'],
3
3
  'cache-service': ['APP_NAME', 'MOBILE_APP_URL'],
4
4
  nginx: ['APP_PORT', 'EC2_IP_ADDRESS', 'SSL_PRIVATE_KEY'],
@@ -0,0 +1,5 @@
1
+ import { EnvVarName } from 'src/environment';
2
+ import { ServiceName } from '../service-name/index.js';
3
+ export type ServiceEnvs = {
4
+ [key in ServiceName]: EnvVarName[];
5
+ };
@@ -1,2 +0,0 @@
1
- import { EnvironmentVariables } from '../environment-variables/index.js';
2
- export type EnvironmentVariable = keyof EnvironmentVariables;
@@ -1,2 +0,0 @@
1
- import { ServiceEnvironmentVariables } from './type.js';
2
- export declare const SERVICE_ENVIRONMENT_VARIABLES: ServiceEnvironmentVariables;
@@ -1,5 +0,0 @@
1
- import { EnvironmentVariable } from '../../environment/index.js';
2
- import { ServiceName } from '../service-name/index.js';
3
- export type ServiceEnvironmentVariables = {
4
- [key in ServiceName]: EnvironmentVariable[];
5
- };