From 4cba0d7f67a16ccb287ac1eec4415e6d2d0e1c5c Mon Sep 17 00:00:00 2001 From: shevernitskiy Date: Fri, 12 Jan 2024 08:45:40 +0300 Subject: [PATCH] bundle to es2023 --- scripts/build-npm.ts | 1 + tsconfig.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/build-npm.ts b/scripts/build-npm.ts index f13dbb8..7602458 100644 --- a/scripts/build-npm.ts +++ b/scripts/build-npm.ts @@ -39,6 +39,7 @@ const pakcage = { files: ["./src", "./mod.js", "./mod.d.ts"], main: "./mod.js", types: "./mod.d.ts", + type: "module", keywords: [ "amo", "amoCRM", diff --git a/tsconfig.json b/tsconfig.json index 3e220bf..41d0c83 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,8 @@ { "compilerOptions": { "outDir": "./npm", - "declaration": true - // "target": "ESNext" // modules or not? + "declaration": true, + "target": "ES2023" }, "include": ["./src/**/*", "./mod.ts"], "deno2node": {}