@letscooee/web-sdk 3.9.5 → 4.0.1

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@letscooee/web-sdk",
3
3
  "description": "AI driven Personalized Notifications for Better Customer Engagement",
4
- "version": "3.9.5",
4
+ "version": "4.0.1",
5
5
  "scripts": {
6
6
  "lint": "eslint \"**/**/*.ts\" --max-warnings=0",
7
7
  "integrity": "./scripts/validate-integrity.sh",
@@ -0,0 +1,18 @@
1
+ #!/bin/bash -e
2
+ # This script is used to do a snapshot release for production use.
3
+ # Ideally, this script shouldn't be used frequently because this allows to test uncommited/unverified
4
+ # changes to a production Shopify store.
5
+
6
+ npm run build:production
7
+
8
+ aws s3 cp --recursive --exclude "*.LICENSE.txt" --include "*.min.ts" dist/ \
9
+ s3://cooee-global-assets/js/snapshot/production/ \
10
+ --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers \
11
+ --cache-control="no-cache"
12
+
13
+ aws cloudfront create-invalidation \
14
+ --distribution-id E15L6C9HWN93MV \
15
+ --paths "/js/snapshot/production/*" \
16
+ --no-cli-pager
17
+
18
+ echo "URL to use: https://cdn.global.letscooee.com/js/snapshot/production/shopify-sdk.min.js"