UNPKG

@stoplight/spectral-url-versioning

Version:

There's no one right way to version, but there's a lot of objectively bad ways you want to avoid.

22 lines (19 loc) 425 B
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 {}; }, };