@candlerip/shared-devops 0.0.8 → 0.0.12

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.
@@ -3,4 +3,14 @@ set -e
3
3
 
4
4
  PARAMS=$(aws ssm get-parameters --names ${1//,/ } --output text --query "Parameters[*].{Name:Name,Value:Value}" --with-decryption | sed -E 's/\s+/=/g')
5
5
 
6
- printf "%s\n" "${PARAMS[@]}" > .env
6
+ PARAMS1="${PARAMS[@]//_DEVELOPMENT/}"
7
+ PARAMS2="${PARAMS1[@]//_PRODUCTION/}"
8
+
9
+ if [[ $2 ]]
10
+ then
11
+ FILENAME=".env.$2"
12
+ else
13
+ FILENAME=".env"
14
+ fi
15
+
16
+ printf "%s\n" "${PARAMS2[@]}" > $FILENAME
@@ -1,13 +1,18 @@
1
1
  #!/bin/bash
2
2
  set -e
3
3
 
4
- mkdir -p temp/dist
4
+ PUBLISH_PATH=./temp/npm
5
5
 
6
- cp ./package.json temp/dist
6
+ mkdir -p $PUBLISH_PATH
7
+
8
+ cp ./package.json $PUBLISH_PATH
7
9
  if [ -d ./_devops ]; then
8
- cp -r ./_devops temp/dist
10
+ cp -r ./_devops $PUBLISH_PATH
11
+ fi
12
+ if [ -d ./dist ]; then
13
+ cp -r ./_devops $PUBLISH_PATH
9
14
  fi
10
15
 
11
16
  npm config set //registry.npmjs.org/:_authToken ${NPM_ACCESS_TOKEN}
12
17
 
13
- npm publish ./temp/dist --access=public
18
+ npm publish $PUBLISH_PATH --access=public
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/bash
2
2
  set -e
3
3
 
4
- rm -rf temp/dist
4
+ rm -rf dist
5
5
  npx tsc
6
6
  npx tsc-alias
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/bash
2
2
  set -e
3
3
 
4
- rm -rf temp/dist
4
+ rm -rf dist
5
5
  npx tsc --watch
@@ -4,6 +4,8 @@
4
4
  "esModuleInterop": true,
5
5
  "module": "ES2022",
6
6
  "moduleResolution": "bundler",
7
+ "outDir": "dist",
8
+ "rootDir": ".",
7
9
  "skipLibCheck": true,
8
10
  "strict": true,
9
11
  "target": "ES2022"
@@ -12,4 +14,4 @@
12
14
  "verbose": false,
13
15
  "resolveFullPaths": true
14
16
  }
15
- }
17
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared-devops",
3
- "version": "0.0.8",
3
+ "version": "0.0.12",
4
4
  "bin": {
5
5
  "crsd-create-env-file": "./_devops/environment/create-env-file.sh",
6
6
  "crsd-build-publish-to-docker": "./_devops/docker/build-publish-to-docker.sh",