Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions crates/aqua-registry/aqua-registry/pkgs/npm/cli/registry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/aquaproj/aqua/main/json-schema/registry.json
packages:
- type: http
repo_owner: npm
repo_name: cli
description: the package manager for JavaScript
version_source: github_tag
url: https://registry.npmjs.org/npm/-/npm-{{trimV .Version}}.tgz
format: tar.gz
files:
- name: npm
src: package/bin/npm
- name: npx
src: package/bin/npx
overrides:
- goos: windows
files:
- name: npm
src: package/bin/npm.cmd
- name: npx
src: package/bin/npx.cmd
1 change: 1 addition & 0 deletions crates/aqua-registry/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ fn generate_baked_registry(out_dir: &str) {
let dest_path = Path::new(out_dir).join("aqua_standard_registry.rs");

let registry_dir = find_registry_dir();
println!("cargo:rerun-if-changed={}", registry_dir.display());

let registries =
collect_aqua_registries(&registry_dir).expect("Failed to collect aqua registry files");
Expand Down
3 changes: 2 additions & 1 deletion registry/npm.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
backends = ["npm:npm"]
backends = ["aqua:npm/cli", "npm:npm"]
description = "the package manager for JavaScript"
depends = ["node"]
idiomatic_files = ["package.json"]
overrides = ["node"]
test = { cmd = "npm --version", expected = "{{version}}" }
Loading