Skip to content

Commit a107f73

Browse files
committed
Remove NPM and npx
1 parent faea703 commit a107f73

File tree

4 files changed

+4
-28
lines changed

4 files changed

+4
-28
lines changed

.pre-commit-config.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ repos:
1414
language: node
1515
name: schema-bundle
1616
pass_filenames: false
17+
additional_dependencies:
18+
- '@sourcemeta/jsonschema'
1719
- entry: ./scripts/test.sh
1820
id: helm-unittest
1921
language: script

package-lock.json

-21
This file was deleted.

package.json

-5
This file was deleted.

scripts/bundle_schemas.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ process_json_schema() {
1010
temp_dir="$(mktemp -d)"
1111
local bundled_path="${temp_dir}"/resolved.json
1212
echo "Bundling schema from ${base_values_schema_path} to ${bundled_path}"
13-
npx --yes @sourcemeta/jsonschema bundle --resolve schemas/ "${base_values_schema_path}" --without-id > "${bundled_path}"
13+
jsonschema bundle --resolve schemas/ "${base_values_schema_path}" --without-id > "${bundled_path}"
1414
echo "Normalizing schema from ${bundled_path} to ${values_schema_path}"
15-
npx --yes @sourcemeta/jsonschema canonicalize "${bundled_path}" > "${values_schema_path}"
15+
jsonschema canonicalize "${bundled_path}" > "${values_schema_path}"
1616
}
1717

1818
for chart in charts/*/

0 commit comments

Comments
 (0)