Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

chore: v2.0.0-canary.2

vholikbcdd6f826f16
diff --git a/packages/cli/package.json b/packages/cli/package.json
index 2dadf4bdf..c8bb4ae15 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -1,6 +1,6 @@
{
"name": "@mercurjs/cli",
- "version": "2.0.0-canary.1",
+ "version": "2.0.0-canary.2",
"repository": {
"type": "git",
"url": "https://github.com/mercurjs/mercur",
diff --git a/packages/cli/src/commands/create.ts b/packages/cli/src/commands/create.ts
index 4b3b4df32..02d564a59 100644
--- a/packages/cli/src/commands/create.ts
+++ b/packages/cli/src/commands/create.ts
@@ -79,25 +79,49 @@ export const create = new Command()
projectName = enteredName;
- let template = opts.template;
- if (!template) {
- const { selectedTemplate } = await prompts({
- type: "select",
- name: "selectedTemplate",
- message: `Which ${highlighter.info(
- "template"
- )} would you like to use?`,
- choices: Object.entries(CREATE_TEMPLATES).map(([key, value]) => ({
- title: value,
- value: key,
- })),
+ // todo: uncomment when more templates are available
+ // let template = opts.template;
+ // if (!template) {
+ // const { selectedTemplate } = await prompts({
+ // type: "select",
+ // name: "selectedTemplate",
+ // message: `Which ${highlighter.info(
+ // "template"
+ // )} would you like to use?`,
+ // choices: Object.entries(CREATE_TEMPLATES).map(([key, value]) => ({
+ // title: value,
+ // value: key,
+ // })),
+ // });
+
+ // if (!selectedTemplate) {
+ // process.exit(0);
+ // }
+
+ // template = selectedTemplate;
+ // }
+ const template = opts.template || "basic";
+
+ if (!opts.skipEmail) {
+ const { wantsEmail } = await prompts({
+ type: "confirm",
+ name: "wantsEmail",
+ message: "Mind sharing your email? We reach out for priority support, community events, and invite-only meetups. We never spam.",
+ initial: false,
});
- if (!selectedTemplate) {
- process.exit(0);
- }
+ if (wantsEmail) {
+ const { email } = await prompts({
+ type: "text",
+ name: "email",
+ message: "Enter your email:",
+ format: (value: string) => value.trim(),
+ });
- template = selectedTemplate;
+ if (email) {
+ setTelemetryEmail(email);
+ }
+ }
}
const projectDir = path.resolve(opts.cwd, projectName);
@@ -178,28 +202,6 @@ export const create = new Command()
spinner("Database setup skipped.").warn();
}
- if (!opts.skipEmail) {
- const { wantsEmail } = await prompts({
- type: "confirm",
- name: "wantsEmail",
- message: "Mind sharing your email? We reach out for priority support, community events, and invite-only meetups. We never spam.",
- initial: false,
- });
-
- if (wantsEmail) {
- const { email } = await prompts({
- type: "text",
- name: "email",
- message: "Enter your email:",
- format: (value: string) => value.trim(),
- });
-
- if (email) {
- setTelemetryEmail(email);
- }
- }
- }
-
await manageEnvFiles({
projectDir,
databaseUri: dbConnectionString,
diff --git a/packages/client/package.json b/packages/client/package.json
index 58d1b5513..15abe770f 100644
--- a/packages/client/package.json
+++ b/packages/client/package.json
@@ -1,6 +1,6 @@
{
"name": "@mercurjs/client",
- "version": "2.0.0-canary.1",
+ "version": "2.0.0-canary.2",
"repository": {
"type": "git",
"url": "https://github.com/mercurjs/mercur",
diff --git a/packages/core-plugin/package.json b/packages/core-plugin/package.json
index 9a7c2353c..0e7e8cdb4 100644
--- a/packages/core-plugin/package.json
+++ b/packages/core-plugin/package.json
@@ -1,6 +1,6 @@
{
"name": "@mercurjs/core-plugin",
- "version": "2.0.0-canary.1",
+ "version": "2.0.0-canary.2",
"repository": {
"type": "git",
"url": "https://github.com/mercurjs/mercur",
diff --git a/packages/dashboard-sdk/package.json b/packages/dashboard-sdk/package.json
index 1abf75900..fd1d2c646 100644
--- a/packages/dashboard-sdk/package.json
+++ b/packages/dashboard-sdk/package.json
@@ -1,6 +1,6 @@
{
"name": "@mercurjs/dashboard-sdk",
- "version": "2.0.0-canary.1",
+ "version": "2.0.0-canary.2",
"repository": {
"type": "git",
"url": "https://github.com/mercurjs/mercur",
diff --git a/packages/dashboard-shared/package.json b/packages/dashboard-shared/package.json
index e17354cd2..52ad5b514 100644
--- a/packages/dashboard-shared/package.json
+++ b/packages/dashboard-shared/package.json
@@ -1,6 +1,6 @@
{
"name": "@mercurjs/dashboard-shared",
- "version": "2.0.0-canary.1",
+ "version": "2.0.0-canary.2",
"repository": {
"type": "git",
"url": "https://github.com/mercurjs/mercur",
diff --git a/packages/types/package.json b/packages/types/package.json
index e91e702bf..ae6a2ff6a 100644
--- a/packages/types/package.json
+++ b/packages/types/package.json
@@ -1,6 +1,6 @@
{
"name": "@mercurjs/types",
- "version": "2.0.0-canary.1",
+ "version": "2.0.0-canary.2",
"repository": {
"type": "git",
"url": "https://github.com/mercurjs/mercur",
diff --git a/packages/vendor/package.json b/packages/vendor/package.json
index 93dd362e4..1970b1d6b 100644
--- a/packages/vendor/package.json
+++ b/packages/vendor/package.json
@@ -1,6 +1,6 @@
{
"name": "@mercurjs/vendor",
- "version": "2.0.0-canary.1",
+ "version": "2.0.0-canary.2",
"repository": {
"type": "git",
"url": "https://github.com/mercurjs/mercur",
diff --git a/templates/basic/apps/vendor/package.json b/templates/basic/apps/vendor/package.json
index 1c82f0df7..6181eb334 100644
--- a/templates/basic/apps/vendor/package.json
+++ b/templates/basic/apps/vendor/package.json
@@ -11,8 +11,8 @@
},
"dependencies": {
"@medusajs/icons": "^2.13.1",
- "@mercurjs/dashboard-sdk": "2.0.0-canary.0",
- "@mercurjs/vendor": "2.0.0-canary.0",
+ "@mercurjs/dashboard-sdk": "2.0.0-canary.2",
+ "@mercurjs/vendor": "2.0.0-canary.2",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
diff --git a/templates/basic/packages/api/package.json b/templates/basic/packages/api/package.json
index 8ce386aa4..74d3e70c4 100644
--- a/templates/basic/packages/api/package.json
+++ b/templates/basic/packages/api/package.json
@@ -36,8 +36,8 @@
"@medusajs/admin-shared": "^2.13.0",
"@medusajs/medusa": "^2.13.0",
"@medusajs/draft-order": "2.13.0",
- "@mercurjs/core-plugin": "2.0.0-canary.0",
- "@mercurjs/types": "2.0.0-canary.0"
+ "@mercurjs/core-plugin": "2.0.0-canary.2",
+ "@mercurjs/types": "2.0.0-canary.2"
},
"devDependencies": {
"@medusajs/test-utils": "^2.13.0",