epicshop 6.47.6 → 6.47.7
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/cli.js +28 -0
- package/dist/{esm/cli.d.ts → cli.d.ts} +0 -1
- package/dist/{esm/cli.js → cli.js} +39 -40
- package/dist/{esm/commands → commands}/auth.d.ts +0 -1
- package/dist/{esm/commands → commands}/auth.js +0 -1
- package/dist/{esm/commands → commands}/migrate.d.ts +0 -1
- package/dist/{esm/commands → commands}/migrate.js +0 -1
- package/dist/{esm/commands → commands}/start.d.ts +0 -1
- package/dist/{esm/commands → commands}/start.js +0 -1
- package/dist/{esm/commands → commands}/update.d.ts +0 -1
- package/dist/{esm/commands → commands}/update.js +0 -1
- package/dist/{esm/commands → commands}/warm.d.ts +0 -1
- package/dist/{esm/commands → commands}/warm.js +0 -1
- package/dist/{esm/commands → commands}/workshops.d.ts +0 -1
- package/dist/{esm/commands → commands}/workshops.js +1 -2
- package/package.json +23 -34
- package/dist/esm/cli.d.ts.map +0 -1
- package/dist/esm/cli.js.map +0 -1
- package/dist/esm/commands/auth.d.ts.map +0 -1
- package/dist/esm/commands/auth.js.map +0 -1
- package/dist/esm/commands/migrate.d.ts.map +0 -1
- package/dist/esm/commands/migrate.js.map +0 -1
- package/dist/esm/commands/start.d.ts.map +0 -1
- package/dist/esm/commands/start.js.map +0 -1
- package/dist/esm/commands/update.d.ts.map +0 -1
- package/dist/esm/commands/update.js.map +0 -1
- package/dist/esm/commands/update.test.d.ts +0 -2
- package/dist/esm/commands/update.test.d.ts.map +0 -1
- package/dist/esm/commands/update.test.js +0 -195
- package/dist/esm/commands/update.test.js.map +0 -1
- package/dist/esm/commands/warm.d.ts.map +0 -1
- package/dist/esm/commands/warm.js.map +0 -1
- package/dist/esm/commands/warm.test.d.ts +0 -2
- package/dist/esm/commands/warm.test.d.ts.map +0 -1
- package/dist/esm/commands/warm.test.js +0 -65
- package/dist/esm/commands/warm.test.js.map +0 -1
- package/dist/esm/commands/workshops.d.ts.map +0 -1
- package/dist/esm/commands/workshops.js.map +0 -1
- package/dist/esm/package.json +0 -3
package/cli.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { execSync } from 'node:child_process'
|
|
4
|
+
import { existsSync } from 'node:fs'
|
|
5
|
+
import { dirname, join } from 'node:path'
|
|
6
|
+
import { fileURLToPath } from 'node:url'
|
|
7
|
+
|
|
8
|
+
const __filename = fileURLToPath(import.meta.url)
|
|
9
|
+
const __dirname = dirname(__filename)
|
|
10
|
+
|
|
11
|
+
// Check if we're in development (source file exists) or production (published package)
|
|
12
|
+
const cliSource = join(__dirname, 'src', 'cli.ts')
|
|
13
|
+
const cliBuilt = join(__dirname, 'dist', 'cli.js')
|
|
14
|
+
|
|
15
|
+
if (existsSync(cliSource)) {
|
|
16
|
+
// Development: use tsx to run source file directly so changes are picked up
|
|
17
|
+
const parentImports = process.argv
|
|
18
|
+
.filter((arg) => arg.startsWith('--import'))
|
|
19
|
+
.join(' ')
|
|
20
|
+
const args = process.argv
|
|
21
|
+
.slice(2)
|
|
22
|
+
.filter((arg) => !arg.startsWith('--import'))
|
|
23
|
+
const command = `tsx ${parentImports} "${cliSource}" ${args.join(' ')}`
|
|
24
|
+
execSync(command, { stdio: 'inherit', shell: true })
|
|
25
|
+
} else {
|
|
26
|
+
// Production: use the built file
|
|
27
|
+
await import(cliBuilt)
|
|
28
|
+
}
|
|
@@ -9,7 +9,7 @@ import { hideBin } from 'yargs/helpers';
|
|
|
9
9
|
const args = hideBin(process.argv);
|
|
10
10
|
if ((args.includes('--help') || args.includes('-h')) &&
|
|
11
11
|
(args.length === 0 || args[0] === 'start')) {
|
|
12
|
-
const { displayHelp } = await import(
|
|
12
|
+
const { displayHelp } = await import("./commands/start.js");
|
|
13
13
|
displayHelp();
|
|
14
14
|
process.exit(0);
|
|
15
15
|
}
|
|
@@ -61,7 +61,7 @@ const cli = yargs(args)
|
|
|
61
61
|
}, async (argv) => {
|
|
62
62
|
// If a specific workshop is requested, start it from managed workshops
|
|
63
63
|
if (argv.workshop) {
|
|
64
|
-
const { startWorkshop } = await import(
|
|
64
|
+
const { startWorkshop } = await import("./commands/workshops.js");
|
|
65
65
|
const result = await startWorkshop({
|
|
66
66
|
workshop: argv.workshop,
|
|
67
67
|
silent: argv.silent,
|
|
@@ -72,7 +72,7 @@ const cli = yargs(args)
|
|
|
72
72
|
return;
|
|
73
73
|
}
|
|
74
74
|
// Check if we're inside any workshop directory (walk up to find package.json with epicshop)
|
|
75
|
-
const { findWorkshopRoot } = await import(
|
|
75
|
+
const { findWorkshopRoot } = await import("./commands/workshops.js");
|
|
76
76
|
const workshopRoot = await findWorkshopRoot();
|
|
77
77
|
if (workshopRoot) {
|
|
78
78
|
// We're inside a workshop directory, start from that root
|
|
@@ -80,7 +80,7 @@ const cli = yargs(args)
|
|
|
80
80
|
process.chdir(workshopRoot);
|
|
81
81
|
try {
|
|
82
82
|
// run migrations before starting
|
|
83
|
-
await import(
|
|
83
|
+
await import("./commands/migrate.js")
|
|
84
84
|
.then(({ migrate }) => migrate())
|
|
85
85
|
.catch((error) => {
|
|
86
86
|
if (!argv.silent) {
|
|
@@ -88,14 +88,14 @@ const cli = yargs(args)
|
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
// kick off a warmup while we start the server
|
|
91
|
-
import(
|
|
91
|
+
import("./commands/warm.js")
|
|
92
92
|
.then(({ warm }) => warm({ silent: true }))
|
|
93
93
|
.catch((error) => {
|
|
94
94
|
if (!argv.silent) {
|
|
95
95
|
console.error(chalk.yellow('⚠️ Warmup failed:'), error);
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
|
-
const { start } = await import(
|
|
98
|
+
const { start } = await import("./commands/start.js");
|
|
99
99
|
const result = await start({
|
|
100
100
|
appLocation: argv.appLocation,
|
|
101
101
|
verbose: argv.verbose,
|
|
@@ -117,7 +117,7 @@ const cli = yargs(args)
|
|
|
117
117
|
}
|
|
118
118
|
else {
|
|
119
119
|
// Not inside a workshop, show selection from managed workshops
|
|
120
|
-
const { startWorkshop } = await import(
|
|
120
|
+
const { startWorkshop } = await import("./commands/workshops.js");
|
|
121
121
|
const result = await startWorkshop({ silent: argv.silent });
|
|
122
122
|
if (!result.success) {
|
|
123
123
|
process.exit(1);
|
|
@@ -127,7 +127,7 @@ const cli = yargs(args)
|
|
|
127
127
|
.command('init', 'Initialize epicshop and start the tutorial (first-time setup)', (yargs) => {
|
|
128
128
|
return yargs.example('$0 init', 'Run the first-time setup wizard');
|
|
129
129
|
}, async () => {
|
|
130
|
-
const { onboarding } = await import(
|
|
130
|
+
const { onboarding } = await import("./commands/workshops.js");
|
|
131
131
|
const result = await onboarding();
|
|
132
132
|
if (!result.success) {
|
|
133
133
|
process.exit(1);
|
|
@@ -154,7 +154,7 @@ const cli = yargs(args)
|
|
|
154
154
|
.example('$0 add full-stack-foundations', 'Clone and set up the full-stack-foundations workshop')
|
|
155
155
|
.example('$0 add web-forms --directory ~/my-workshops', 'Clone workshop to a custom directory');
|
|
156
156
|
}, async (argv) => {
|
|
157
|
-
const { add } = await import(
|
|
157
|
+
const { add } = await import("./commands/workshops.js");
|
|
158
158
|
const result = await add({
|
|
159
159
|
repoName: argv.repoName,
|
|
160
160
|
directory: argv.directory,
|
|
@@ -174,7 +174,7 @@ const cli = yargs(args)
|
|
|
174
174
|
})
|
|
175
175
|
.example('$0 list', 'List all added workshops');
|
|
176
176
|
}, async (argv) => {
|
|
177
|
-
const { list } = await import(
|
|
177
|
+
const { list } = await import("./commands/workshops.js");
|
|
178
178
|
const result = await list({ silent: argv.silent });
|
|
179
179
|
if (!result.success) {
|
|
180
180
|
process.exit(1);
|
|
@@ -195,7 +195,7 @@ const cli = yargs(args)
|
|
|
195
195
|
.example('$0 remove', 'Remove current workshop or select one')
|
|
196
196
|
.example('$0 remove full-stack-foundations', 'Remove a specific workshop');
|
|
197
197
|
}, async (argv) => {
|
|
198
|
-
const { findWorkshopRoot, remove } = await import(
|
|
198
|
+
const { findWorkshopRoot, remove } = await import("./commands/workshops.js");
|
|
199
199
|
let workshopToRemove = argv.workshop;
|
|
200
200
|
// If no workshop specified, check if we're inside a workshop directory
|
|
201
201
|
if (!workshopToRemove) {
|
|
@@ -228,7 +228,7 @@ const cli = yargs(args)
|
|
|
228
228
|
.example('$0 open', 'Open current workshop or select one')
|
|
229
229
|
.example('$0 open full-stack-foundations', 'Open a specific workshop');
|
|
230
230
|
}, async (argv) => {
|
|
231
|
-
const { findWorkshopRoot, openWorkshop } = await import(
|
|
231
|
+
const { findWorkshopRoot, openWorkshop } = await import("./commands/workshops.js");
|
|
232
232
|
let workshopToOpen = argv.workshop;
|
|
233
233
|
// If no workshop specified, check if we're inside a workshop directory
|
|
234
234
|
if (!workshopToOpen) {
|
|
@@ -267,7 +267,7 @@ const cli = yargs(args)
|
|
|
267
267
|
.example('$0 config reset', 'Delete config file and reset to defaults')
|
|
268
268
|
.example('$0 config --repos-dir ~/epicweb', 'Set the repos directory');
|
|
269
269
|
}, async (argv) => {
|
|
270
|
-
const { config } = await import(
|
|
270
|
+
const { config } = await import("./commands/workshops.js");
|
|
271
271
|
const result = await config({
|
|
272
272
|
subcommand: argv.subcommand === 'reset' ? 'reset' : undefined,
|
|
273
273
|
reposDir: argv.reposDir,
|
|
@@ -289,14 +289,14 @@ const cli = yargs(args)
|
|
|
289
289
|
.example('$0 update --silent', 'Update workshop to latest version silently');
|
|
290
290
|
}, async (argv) => {
|
|
291
291
|
// Check if we're inside any workshop directory
|
|
292
|
-
const { findWorkshopRoot } = await import(
|
|
292
|
+
const { findWorkshopRoot } = await import("./commands/workshops.js");
|
|
293
293
|
const workshopRoot = await findWorkshopRoot();
|
|
294
294
|
if (workshopRoot) {
|
|
295
295
|
// Inside a workshop, run update on it
|
|
296
296
|
const originalCwd = process.cwd();
|
|
297
297
|
process.chdir(workshopRoot);
|
|
298
298
|
try {
|
|
299
|
-
const { update } = await import(
|
|
299
|
+
const { update } = await import("./commands/update.js");
|
|
300
300
|
const result = await update({ silent: argv.silent });
|
|
301
301
|
if (!result.success) {
|
|
302
302
|
if (!argv.silent) {
|
|
@@ -357,7 +357,7 @@ const cli = yargs(args)
|
|
|
357
357
|
const originalCwd = process.cwd();
|
|
358
358
|
process.chdir(workshop.path);
|
|
359
359
|
try {
|
|
360
|
-
const { update } = await import(
|
|
360
|
+
const { update } = await import("./commands/update.js");
|
|
361
361
|
const result = await update({ silent: argv.silent });
|
|
362
362
|
if (!result.success) {
|
|
363
363
|
if (!argv.silent) {
|
|
@@ -393,14 +393,14 @@ const cli = yargs(args)
|
|
|
393
393
|
.example('$0 warm --silent', 'Warm up workshop caches silently');
|
|
394
394
|
}, async (argv) => {
|
|
395
395
|
// Check if we're inside any workshop directory
|
|
396
|
-
const { findWorkshopRoot } = await import(
|
|
396
|
+
const { findWorkshopRoot } = await import("./commands/workshops.js");
|
|
397
397
|
const workshopRoot = await findWorkshopRoot();
|
|
398
398
|
if (workshopRoot) {
|
|
399
399
|
// Inside a workshop, warm it
|
|
400
400
|
const originalCwd = process.cwd();
|
|
401
401
|
process.chdir(workshopRoot);
|
|
402
402
|
try {
|
|
403
|
-
const { warm } = await import(
|
|
403
|
+
const { warm } = await import("./commands/warm.js");
|
|
404
404
|
const result = await warm({ silent: argv.silent });
|
|
405
405
|
if (!result.success) {
|
|
406
406
|
if (!argv.silent) {
|
|
@@ -461,7 +461,7 @@ const cli = yargs(args)
|
|
|
461
461
|
const originalCwd = process.cwd();
|
|
462
462
|
process.chdir(workshop.path);
|
|
463
463
|
try {
|
|
464
|
-
const { warm } = await import(
|
|
464
|
+
const { warm } = await import("./commands/warm.js");
|
|
465
465
|
const result = await warm({ silent: argv.silent });
|
|
466
466
|
if (!result.success) {
|
|
467
467
|
if (!argv.silent) {
|
|
@@ -497,7 +497,7 @@ const cli = yargs(args)
|
|
|
497
497
|
.example('$0 migrate --silent', 'Run migrations silently');
|
|
498
498
|
}, async (argv) => {
|
|
499
499
|
try {
|
|
500
|
-
const { migrate } = await import(
|
|
500
|
+
const { migrate } = await import("./commands/migrate.js");
|
|
501
501
|
const result = await migrate();
|
|
502
502
|
if (argv.silent)
|
|
503
503
|
return;
|
|
@@ -546,7 +546,7 @@ const cli = yargs(args)
|
|
|
546
546
|
.example('$0 auth login epicweb.dev', 'Login to EpicWeb.dev')
|
|
547
547
|
.example('$0 auth logout epicreact', 'Logout from EpicReact.dev');
|
|
548
548
|
}, async (argv) => {
|
|
549
|
-
const { status, login, logout } = await import(
|
|
549
|
+
const { status, login, logout } = await import("./commands/auth.js");
|
|
550
550
|
let subcommand = argv.subcommand;
|
|
551
551
|
if (!subcommand) {
|
|
552
552
|
if (argv.silent) {
|
|
@@ -619,7 +619,7 @@ try {
|
|
|
619
619
|
// Only trigger when args is truly empty - any arg means a command was attempted
|
|
620
620
|
if (args.length === 0) {
|
|
621
621
|
// Check if we're inside a workshop first
|
|
622
|
-
const { findWorkshopRoot } = await import(
|
|
622
|
+
const { findWorkshopRoot } = await import("./commands/workshops.js");
|
|
623
623
|
const workshopRoot = await findWorkshopRoot();
|
|
624
624
|
// Get workshop title if we're inside one
|
|
625
625
|
let workshopTitle = null;
|
|
@@ -720,20 +720,20 @@ try {
|
|
|
720
720
|
});
|
|
721
721
|
switch (subcommand) {
|
|
722
722
|
case 'start': {
|
|
723
|
-
const { findWorkshopRoot, startWorkshop } = await import(
|
|
723
|
+
const { findWorkshopRoot, startWorkshop } = await import("./commands/workshops.js");
|
|
724
724
|
const wsRoot = await findWorkshopRoot();
|
|
725
725
|
if (wsRoot) {
|
|
726
726
|
// Inside a workshop, start it directly
|
|
727
727
|
const originalCwd = process.cwd();
|
|
728
728
|
process.chdir(wsRoot);
|
|
729
729
|
try {
|
|
730
|
-
await import(
|
|
730
|
+
await import("./commands/migrate.js")
|
|
731
731
|
.then(({ migrate }) => migrate())
|
|
732
732
|
.catch(() => { });
|
|
733
|
-
import(
|
|
733
|
+
import("./commands/warm.js")
|
|
734
734
|
.then(({ warm }) => warm({ silent: true }))
|
|
735
735
|
.catch(() => { });
|
|
736
|
-
const { start } = await import(
|
|
736
|
+
const { start } = await import("./commands/start.js");
|
|
737
737
|
const result = await start({});
|
|
738
738
|
if (!result.success)
|
|
739
739
|
process.exit(1);
|
|
@@ -750,7 +750,7 @@ try {
|
|
|
750
750
|
break;
|
|
751
751
|
}
|
|
752
752
|
case 'open': {
|
|
753
|
-
const { findWorkshopRoot, openWorkshop } = await import(
|
|
753
|
+
const { findWorkshopRoot, openWorkshop } = await import("./commands/workshops.js");
|
|
754
754
|
const workshopRoot = await findWorkshopRoot();
|
|
755
755
|
const result = await openWorkshop({
|
|
756
756
|
workshop: workshopRoot || undefined,
|
|
@@ -760,21 +760,21 @@ try {
|
|
|
760
760
|
break;
|
|
761
761
|
}
|
|
762
762
|
case 'list': {
|
|
763
|
-
const { list } = await import(
|
|
763
|
+
const { list } = await import("./commands/workshops.js");
|
|
764
764
|
const result = await list({});
|
|
765
765
|
if (!result.success)
|
|
766
766
|
process.exit(1);
|
|
767
767
|
break;
|
|
768
768
|
}
|
|
769
769
|
case 'add': {
|
|
770
|
-
const { add } = await import(
|
|
770
|
+
const { add } = await import("./commands/workshops.js");
|
|
771
771
|
const result = await add({});
|
|
772
772
|
if (!result.success)
|
|
773
773
|
process.exit(1);
|
|
774
774
|
break;
|
|
775
775
|
}
|
|
776
776
|
case 'remove': {
|
|
777
|
-
const { findWorkshopRoot, remove } = await import(
|
|
777
|
+
const { findWorkshopRoot, remove } = await import("./commands/workshops.js");
|
|
778
778
|
const workshopRoot = await findWorkshopRoot();
|
|
779
779
|
const result = await remove({
|
|
780
780
|
workshop: workshopRoot || undefined,
|
|
@@ -784,13 +784,13 @@ try {
|
|
|
784
784
|
break;
|
|
785
785
|
}
|
|
786
786
|
case 'update': {
|
|
787
|
-
const { findWorkshopRoot } = await import(
|
|
787
|
+
const { findWorkshopRoot } = await import("./commands/workshops.js");
|
|
788
788
|
const wsRoot = await findWorkshopRoot();
|
|
789
789
|
if (wsRoot) {
|
|
790
790
|
const originalCwd = process.cwd();
|
|
791
791
|
process.chdir(wsRoot);
|
|
792
792
|
try {
|
|
793
|
-
const { update } = await import(
|
|
793
|
+
const { update } = await import("./commands/update.js");
|
|
794
794
|
const result = await update({});
|
|
795
795
|
if (!result.success)
|
|
796
796
|
process.exit(1);
|
|
@@ -830,7 +830,7 @@ try {
|
|
|
830
830
|
const originalCwd = process.cwd();
|
|
831
831
|
process.chdir(ws.path);
|
|
832
832
|
try {
|
|
833
|
-
const { update } = await import(
|
|
833
|
+
const { update } = await import("./commands/update.js");
|
|
834
834
|
const result = await update({});
|
|
835
835
|
if (!result.success)
|
|
836
836
|
process.exit(1);
|
|
@@ -842,13 +842,13 @@ try {
|
|
|
842
842
|
break;
|
|
843
843
|
}
|
|
844
844
|
case 'warm': {
|
|
845
|
-
const { findWorkshopRoot } = await import(
|
|
845
|
+
const { findWorkshopRoot } = await import("./commands/workshops.js");
|
|
846
846
|
const wsRoot = await findWorkshopRoot();
|
|
847
847
|
if (wsRoot) {
|
|
848
848
|
const originalCwd = process.cwd();
|
|
849
849
|
process.chdir(wsRoot);
|
|
850
850
|
try {
|
|
851
|
-
const { warm } = await import(
|
|
851
|
+
const { warm } = await import("./commands/warm.js");
|
|
852
852
|
const result = await warm({});
|
|
853
853
|
if (!result.success)
|
|
854
854
|
process.exit(1);
|
|
@@ -888,7 +888,7 @@ try {
|
|
|
888
888
|
const originalCwd = process.cwd();
|
|
889
889
|
process.chdir(ws.path);
|
|
890
890
|
try {
|
|
891
|
-
const { warm } = await import(
|
|
891
|
+
const { warm } = await import("./commands/warm.js");
|
|
892
892
|
const result = await warm({});
|
|
893
893
|
if (!result.success)
|
|
894
894
|
process.exit(1);
|
|
@@ -900,21 +900,21 @@ try {
|
|
|
900
900
|
break;
|
|
901
901
|
}
|
|
902
902
|
case 'config': {
|
|
903
|
-
const { config } = await import(
|
|
903
|
+
const { config } = await import("./commands/workshops.js");
|
|
904
904
|
const result = await config({});
|
|
905
905
|
if (!result.success)
|
|
906
906
|
process.exit(1);
|
|
907
907
|
break;
|
|
908
908
|
}
|
|
909
909
|
case 'init': {
|
|
910
|
-
const { onboarding } = await import(
|
|
910
|
+
const { onboarding } = await import("./commands/workshops.js");
|
|
911
911
|
const result = await onboarding();
|
|
912
912
|
if (!result.success)
|
|
913
913
|
process.exit(1);
|
|
914
914
|
break;
|
|
915
915
|
}
|
|
916
916
|
case 'auth': {
|
|
917
|
-
const { status, login, logout } = await import(
|
|
917
|
+
const { status, login, logout } = await import("./commands/auth.js");
|
|
918
918
|
const { search: authSearch } = await import('@inquirer/prompts');
|
|
919
919
|
const authChoices = [
|
|
920
920
|
{
|
|
@@ -977,4 +977,3 @@ catch (error) {
|
|
|
977
977
|
console.error(chalk.red('❌ Error:'), error);
|
|
978
978
|
process.exit(1);
|
|
979
979
|
}
|
|
980
|
-
//# sourceMappingURL=cli.js.map
|
|
@@ -1182,7 +1182,7 @@ function isValidLoginInfo(authInfo) {
|
|
|
1182
1182
|
}
|
|
1183
1183
|
async function runSiteLoginOnboarding() {
|
|
1184
1184
|
const { search } = await import('@inquirer/prompts');
|
|
1185
|
-
const { login } = await import(
|
|
1185
|
+
const { login } = await import("./auth.js");
|
|
1186
1186
|
while (true) {
|
|
1187
1187
|
const siteStatuses = await Promise.all(EPIC_SITES.map(async (site) => {
|
|
1188
1188
|
const authInfo = await getAuthInfo({ productHost: site.host });
|
|
@@ -1703,4 +1703,3 @@ function runCommandInteractive(command, args, options) {
|
|
|
1703
1703
|
});
|
|
1704
1704
|
});
|
|
1705
1705
|
}
|
|
1706
|
-
//# sourceMappingURL=workshops.js.map
|
package/package.json
CHANGED
|
@@ -1,66 +1,55 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "epicshop",
|
|
3
|
-
"version": "6.47.
|
|
3
|
+
"version": "6.47.7",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
7
|
"type": "module",
|
|
8
|
-
"bin":
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"tshy": {
|
|
12
|
-
"project": "./tsconfig.build.json",
|
|
13
|
-
"dialects": [
|
|
14
|
-
"esm"
|
|
15
|
-
],
|
|
8
|
+
"bin": "./cli.js",
|
|
9
|
+
"zshy": {
|
|
10
|
+
"cjs": false,
|
|
16
11
|
"exports": {
|
|
17
12
|
"./package.json": "./package.json",
|
|
18
|
-
"./warm": "./src/commands/warm.
|
|
19
|
-
"./start": "./src/commands/start.
|
|
20
|
-
"./update": "./src/commands/update.
|
|
21
|
-
"./workshops": "./src/commands/workshops.
|
|
22
|
-
}
|
|
13
|
+
"./warm": "./src/commands/warm.ts",
|
|
14
|
+
"./start": "./src/commands/start.ts",
|
|
15
|
+
"./update": "./src/commands/update.ts",
|
|
16
|
+
"./workshops": "./src/commands/workshops.ts"
|
|
17
|
+
},
|
|
18
|
+
"bin": "./src/cli.ts"
|
|
23
19
|
},
|
|
24
20
|
"exports": {
|
|
25
21
|
"./package.json": "./package.json",
|
|
26
22
|
"./warm": {
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
"default": "./dist/esm/commands/warm.js"
|
|
30
|
-
}
|
|
23
|
+
"types": "./dist/commands/warm.d.ts",
|
|
24
|
+
"import": "./dist/commands/warm.js"
|
|
31
25
|
},
|
|
32
26
|
"./start": {
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
"default": "./dist/esm/commands/start.js"
|
|
36
|
-
}
|
|
27
|
+
"types": "./dist/commands/start.d.ts",
|
|
28
|
+
"import": "./dist/commands/start.js"
|
|
37
29
|
},
|
|
38
30
|
"./update": {
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
"default": "./dist/esm/commands/update.js"
|
|
42
|
-
}
|
|
31
|
+
"types": "./dist/commands/update.d.ts",
|
|
32
|
+
"import": "./dist/commands/update.js"
|
|
43
33
|
},
|
|
44
34
|
"./workshops": {
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
"default": "./dist/esm/commands/workshops.js"
|
|
48
|
-
}
|
|
35
|
+
"types": "./dist/commands/workshops.d.ts",
|
|
36
|
+
"import": "./dist/commands/workshops.js"
|
|
49
37
|
}
|
|
50
38
|
},
|
|
51
39
|
"files": [
|
|
52
|
-
"dist"
|
|
40
|
+
"dist",
|
|
41
|
+
"cli.js"
|
|
53
42
|
],
|
|
54
43
|
"scripts": {
|
|
55
44
|
"test": "vitest run",
|
|
56
45
|
"test:watch": "vitest",
|
|
57
46
|
"typecheck": "tsc --noEmit",
|
|
58
47
|
"lint": "eslint --cache --cache-location ./node_modules/.cache/eslint .",
|
|
59
|
-
"build": "
|
|
48
|
+
"build": "zshy",
|
|
60
49
|
"build:watch": "nx watch --projects=epicshop -- nx run \\$NX_PROJECT_NAME:build"
|
|
61
50
|
},
|
|
62
51
|
"dependencies": {
|
|
63
|
-
"@epic-web/workshop-utils": "6.47.
|
|
52
|
+
"@epic-web/workshop-utils": "6.47.7",
|
|
64
53
|
"@inquirer/prompts": "^7.5.1",
|
|
65
54
|
"chalk": "^5.6.2",
|
|
66
55
|
"close-with-grace": "^2.3.0",
|
|
@@ -75,7 +64,7 @@
|
|
|
75
64
|
"@epic-web/config": "^1.21.3",
|
|
76
65
|
"@types/node": "^24.10.0",
|
|
77
66
|
"@types/yargs": "^17.0.34",
|
|
78
|
-
"
|
|
67
|
+
"zshy": "^0.3.0",
|
|
79
68
|
"vitest": "^4.0.8"
|
|
80
69
|
},
|
|
81
70
|
"repository": {
|
package/dist/esm/cli.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,mCAAmC,CAAA"}
|