@stoplight/spectral-documentation
Version:
Your documentation is only as useful as the quality of the information you've provided, so make sure you're taking full advantage of the features OpenAPI has to offer.
22 lines (19 loc) • 425 B
text/typescript
import type { Options } from 'tsup';
export default <Options>{
entry: ["src/ruleset.ts"],
clean: true,
dts: true,
target: "es2018",
format: ["cjs", "esm"],
sourcemap: true,
noExternal: ["@stoplight/types"],
external: ["@stoplight/spectral-core"],
footer({ format }) {
if (format === "cjs") {
return {
js: "module.exports = module.exports.default;",
};
}
return {};
},
};