From 64b7e2a24fa0a15b209c75539bc48370d2a82c18 Mon Sep 17 00:00:00 2001 From: Luka Leer Date: Mon, 4 Nov 2024 11:42:21 +0100 Subject: [PATCH] Add support for Deno shortcuts and wildcards (#508) --- docs/cli/shortcuts.md | 3 +- .../expand-npm-shortcut.spec.ts | 40 --- src/command-parser/expand-npm-shortcut.ts | 22 -- .../expand-npm-wildcard.spec.ts | 152 --------- src/command-parser/expand-npm-wildcard.ts | 75 ----- src/command-parser/expand-shortcut.spec.ts | 41 +++ src/command-parser/expand-shortcut.ts | 39 +++ src/command-parser/expand-wildcard.spec.ts | 309 ++++++++++++++++++ src/command-parser/expand-wildcard.ts | 110 +++++++ src/concurrently.ts | 8 +- 10 files changed, 505 insertions(+), 294 deletions(-) delete mode 100644 src/command-parser/expand-npm-shortcut.spec.ts delete mode 100644 src/command-parser/expand-npm-shortcut.ts delete mode 100644 src/command-parser/expand-npm-wildcard.spec.ts delete mode 100644 src/command-parser/expand-npm-wildcard.ts create mode 100644 src/command-parser/expand-shortcut.spec.ts create mode 100644 src/command-parser/expand-shortcut.ts create mode 100644 src/command-parser/expand-wildcard.spec.ts create mode 100644 src/command-parser/expand-wildcard.ts diff --git a/docs/cli/shortcuts.md b/docs/cli/shortcuts.md index 36bbf19a..d0a79d8a 100644 --- a/docs/cli/shortcuts.md +++ b/docs/cli/shortcuts.md @@ -1,6 +1,6 @@ # Command Shortcuts -Package managers that execute scripts from a `package.json` file can be shortened when in concurrently.
+Package managers that execute scripts from a `package.json` or `deno.json` file can be shortened when in concurrently.
The following are supported: | Syntax | Expands to | @@ -10,6 +10,7 @@ The following are supported: | `yarn: