From b1f9cb677001762b21342fe1eb541708c368471b Mon Sep 17 00:00:00 2001 From: Thien Huynh Date: Tue, 30 Jul 2024 14:43:35 -0600 Subject: [PATCH 1/5] generate: add zonos-elements to cdnjs --- packages/z/zonos-elements.json | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 packages/z/zonos-elements.json diff --git a/packages/z/zonos-elements.json b/packages/z/zonos-elements.json new file mode 100644 index 000000000..4d3a9777a --- /dev/null +++ b/packages/z/zonos-elements.json @@ -0,0 +1,38 @@ +{ + "name": "zepto", + "description": "Zonos component UI for Stripe elements", + "main": "dist/index.cjs.js", + "module": "dist/index.js", + "es2015": "dist/esm/index.mjs", + "es2017": "dist/esm/index.mjs", + "types": "dist/types/index.d.ts", + "unpkg": "dist/zonos-elements/zonos-elements.esm.js", + "collection": "dist/collection/collection-manifest.json", + "repository": { + "type": "git", + "url": "https://github.com/Zonos/zonos-elements-readme" + }, + "files": [ + "dist/", + "loader/" + ], + "license": "MIT", + "optimization": { + "js": false, + "css": false, + "png": true, + "jpg": true + }, + "autoupdate": { + "source": "npm", + "target": "zonos-elements", + "fileMap": [ + { + "basePath": "", + "files": [ + "**/*" + ] + } + ] + } +} From fad419ebde350532007c1ded4d278f65d8abab36 Mon Sep 17 00:00:00 2001 From: Thien Huynh Date: Tue, 30 Jul 2024 14:54:33 -0600 Subject: [PATCH 2/5] refactor: use default setting --- packages/z/zonos-elements.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/z/zonos-elements.json b/packages/z/zonos-elements.json index 4d3a9777a..43614825c 100644 --- a/packages/z/zonos-elements.json +++ b/packages/z/zonos-elements.json @@ -17,12 +17,6 @@ "loader/" ], "license": "MIT", - "optimization": { - "js": false, - "css": false, - "png": true, - "jpg": true - }, "autoupdate": { "source": "npm", "target": "zonos-elements", From 01524f02e46ca4a7574c6f4c8988cc1e2343456a Mon Sep 17 00:00:00 2001 From: Thien Huynh Date: Tue, 30 Jul 2024 17:00:36 -0600 Subject: [PATCH 3/5] refactor: update name, npm target and add keywords --- packages/z/zonos-elements.json | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/z/zonos-elements.json b/packages/z/zonos-elements.json index 43614825c..d625959cb 100644 --- a/packages/z/zonos-elements.json +++ b/packages/z/zonos-elements.json @@ -1,5 +1,5 @@ { - "name": "zepto", + "name": "zonos-elements", "description": "Zonos component UI for Stripe elements", "main": "dist/index.cjs.js", "module": "dist/index.js", @@ -8,6 +8,15 @@ "types": "dist/types/index.d.ts", "unpkg": "dist/zonos-elements/zonos-elements.esm.js", "collection": "dist/collection/collection-manifest.json", + "keywords": [ + "cross-border", + "international shopping", + "calculate-landed-cost", + "zonos", + "elements", + "payments", + "checkout" + ], "repository": { "type": "git", "url": "https://github.com/Zonos/zonos-elements-readme" @@ -19,7 +28,7 @@ "license": "MIT", "autoupdate": { "source": "npm", - "target": "zonos-elements", + "target": "@zonos/elements", "fileMap": [ { "basePath": "", From 4088413e986c4c88224b074e86e3558bddf069aa Mon Sep 17 00:00:00 2001 From: Thien Huynh Date: Wed, 31 Jul 2024 09:19:30 -0600 Subject: [PATCH 4/5] refactor: add filename field --- packages/z/zonos-elements.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/z/zonos-elements.json b/packages/z/zonos-elements.json index d625959cb..6fbc5809d 100644 --- a/packages/z/zonos-elements.json +++ b/packages/z/zonos-elements.json @@ -1,5 +1,6 @@ { "name": "zonos-elements", + "filename": "dist/scripts/loadZonos.js", "description": "Zonos component UI for Stripe elements", "main": "dist/index.cjs.js", "module": "dist/index.js", From 7b7f45d2030ddad94a8526629c1bd975601fd91f Mon Sep 17 00:00:00 2001 From: Thien Huynh Date: Sun, 4 Aug 2024 18:29:28 -0600 Subject: [PATCH 5/5] refactor: apply suggestion --- packages/z/zonos-elements.json | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/packages/z/zonos-elements.json b/packages/z/zonos-elements.json index 6fbc5809d..cf8f257ce 100644 --- a/packages/z/zonos-elements.json +++ b/packages/z/zonos-elements.json @@ -2,13 +2,6 @@ "name": "zonos-elements", "filename": "dist/scripts/loadZonos.js", "description": "Zonos component UI for Stripe elements", - "main": "dist/index.cjs.js", - "module": "dist/index.js", - "es2015": "dist/esm/index.mjs", - "es2017": "dist/esm/index.mjs", - "types": "dist/types/index.d.ts", - "unpkg": "dist/zonos-elements/zonos-elements.esm.js", - "collection": "dist/collection/collection-manifest.json", "keywords": [ "cross-border", "international shopping", @@ -22,10 +15,6 @@ "type": "git", "url": "https://github.com/Zonos/zonos-elements-readme" }, - "files": [ - "dist/", - "loader/" - ], "license": "MIT", "autoupdate": { "source": "npm", @@ -34,7 +23,9 @@ { "basePath": "", "files": [ - "**/*" + "dist/zonos-elements/*.@(css|js)", + "dist/zonos-elements/assets/*.@(jpeg|jpg|png|svg|ico)", + "dist/scripts/*.js" ] } ]