Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New utility modules for handling errors and checking types #178

Merged
merged 9 commits into from
Mar 6, 2024
Prev Previous commit
Next Next commit
build(utils): remove declarations when using output.dir option
re #177
cedoor committed Feb 29, 2024

Verified

This commit was signed with the committer’s verified signature.
macmv Neil Macneale V
commit 0f2ee83b4b671e0c1a57d1870da4bbaa4b5d3764
44 changes: 27 additions & 17 deletions packages/utils/rollup.config.ts
Original file line number Diff line number Diff line change
@@ -12,20 +12,30 @@ const banner = `/**
* @see [Github]{@link ${pkg.homepage}}
*/`

export default {
input: "src/index.ts",
output: [
{ file: pkg.exports["."].require, format: "cjs", banner },
{ file: pkg.exports["."].default, format: "es", banner },
{
dir: "./dist/lib.commonjs",
format: "cjs",
banner,
preserveModules: true,
entryFileNames: "[name].cjs"
},
{ dir: "./dist/lib.esm", format: "es", banner, preserveModules: true }
],
external: [],
plugins: [typescript({ tsconfig: "./build.tsconfig.json" }), cleanup({ comments: "jsdoc" })]
}
export default [
{
input: "src/index.ts",
output: [
{ file: pkg.exports["."].require, format: "cjs", banner },
{ file: pkg.exports["."].default, format: "es", banner }
],
plugins: [typescript({ tsconfig: "./build.tsconfig.json" }), cleanup({ comments: "jsdoc" })]
},
{
input: "src/index.ts",
output: [
{
dir: "./dist/lib.commonjs",
format: "cjs",
banner,
preserveModules: true,
entryFileNames: "[name].cjs"
},
{ dir: "./dist/lib.esm", format: "es", banner, preserveModules: true }
],
plugins: [
typescript({ tsconfig: "./build.tsconfig.json", declaration: false, declarationDir: undefined }),
cleanup({ comments: "jsdoc" })
]
}
]