From dcaffcecf78d30cd480f1cf2794eb61afaeba5bf Mon Sep 17 00:00:00 2001 From: Leonardo Matos Date: Tue, 21 Jun 2022 14:02:12 -0300 Subject: [PATCH] fix: Explictly set packages `"type": "module"` --- package.json | 1 + packages/api/package.json | 3 ++- packages/apps/discounts/package.json | 3 ++- packages/storefront/package.json | 3 ++- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 09b18f628..d5bba8efb 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "name": "cloudcommerce", + "type": "module", "version": "0.0.7", "description": "Open fair-code headless commerce platform: API-first, microservices based, event driven and cloud native", "main": "src/index.js", diff --git a/packages/api/package.json b/packages/api/package.json index d5a4c4dca..5c3a4d6ca 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,5 +1,6 @@ { "name": "@cloudcommerce/api", + "type": "module", "version": "0.0.7", "description": "E-Com Plus Cloud Commerce APIs client/adapter", "main": "lib/index.js", @@ -19,4 +20,4 @@ "build": "sh scripts/build.sh", "test": "tsc -p ../../tsconfig.test.json && vitest run" } -} \ No newline at end of file +} diff --git a/packages/apps/discounts/package.json b/packages/apps/discounts/package.json index e0fb86dfa..aeff530d6 100644 --- a/packages/apps/discounts/package.json +++ b/packages/apps/discounts/package.json @@ -1,5 +1,6 @@ { "name": "@cloudcommerce/app-discounts", + "type": "module", "version": "0.0.7", "description": "E-Com Plus Cloud Commerce app for complex discount rules", "main": "functions/dist/index.js", @@ -20,4 +21,4 @@ "dependencies": { "@cloudcommerce/api": "workspace:*" } -} \ No newline at end of file +} diff --git a/packages/storefront/package.json b/packages/storefront/package.json index a6664ce86..ef518f945 100644 --- a/packages/storefront/package.json +++ b/packages/storefront/package.json @@ -1,5 +1,6 @@ { "name": "@cloudcommerce/storefront", + "type": "module", "version": "0.0.7", "description": "E-Com Plus Cloud Commerce storefront with Astro", "main": "src/index.js", @@ -21,4 +22,4 @@ "@cloudcommerce/api": "workspace:*", "astro": "1.0.0-beta.46" } -} \ No newline at end of file +}