mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-02 07:07:46 +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" [] {
|
def "nu-complete npm" [] {
|
||||||
^npm -l
|
^npm -l
|
||||||
|lines
|
|lines
|
||||||
|
@ -11,6 +8,10 @@ def "nu-complete npm" [] {
|
||||||
|str replace '"' ''
|
|str replace '"' ''
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export extern "npm" [
|
||||||
|
command?: string@"nu-complete npm"
|
||||||
|
]
|
||||||
|
|
||||||
def "nu-complete npm run" [] {
|
def "nu-complete npm run" [] {
|
||||||
open ./package.json
|
open ./package.json
|
||||||
|get scripts
|
|get scripts
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue