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": {}