From be645202d6cbb4a785d78bd880fee22597661b7e Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Tue, 18 Apr 2023 08:40:43 -0700 Subject: [PATCH] breaking: remove legacy package.json files (#8515) --- CHANGELOG.md | 3 ++- rollup.config.mjs | 13 ------------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 381d02de723c..136f106121cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,8 @@ ## Unreleased (4.0) * **breaking** Minimum supported Node version is now Node 14 -* **breaking** Minimum supported TypeScript version is now 5 (it will likely work with lower versions, but we make no guarantess about that) +* **breaking** Minimum supported webpack version is now webpack 5 +* **breaking** Minimum supported TypeScript version is now TypeScript 5 (it will likely work with lower versions, but we make no guarantees about that) * **breaking** Stricter types for `createEventDispatcher` (see PR for migration instructions) ([#7224](https://github.com/sveltejs/svelte/pull/7224)) * **breaking** Stricter types for `Action` and `ActionReturn` (see PR for migration instructions) ([#7224](https://github.com/sveltejs/svelte/pull/7224)) * **breaking** Stricter types for `onMount` - now throws a type error when returning a function asynchronously to catch potential mistakes around callback functions (see PR for migration instructions) ([#8136](https://github.com/sveltejs/svelte/pull/8136)) diff --git a/rollup.config.mjs b/rollup.config.mjs index d6a22733a401..e745d3afaa67 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -89,19 +89,6 @@ export default [ } } - fs.writeFileSync( - `${dir}/package.json`, - JSON.stringify( - { - main: './index.js', - module: './index.mjs', - types: './index.d.ts', - }, - null, - ' ' - ) - ); - fs.writeFileSync( `${dir}/index.d.ts`, `export * from '../types/runtime/${dir}/index.js';`