From 4d1b07330bf869e20d6621f9efa16a0e41a59135 Mon Sep 17 00:00:00 2001 From: userquin Date: Thu, 21 Mar 2024 01:08:47 +0100 Subject: [PATCH] feat: move to ESM first --- .gitignore | 1 + package.json | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index d3ea3e8..13b3626 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ types *.log* *.conf* *.env* +.idea/ diff --git a/package.json b/package.json index fb6e866..88decfe 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "name": "pathe", + "type": "module", "version": "1.1.2", "description": "Universal filesystem path utils", "repository": "unjs/pathe", @@ -7,17 +8,16 @@ "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.cjs" }, "./utils": { - "types": "./dist/utils.d.ts", "import": "./dist/utils.mjs", "require": "./dist/utils.cjs" } }, "main": "./dist/index.cjs", + "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "files": [ "dist", @@ -46,4 +46,4 @@ "vitest": "^1.2.2" }, "packageManager": "pnpm@8.15.1" -} \ No newline at end of file +}