mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 14:47:47 +00:00
fix(npm-completions): move extern down (#475)
Looks like nu has gotten stricter about the order in which things must be declared.
This commit is contained in:
parent
afba27f304
commit
09647b77ee
1 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,3 @@
|
|||
export extern "npm" [
|
||||
command?: string@"nu-complete npm"
|
||||
]
|
||||
def "nu-complete npm" [] {
|
||||
^npm -l
|
||||
|lines
|
||||
|
@ -11,6 +8,10 @@ def "nu-complete npm" [] {
|
|||
|str replace '"' ''
|
||||
}
|
||||
|
||||
export extern "npm" [
|
||||
command?: string@"nu-complete npm"
|
||||
]
|
||||
|
||||
def "nu-complete npm run" [] {
|
||||
open ./package.json
|
||||
|get scripts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue