epicshop 6.48.1 → 6.48.2
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.
|
@@ -375,10 +375,13 @@ export async function add(options) {
|
|
|
375
375
|
if (await workshopExists(repoName)) {
|
|
376
376
|
const message = `Workshop "${repoName}" already exists`;
|
|
377
377
|
if (!silent) {
|
|
378
|
+
const { getWorkshop } = await import('@epic-web/workshop-utils/workshops.server');
|
|
378
379
|
const reposDir = await getReposDirectory();
|
|
379
|
-
const
|
|
380
|
-
const
|
|
381
|
-
const
|
|
380
|
+
const workshop = await getWorkshop(repoName);
|
|
381
|
+
const workshopPath = workshop?.path ?? path.join(reposDir, repoName);
|
|
382
|
+
const workshopRepoName = workshop?.repoName ?? repoName;
|
|
383
|
+
const openCommand = `npx epicshop open ${workshopRepoName}`;
|
|
384
|
+
const startCommand = `npx epicshop start ${workshopRepoName}`;
|
|
382
385
|
console.log(chalk.yellow(`⚠️ ${message}`));
|
|
383
386
|
console.log(chalk.gray(` Location on disk: ${workshopPath}`));
|
|
384
387
|
console.log(chalk.gray(` You can run:`));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "epicshop",
|
|
3
|
-
"version": "6.48.
|
|
3
|
+
"version": "6.48.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"build:watch": "nx watch --projects=epicshop -- nx run \\$NX_PROJECT_NAME:build"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@epic-web/workshop-utils": "6.48.
|
|
53
|
+
"@epic-web/workshop-utils": "6.48.2",
|
|
54
54
|
"@inquirer/prompts": "^7.5.1",
|
|
55
55
|
"chalk": "^5.6.2",
|
|
56
56
|
"close-with-grace": "^2.3.0",
|