From 77380eabe520a22d5b4d74a8b38cf0633f5ca422 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Wed, 11 Dec 2024 17:31:52 +0100 Subject: [PATCH] fixup! review feedback --- .gitignore | 2 -- packages/unenv-preset/build.config.ts | 4 ++-- packages/unenv-preset/package.json | 8 ++++---- packages/unenv-preset/src/index.ts | 1 - packages/unenv-preset/turbo.json | 11 +++-------- 5 files changed, 9 insertions(+), 17 deletions(-) diff --git a/.gitignore b/.gitignore index 53671c63ce64..2d595642f592 100644 --- a/.gitignore +++ b/.gitignore @@ -198,8 +198,6 @@ packages/chrome-devtools-patches/depot packages/chrome-devtools-patches/devtools-frontend packages/miniflare/dist-types/ -packages/unenv-preset/runtime - fixtures/remix-pages-app/public/build fixtures/remix-pages-app/functions/\[\[path\]\].js diff --git a/packages/unenv-preset/build.config.ts b/packages/unenv-preset/build.config.ts index 46935c8f5502..f73862c567ff 100644 --- a/packages/unenv-preset/build.config.ts +++ b/packages/unenv-preset/build.config.ts @@ -7,10 +7,10 @@ export default defineBuildConfig({ }, entries: [ "src/index", - { input: "src/runtime/", outDir: "runtime", format: "esm" }, + { input: "src/runtime/", outDir: "dist/runtime", format: "esm" }, { input: "src/runtime/", - outDir: "runtime", + outDir: "dist/runtime", format: "cjs", ext: "cjs", declaration: false, diff --git a/packages/unenv-preset/package.json b/packages/unenv-preset/package.json index 5161d3d6d095..a9380130e1d0 100644 --- a/packages/unenv-preset/package.json +++ b/packages/unenv-preset/package.json @@ -28,9 +28,9 @@ "import": "./dist/index.mjs" }, "./runtime/*": { - "types": "./runtime/*.d.ts", - "require": "./runtime/*.cjs", - "import": "./runtime/*.mjs" + "types": "./dist/runtime/*.d.ts", + "require": "./dist/runtime/*.cjs", + "import": "./dist/runtime/*.mjs" } }, "main": "./dist/index.cjs", @@ -51,7 +51,7 @@ "wrangler": "3.95.0" }, "peerDependencies": { - "unenv": "npm:unenv-nightly@2.0.0-20241204-140205-a5d5190", + "unenv": "*", "workerd": "^1.20241205.0" }, "peerDependenciesMeta": { diff --git a/packages/unenv-preset/src/index.ts b/packages/unenv-preset/src/index.ts index 72db9d33a607..594f8340dfed 100644 --- a/packages/unenv-preset/src/index.ts +++ b/packages/unenv-preset/src/index.ts @@ -1,2 +1 @@ export { cloudflare } from "./preset"; -export { env, nodeless } from "unenv"; diff --git a/packages/unenv-preset/turbo.json b/packages/unenv-preset/turbo.json index eb3793fc8b2d..113eff071ee7 100644 --- a/packages/unenv-preset/turbo.json +++ b/packages/unenv-preset/turbo.json @@ -1,14 +1,9 @@ { "$schema": "http://turbo.build/schema.json", - "extends": [ - "//" - ], + "extends": ["//"], "tasks": { "build": { - "outputs": [ - "dist/**", - "runtime/**" - ] + "outputs": ["dist/**", "runtime/**"] } } -} \ No newline at end of file +}