Skip to content

Commit

Permalink
Add cli/deploy to the exports (#36)
Browse files Browse the repository at this point in the history
Problem
=======

Include the cli/deploy in exports for adding it to other initialization
scripts.
  • Loading branch information
wilwade authored Jul 3, 2023
1 parent 9dbd8e0 commit f77612b
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions scripts/package.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand All @@ -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);
Expand Down

0 comments on commit f77612b

Please sign in to comment.