next-issue 14.4.7 → 14.4.9
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.mjs +1 -1
- package/dist/shared/args.mjs +6 -3
- package/dist/worker/serve.mjs +1 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -60,7 +60,7 @@ async function main() {
|
|
|
60
60
|
}
|
|
61
61
|
function run(root, args, argv) {
|
|
62
62
|
process.stderr.on('error', () => { });
|
|
63
|
-
return startInWorker(root, args, argv.slice(1)
|
|
63
|
+
return startInWorker(root, args, argv.slice(1));
|
|
64
64
|
}
|
|
65
65
|
const STOPPED = {
|
|
66
66
|
none: () => 'next-issue: no worker is running\n',
|
package/dist/shared/args.mjs
CHANGED
|
@@ -51,12 +51,15 @@ export function parseArgs(argv) {
|
|
|
51
51
|
if (args.command !== undefined && args.command !== 'update' && args.scope !== undefined) {
|
|
52
52
|
throw new Error(`${args.command} does not take --scope: it belongs to update`);
|
|
53
53
|
}
|
|
54
|
-
if (args.command === 'serve' && flag !== undefined) {
|
|
55
|
-
throw new Error(`serve does not take ${flag}`);
|
|
56
|
-
}
|
|
57
54
|
if ((args.command === 'watch' || args.command === 'hunt') && args.on === undefined) {
|
|
58
55
|
throw new Error(`${args.command} takes on or off`);
|
|
59
56
|
}
|
|
57
|
+
if (args.command !== undefined && args.command !== 'init' && args.force) {
|
|
58
|
+
throw new Error(`${args.command} does not take --force: it belongs to init`);
|
|
59
|
+
}
|
|
60
|
+
if (args.command === 'serve' && flag !== undefined) {
|
|
61
|
+
throw new Error(`serve does not take ${flag}`);
|
|
62
|
+
}
|
|
60
63
|
return args;
|
|
61
64
|
}
|
|
62
65
|
function onOffValue(name, value) {
|
package/dist/worker/serve.mjs
CHANGED
|
@@ -144,7 +144,7 @@ export async function startWorker(options) {
|
|
|
144
144
|
update({ ...run.progress, status: 'failed', error: message(error) });
|
|
145
145
|
sendAll(sockets, { type: 'end', root, code: 1, error: message(error) });
|
|
146
146
|
})
|
|
147
|
-
.finally(
|
|
147
|
+
.finally(() => void close());
|
|
148
148
|
};
|
|
149
149
|
const stop = (socket, refuse, root, after, id) => {
|
|
150
150
|
const point = stopPoint(after);
|