generated from front-of-house/monorepo
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7703e52
commit c7e79a4
Showing
2 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@svbstrate/core": patch | ||
--- | ||
|
||
Re-export `presets` and `utils` for external library consumption |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, | ||
}); |