From 12607afb92f6d674ca3ebf911117e5c1d9f1e982 Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Tue, 20 Aug 2024 10:08:29 -0400 Subject: [PATCH] Use strict .npmrc --- .npmrc | 8 ++++++++ pnpm-lock.yaml | 13 ++++--------- 2 files changed, 12 insertions(+), 9 deletions(-) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 000000000..0635d1244 --- /dev/null +++ b/.npmrc @@ -0,0 +1,8 @@ +# npm / pnpm settings here + +# as a library, we want to make sure we explicitly handle peers, +# and not rely on hidden behavior of package-managers. +auto-install-peers=false + +# we never want to use packages from the registry over what's in the workspace +prefer-workspaces-packages=true diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 17d1c3faf..aa12a6f9a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,7 +1,7 @@ lockfileVersion: '9.0' settings: - autoInstallPeers: true + autoInstallPeers: false excludeLinksFromLockfile: false importers: @@ -1810,11 +1810,6 @@ packages: ajv-formats@2.1.1: resolution: {integrity: sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==} - peerDependencies: - ajv: ^8.0.0 - peerDependenciesMeta: - ajv: - optional: true ajv-keywords@3.5.2: resolution: {integrity: sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==} @@ -9516,8 +9511,8 @@ snapshots: clean-stack: 2.2.0 indent-string: 4.0.0 - ajv-formats@2.1.1(ajv@8.17.1): - optionalDependencies: + ajv-formats@2.1.1: + dependencies: ajv: 8.17.1 ajv-keywords@3.5.2(ajv@6.12.6): @@ -15822,7 +15817,7 @@ snapshots: dependencies: '@types/json-schema': 7.0.15 ajv: 8.17.1 - ajv-formats: 2.1.1(ajv@8.17.1) + ajv-formats: 2.1.1 ajv-keywords: 5.1.0(ajv@8.17.1) semver@5.7.2: {}