-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…2285) **Package.json** https://github.com/zed-industries/zed/assets/62463826/f8ca12a5-1292-4465-83e1-3c2ab65f5833 **Composer.json** https://github.com/zed-industries/zed/assets/62463826/61f9e74d-c6ed-4329-855b-d0161e0a117b Release Notes: - Added runnable for `package.json` and `composer.json` scripts ([#12215](#12215)).
- Loading branch information
1 parent
a1e5b12
commit 5665cad
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
; Add support `package.json` and `composer.json` script runnable | ||
|
||
( | ||
(document | ||
(object | ||
(pair | ||
key: (string | ||
(string_content) @_name | ||
(#eq? @_name "scripts") | ||
) | ||
value: (object | ||
(pair | ||
key: (string (string_content) @run @script) | ||
) | ||
) | ||
) | ||
) | ||
) | ||
(#set! tag package-script) | ||
(#set! tag composer-script) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ | ||
{ | ||
"label": "package script $ZED_CUSTOM_script", | ||
"command": "npm run", | ||
"args": ["$ZED_CUSTOM_script"], | ||
"tags": ["package-script"] | ||
}, | ||
{ | ||
"label": "composer script $ZED_CUSTOM_script", | ||
"command": "composer", | ||
"args": ["$ZED_CUSTOM_script"], | ||
"tags": ["composer-script"] | ||
} | ||
] |