From 6b00b562ac7b1af6ebdb1ab48a0530d1335145c4 Mon Sep 17 00:00:00 2001 From: Jacob Gillespie Date: Sun, 25 Sep 2022 13:54:21 +0100 Subject: [PATCH] Switch to ESM-only package --- package.json | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index c393a61..e439f75 100644 --- a/package.json +++ b/package.json @@ -1,21 +1,13 @@ { "name": "kysely-planetscale", "version": "0.2.1", + "type": "module", "description": "Kysely dialect for PlanetScale Serverless", "repository": "https://github.com/depot/kysely-planetscale.git", "homepage": "https://github.com/depot/kysely-planetscale", "author": "Jacob Gillespie ", "license": "MIT", - "main": "./dist/index.js", - "module": "./dist/index.mjs", - "exports": { - ".": { - "import": "./dist/index.mjs", - "require": "./dist/index.js", - "types": "./dist/index.d.ts" - }, - "./package.json": "./package.json" - }, + "main": "./dist/index.mjs", "types": "./dist/index.d.ts", "files": [ "dist" @@ -28,7 +20,7 @@ "serverless" ], "scripts": { - "build": "tsup src/index.ts --format cjs,esm --dts --clean", + "build": "tsup src/index.ts --format esm --dts --clean", "clean": "rm -rf dist", "fmt": "prettier --write .", "fmt:check": "prettier --check .",