From 554fb6b013337c1c822cb4b01f6b13aa5baef98d Mon Sep 17 00:00:00 2001 From: Ajitomi Daisuke Date: Sun, 13 Aug 2023 16:45:11 +0900 Subject: [PATCH] Add sideEffects: false to dnt.ts. --- core/dnt.ts | 4 +++- dnt.ts | 4 +++- x/chacha20poly1305/dnt.ts | 4 +++- x/dhkem-secp256k1/dnt.ts | 4 +++- x/dhkem-x25519/dnt.ts | 4 +++- x/dhkem-x448/dnt.ts | 4 +++- 6 files changed, 18 insertions(+), 6 deletions(-) diff --git a/core/dnt.ts b/core/dnt.ts index a4686ce6a..fbc60390c 100644 --- a/core/dnt.ts +++ b/core/dnt.ts @@ -27,8 +27,10 @@ await build({ }, homepage: "https://github.com/dajiaji/hpke-js#readme", license: "MIT", + main: "./esm/core/mod.js", main: "./script/core/mod.js", - types: "./script/core/mod.d.ts", + types: "./esm/core/mod.d.ts", + sideEffects: false, exports: { ".": { "import": "./esm/core/mod.js", diff --git a/dnt.ts b/dnt.ts index e0e55003f..0e5a58f00 100644 --- a/dnt.ts +++ b/dnt.ts @@ -32,8 +32,10 @@ await build({ }, homepage: "https://github.com/dajiaji/hpke-js#readme", license: "MIT", + module: "./esm/mod.js", main: "./script/mod.js", - types: "./script/mod.d.ts", + types: "./esm/mod.d.ts", + sideEffects: false, exports: { ".": { "import": "./esm/mod.js", diff --git a/x/chacha20poly1305/dnt.ts b/x/chacha20poly1305/dnt.ts index c1a816dff..544625460 100644 --- a/x/chacha20poly1305/dnt.ts +++ b/x/chacha20poly1305/dnt.ts @@ -27,8 +27,10 @@ await build({ }, homepage: "https://github.com/dajiaji/hpke-js#readme", license: "MIT", + module: "./esm/x/chacha20poly1305/mod.js", main: "./script/x/chacha20poly1305/mod.js", - types: "./script/x/chacha20poly1305/mod.d.ts", + types: "./esm/x/chacha20poly1305/mod.d.ts", + sideEffects: false, exports: { ".": { "import": "./esm/x/chacha20poly1305/mod.js", diff --git a/x/dhkem-secp256k1/dnt.ts b/x/dhkem-secp256k1/dnt.ts index c797d878e..c9bf72835 100644 --- a/x/dhkem-secp256k1/dnt.ts +++ b/x/dhkem-secp256k1/dnt.ts @@ -27,8 +27,10 @@ await build({ }, homepage: "https://github.com/dajiaji/hpke-js#readme", license: "MIT", + module: "./esm/x/dhkem-secp256k1/mod.js", main: "./script/x/dhkem-secp256k1/mod.js", - types: "./script/x/dhkem-secp256k1/mod.d.ts", + types: "./esm/x/dhkem-secp256k1/mod.d.ts", + sideEffects: false, exports: { ".": { "import": "./esm/x/dhkem-secp256k1/mod.js", diff --git a/x/dhkem-x25519/dnt.ts b/x/dhkem-x25519/dnt.ts index 5cf874e3d..de7abaf11 100644 --- a/x/dhkem-x25519/dnt.ts +++ b/x/dhkem-x25519/dnt.ts @@ -27,8 +27,10 @@ await build({ }, homepage: "https://github.com/dajiaji/hpke-js#readme", license: "MIT", + module: "./esm/x/dhkem-x25519/mod.js", main: "./script/x/dhkem-x25519/mod.js", - types: "./script/x/dhkem-x25519/mod.d.ts", + types: "./esm/x/dhkem-x25519/mod.d.ts", + sideEffects: false, exports: { ".": { "import": "./esm/x/dhkem-x25519/mod.js", diff --git a/x/dhkem-x448/dnt.ts b/x/dhkem-x448/dnt.ts index 4d95db2b7..ae7b14da5 100644 --- a/x/dhkem-x448/dnt.ts +++ b/x/dhkem-x448/dnt.ts @@ -27,8 +27,10 @@ await build({ }, homepage: "https://github.com/dajiaji/hpke-js#readme", license: "MIT", + module: "./esm/x/dhkem-x448/mod.js", main: "./script/x/dhkem-x448/mod.js", - types: "./script/x/dhkem-x448/mod.d.ts", + types: "./esm/x/dhkem-x448/mod.d.ts", + sideEffects: false, exports: { ".": { "import": "./esm/x/dhkem-x448/mod.js",