From bcbda96cc745bdc5d525e68108a0a31c3d9e0633 Mon Sep 17 00:00:00 2001 From: Emile Rolley Date: Mon, 22 Apr 2024 17:30:28 +0200 Subject: [PATCH] fix!: fix packaging to correctly support both esm and cjs --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 67f906e..9141147 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "@publicodes/tools", "version": "1.0.7", "description": "A set of utility functions to build tools around Publicodes models", + "type": "module", "scripts": { "build": "tsup", "watch": "tsup --watch", @@ -78,7 +79,9 @@ "allowJs": true, "sourceMap": true, "dts": true, - "clean": true + "clean": true, + "target": "es2020", + "skipNodeModulesBundle": true }, "publishConfig": { "access": "public"