Skip to content

Commit

Permalink
fix: re-export presets/utils
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey committed Jun 2, 2023
1 parent 7703e52 commit c7e79a4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/violet-countries-sneeze.md
@@ -0,0 +1,5 @@
---
"@svbstrate/core": patch
---

Re-export `presets` and `utils` for external library consumption
9 changes: 5 additions & 4 deletions packages/core/scripts/build.js
@@ -1,21 +1,22 @@
const path = require("path");

const options = {
entryPoints: ["lib/index.ts", "lib/presets.ts", "lib/utils.ts"],
sourcemap: true,
logLevel: "info",
bundle: true,
minify: true,
outdir: path.join(__dirname, "../dist"),
};

require("esbuild").buildSync({
entryPoints: ["lib/index.ts"],
format: "cjs",
outfile: path.join(__dirname, "../dist/index.cjs.js"),
entryNames: "[dir]/[name].cjs",
...options,
});

require("esbuild").buildSync({
entryPoints: ["lib/index.ts"],
format: "esm",
outfile: path.join(__dirname, "../dist/index.esm.js"),
entryNames: "[dir]/[name].esm",
...options,
});

0 comments on commit c7e79a4

Please sign in to comment.