epicshop 6.83.0 → 6.84.0
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/dist/cli.js +5 -1
- package/dist/commands/exercises.js +2 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import path from 'node:path';
|
|
2
3
|
import '@epic-web/workshop-utils/init-env';
|
|
3
4
|
import chalk from 'chalk';
|
|
4
5
|
import { matchSorter } from 'match-sorter';
|
|
@@ -1081,9 +1082,12 @@ const cli = yargs(args)
|
|
|
1081
1082
|
// "context" subcommand: export all workshop context
|
|
1082
1083
|
if (argv.exercise === 'context') {
|
|
1083
1084
|
const { exportContext } = await import("./commands/exercises.js");
|
|
1085
|
+
const outputPath = argv.output
|
|
1086
|
+
? path.resolve(originalCwd, argv.output)
|
|
1087
|
+
: undefined;
|
|
1084
1088
|
const result = await exportContext({
|
|
1085
1089
|
silent: argv.silent,
|
|
1086
|
-
output:
|
|
1090
|
+
output: outputPath,
|
|
1087
1091
|
});
|
|
1088
1092
|
if (!result.success)
|
|
1089
1093
|
process.exit(1);
|
|
@@ -73,7 +73,8 @@ export async function exportContext(options = {}) {
|
|
|
73
73
|
a.stepNumber === step.stepNumber);
|
|
74
74
|
if (problemApp && solutionApp) {
|
|
75
75
|
diffOutput =
|
|
76
|
-
await getDiffOutputWithRelativePaths(problemApp, solutionApp) ||
|
|
76
|
+
(await getDiffOutputWithRelativePaths(problemApp, solutionApp)) ||
|
|
77
|
+
null;
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
80
|
steps.push({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "epicshop",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.84.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"build:watch": "nx watch --projects=epicshop -- nx run \\$NX_PROJECT_NAME:build"
|
|
100
100
|
},
|
|
101
101
|
"dependencies": {
|
|
102
|
-
"@epic-web/workshop-utils": "6.
|
|
102
|
+
"@epic-web/workshop-utils": "6.84.0",
|
|
103
103
|
"@inquirer/prompts": "^8.2.0",
|
|
104
104
|
"@sentry/node": "^10.38.0",
|
|
105
105
|
"chalk": "^5.6.2",
|