declapract-typescript-ehmpathy 0.22.4 → 0.22.6
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.
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"devDependencies": {
|
|
3
|
-
"serverless": "@declapract{check.minVersion('2.57.0')}"
|
|
3
|
+
"serverless": "@declapract{check.minVersion('2.57.0')}",
|
|
4
|
+
"if-env": "@declapract{check.minVersion('1.0.4')}"
|
|
4
5
|
},
|
|
5
6
|
"scripts": {
|
|
6
7
|
"deploy:release": "npm run build && sls deploy --verbose --stage $STAGE",
|
|
7
8
|
"deploy:send-notification": "curl -X POST -H 'Content-type: application/json' --data \"{\\\"text\\\":\\\"$([ -z $DEPLOYER_NAME ] && git config user.name || echo $DEPLOYER_NAME) has deployed $npm_package_name@v$npm_package_version:\nhttps://github.com/@declapract{variable.organizationName}/$npm_package_name/tree/v$npm_package_version\\\"}\" @declapract{variable.slackWebhookUrl}",
|
|
8
9
|
"deploy:dev": "STAGE=dev npm run deploy:release",
|
|
9
10
|
"deploy:prod": "STAGE=prod npm run deploy:release && npm run deploy:send-notification",
|
|
10
|
-
"deploy": "if-env STAGE=prod && npm run deploy:prod || if-env STAGE=dev && npm run deploy:dev || echo '🛑 invalid STAGE, must be prod or dev'"
|
|
11
|
+
"deploy": "if-env STAGE=prod && npm run deploy:prod && exit 0 || if-env STAGE=dev && npm run deploy:dev && exit 0 || echo '🛑 invalid STAGE, must be prod or dev' && exit 1"
|
|
11
12
|
}
|
|
12
13
|
}
|
package/package.json
CHANGED