diff --git a/.changeset/swift-dingos-glow.md b/.changeset/swift-dingos-glow.md new file mode 100644 index 000000000000..7131e89676f1 --- /dev/null +++ b/.changeset/swift-dingos-glow.md @@ -0,0 +1,10 @@ +--- +'@sveltejs/adapter-begin': patch +'@sveltejs/adapter-cloudflare-workers': patch +'@sveltejs/adapter-netlify': patch +'@sveltejs/adapter-node': patch +'@sveltejs/adapter-static': patch +'@sveltejs/adapter-vercel': patch +--- + +[chore] export package.json from adapters diff --git a/packages/adapter-begin/package.json b/packages/adapter-begin/package.json index 6f8707e9b0cd..86ab7d584674 100644 --- a/packages/adapter-begin/package.json +++ b/packages/adapter-begin/package.json @@ -21,7 +21,10 @@ "sirv": "^1.0.12" }, "exports": { - "import": "./index.js", - "require": "./index.cjs" + ".": { + "import": "./index.js", + "require": "./index.cjs" + }, + "./package.json": "./package.json" } } diff --git a/packages/adapter-cloudflare-workers/package.json b/packages/adapter-cloudflare-workers/package.json index 65d04dd5d8d8..6399a733e66e 100644 --- a/packages/adapter-cloudflare-workers/package.json +++ b/packages/adapter-cloudflare-workers/package.json @@ -3,7 +3,10 @@ "version": "1.0.0-next.20", "type": "module", "exports": { - "import": "./index.js" + ".": { + "import": "./index.js" + }, + "./package.json": "./package.json" }, "main": "index.js", "types": "index.d.ts", diff --git a/packages/adapter-netlify/package.json b/packages/adapter-netlify/package.json index 20b6c043c19d..9f10695fc2c4 100644 --- a/packages/adapter-netlify/package.json +++ b/packages/adapter-netlify/package.json @@ -3,7 +3,10 @@ "version": "1.0.0-next.29", "type": "module", "exports": { - "import": "./index.js" + ".": { + "import": "./index.js" + }, + "./package.json": "./package.json" }, "main": "index.js", "types": "index.d.ts", diff --git a/packages/adapter-node/package.json b/packages/adapter-node/package.json index 619230f3682f..8f43da6f043b 100644 --- a/packages/adapter-node/package.json +++ b/packages/adapter-node/package.json @@ -3,7 +3,10 @@ "version": "1.0.0-next.44", "type": "module", "exports": { - "import": "./index.js" + ".": { + "import": "./index.js" + }, + "./package.json": "./package.json" }, "main": "index.js", "types": "index.d.ts", diff --git a/packages/adapter-static/package.json b/packages/adapter-static/package.json index 1fb93133670f..0e553fedca85 100644 --- a/packages/adapter-static/package.json +++ b/packages/adapter-static/package.json @@ -4,7 +4,10 @@ "type": "module", "main": "index.js", "exports": { - "import": "./index.js" + ".": { + "import": "./index.js" + }, + "./package.json": "./package.json" }, "types": "index.d.ts", "scripts": { diff --git a/packages/adapter-vercel/package.json b/packages/adapter-vercel/package.json index 943ea1af8a24..cff2e24297c6 100644 --- a/packages/adapter-vercel/package.json +++ b/packages/adapter-vercel/package.json @@ -3,7 +3,10 @@ "version": "1.0.0-next.27", "type": "module", "exports": { - "import": "./index.js" + ".": { + "import": "./index.js" + }, + "./package.json": "./package.json" }, "main": "index.js", "types": "index.d.ts",