From 9e1aa64b889cd4812565edf82ce1c9684b467a65 Mon Sep 17 00:00:00 2001 From: Caleb Evans Date: Sun, 2 Jun 2024 19:45:53 -0700 Subject: [PATCH] Do not shadow parent jcanvas-website's jQuery --- .npmrc | 3 +++ package.json | 2 +- pnpm-lock.yaml | 12 ++++-------- 3 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..695732c --- /dev/null +++ b/.npmrc @@ -0,0 +1,3 @@ +# Prevent a locally installed copy of jQuery from shadowing the version of +# jQuery installed by the parent jcanvas-website repository +auto-install-peers=false diff --git a/package.json b/package.json index 0fe85be..c8c33bf 100644 --- a/package.json +++ b/package.json @@ -35,10 +35,10 @@ "@types/jquery": "^3.5.30", "@typescript-eslint/eslint-plugin": "^7.10.0", "@typescript-eslint/parser": "^7.10.0", + "esbuild": "^0.21.4", "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", "glob": "^10.3.10", - "jquery": "^3.7.1", "prettier": "^3.2.5", "qunit": "^2.20.0", "rollup": "^4.17.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f256205..689afde 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,7 +1,7 @@ lockfileVersion: '6.0' settings: - autoInstallPeers: true + autoInstallPeers: false excludeLinksFromLockfile: false overrides: @@ -20,6 +20,9 @@ devDependencies: '@typescript-eslint/parser': specifier: ^7.10.0 version: 7.10.0(eslint@8.56.0)(typescript@5.4.5) + esbuild: + specifier: ^0.21.4 + version: 0.21.4 eslint: specifier: ^8.56.0 version: 8.56.0 @@ -29,9 +32,6 @@ devDependencies: glob: specifier: ^10.3.10 version: 10.3.10 - jquery: - specifier: ^3.7.1 - version: 3.7.1 prettier: specifier: ^3.2.5 version: 3.2.5 @@ -1237,10 +1237,6 @@ packages: '@pkgjs/parseargs': 0.11.0 dev: true - /jquery@3.7.1: - resolution: {integrity: sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==} - dev: true - /js-yaml@4.1.0: resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} hasBin: true