declapract-typescript-ehmpathy 0.36.5 → 0.37.0

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.
@@ -57,5 +57,13 @@ export const { stage } = getEnvironment();
57
57
  export const serviceClientStage =
58
58
  stage === Stage.PRODUCTION ? Stage.PRODUCTION : Stage.DEVELOPMENT; // i.e., if its prod, hit prod. otherwise, dev
59
59
 
60
- // export whether we were asked to run locally; // todo, replace this with env.server
61
- export const locally = process.env.LOCALLY === 'true'; // whether we want to acceptance test locally or deployed lambda
60
+ // export the v3 environmental variables
61
+ export const environment = {
62
+ access: stage,
63
+ server: (() => {
64
+ if (process.env.CI) return 'CICD' as const;
65
+ if (process.env.LAMBDA_TASK_ROOT) return 'AWS:LAMBDA' as const;
66
+ return 'LOCAL' as const; // default to local
67
+ })(),
68
+ // region: // todo
69
+ };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "declapract-typescript-ehmpathy",
3
3
  "author": "ehmpathy",
4
4
  "description": "declapract best practices declarations for typescript",
5
- "version": "0.36.5",
5
+ "version": "0.37.0",
6
6
  "license": "MIT",
7
7
  "main": "src/index.js",
8
8
  "repository": "ehmpathy/declapract-typescript-ehmpathy",