From 37d664e26262f8e1026a31dcd4fcb251097dd90c Mon Sep 17 00:00:00 2001 From: Tony Sullivan Date: Mon, 31 Oct 2022 19:43:38 +0000 Subject: [PATCH] [@astrojs/image] web-streams-polyfill should be included as a prod dependency (#5260) * fix: web-streams-polyfill should be included as a prod dependency * chore: missed a lockfile change in the merge --- .changeset/tame-keys-kiss.md | 5 +++++ packages/integrations/image/package.json | 6 +++--- pnpm-lock.yaml | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .changeset/tame-keys-kiss.md diff --git a/.changeset/tame-keys-kiss.md b/.changeset/tame-keys-kiss.md new file mode 100644 index 000000000000..51ee6f3ef1b0 --- /dev/null +++ b/.changeset/tame-keys-kiss.md @@ -0,0 +1,5 @@ +--- +'@astrojs/image': patch +--- + +Fixes a bug where the `web-streams-polyfill` dependency would not be installed with the `--production` flag diff --git a/packages/integrations/image/package.json b/packages/integrations/image/package.json index d43da956b361..dcd2120abd5e 100644 --- a/packages/integrations/image/package.json +++ b/packages/integrations/image/package.json @@ -48,7 +48,8 @@ "kleur": "^4.1.5", "magic-string": "^0.25.9", "mime": "^3.0.0", - "slash": "^4.0.0" + "slash": "^4.0.0", + "web-streams-polyfill": "^3.2.1" }, "devDependencies": { "@types/http-cache-semantics": "^4.0.1", @@ -61,8 +62,7 @@ "mocha": "^9.2.2", "rollup-plugin-copy": "^3.4.0", "sharp": "^0.31.0", - "vite": "^3.0.0", - "web-streams-polyfill": "^3.2.1" + "vite": "^3.0.0" }, "peerDependencies": { "sharp": ">=0.31.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 033ff238a676..42ccf88dde9a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2586,6 +2586,7 @@ importers: magic-string: 0.25.9 mime: 3.0.0 slash: 4.0.0 + web-streams-polyfill: 3.2.1 devDependencies: '@types/http-cache-semantics': 4.0.1 '@types/mime': 2.0.3 @@ -2598,7 +2599,6 @@ importers: rollup-plugin-copy: 3.4.0 sharp: 0.31.1 vite: 3.2.2 - web-streams-polyfill: 3.2.1 packages/integrations/image/test/fixtures/background-color-image: specifiers: