1
Fork 0
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:
Hilmar Gústafsson 2023-05-02 13:42:33 +02:00 committed by GitHub
parent afba27f304
commit 09647b77ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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