diff --git a/scripts/package.cjs b/scripts/package.cjs index c76bb42..d23e133 100644 --- a/scripts/package.cjs +++ b/scripts/package.cjs @@ -33,7 +33,7 @@ rootPackage["exports"] = { }; // Submodules -["parquet"].forEach((sub) => { +["parquet", "dsnp/index", "cli/deploy"].forEach((sub) => { rootPackage["exports"][`./${sub}`] = { types: `./${sub}.d.ts`, require: `./cjs/${sub}.js`, @@ -42,15 +42,6 @@ rootPackage["exports"] = { }; }); -["dsnp"].forEach((sub) => { - rootPackage["exports"][`./${sub}`] = { - types: `./${sub}/index.d.ts`, - require: `./cjs/${sub}/index.js`, - import: `./esm/${sub}/index.js`, - default: `./esm/${sub}/index.js`, - }; -}); - // Write it out fs.writeFileSync(`${path.join(__dirname, "../dist", "package.json")}`, JSON.stringify(rootPackage, null, 2), (err) => { if (err) throw new Error(err);