{"_id":"@adchitects/tsup-config","name":"@adchitects/tsup-config","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"$schema":"https://json.schemastore.org/package","type":"module","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"name":"@adchitects/tsup-config","version":"0.1.0","description":"@adchitects extendable configuration for tsup.","keywords":["config","tsup","tools"],"license":"MIT","homepage":"https://github.com/adchitects/configs","repository":{"directory":"packages/tsup","type":"git","url":"git+https://github.com/adchitects/configs.git"},"bugs":{"url":"https://github.com/adchitects/configs/issues"},"engines":{"node":">=18"},"main":"dist/index.cjs","exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs","types":"./dist/index.d.ts"}},"peerDependencies":{"tsup":"6.5.0"},"devDependencies":{"@types/node":"18.11.9","tsup":"6.5.0","typescript":"4.9.3","@adchitects/typescript-config":"0.2.0"},"types":"dist/index.d.ts","scripts":{"build":"tsup","clean":"concurrently \"pnpm:clean:*\" --group --timings","clean:build":"del \"./dist\"","clean:cache":"del \"./.turbo\" \"./node_modules/.cache\"","dev":"tsup --watch","format":"concurrently \"pnpm:format:*\" --group --timings","format:prettier":"prettier --check \"./**/*\" --ignore-path \"../../.prettierignore\" --write","format:syncpack":"syncpack format","lint":"concurrently \"pnpm:lint:*\" --group --timings","lint:deps":"depcheck","lint:format":"prettier --check \"./**/*\" --ignore-path \"../../.prettierignore\"","lint:js":"DEBUG=\"eslint:cli-engine\" eslint . --ext .json,.ts --cache --cache-location \"./node_modules/.cache/tsup\"","lint:md":"markdownlint . --dot --ignore-path \"../../.gitignore\" --config \"../../.markdownlint.json\"","lint:types":"tsc --noEmit"},"_id":"@adchitects/tsup-config@0.1.0","_integrity":"sha512-HZelaMDCzB0BqKHrVvWi8UzJvIWRBHpA2fspbvj4MhM0z+YkTCw3qGZ7pddOfYUKcV46J90dqvjfHIwmV2ioZg==","_resolved":"/tmp/7cbec9af6409490449962c26b1cf3e11/adchitects-tsup-config-0.1.0.tgz","_from":"file:adchitects-tsup-config-0.1.0.tgz","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-HZelaMDCzB0BqKHrVvWi8UzJvIWRBHpA2fspbvj4MhM0z+YkTCw3qGZ7pddOfYUKcV46J90dqvjfHIwmV2ioZg==","shasum":"daa5f66cace5ef3ec2f86dff3a74b66d2333ae7d","tarball":"https://registry.npmjs.org/@adchitects/tsup-config/-/tsup-config-0.1.0.tgz","fileCount":8,"unpackedSize":16068,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEGtx118bFkDn8XLbMeBt7QWW5okjRQ3dvHAV/qW2rorAiBwnbTDjg5M1+VYLjZsOekEHP4+aTjx9jXhN94SfLtFyA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjieXIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpKdw/9GtMdCCNIbjn34T/8pj6Mssbx+PNFgIuEOuil4DyO7+EiGFgg\r\nr6uo1LqozM0ZzJFhsNoFSai+i4ss82FlH3spwjTN5tMyDQ/8TM7ZAbZT3OcR\r\nmNOoqUkF/UVUuLccZLxc8UWUTOXuMistw4oieBSfvhFzP/4hsEOhoO0iiTT+\r\nTclIeftEYwoBAc9GvfSfBnyl2C3m5QMbQJ1XAK9hlXy5/Q7xvcBTYa/atafE\r\n3+Cs0AmbOafpuRpPTR02xYao7fwmQf9ODXEoEloJHLvcci7cNQBedVwln1Nt\r\nyfR8t0aJL12pb4df59BZqAisF2JSdGajgmTpSnIsuFc+g4TKuySHyqXe9unX\r\nPbYUd65q+IcyrTl1lMsNc/0VpX950D7TwVMxZHRh92LqLgUhFWHuDvoG8pOb\r\nk28LTvatWelpw1O4tODoG7sxptu3Yr9dSOS5xlwhA3EpSYjaYUNQafL9mhtP\r\n+NfD787hSHB3dAOY1+TwUt3h0rEddZcECgC+vaqfUEyHiaow2lLkUscgrwFD\r\n3CCmSYjyF0j06/BDDXBN65mekiJ6F0B81PRh/ahjeCvxfT2LpVL99tgc7W76\r\nHNhrROB+TLZktfsWoxfmxnY3jVPstwfMXIRJ0F6uyHIGtSAAhVu4xUL1653f\r\n3oamA18WmptvN7hvQnkZHTVEIE3BNZRLK5w=\r\n=tMHH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mateusz.k","email":"mateusz.k@adchitects.co"},"directories":{},"maintainers":[{"name":"mateusz.k","email":"mateusz.k@adchitects.co"},{"name":"adchitects-dev","email":"github@adchitects.co"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tsup-config_0.1.0_1669981640584_0.712248731269491"},"_hasShrinkwrap":false}},"time":{"created":"2022-12-02T11:47:20.478Z","0.1.0":"2022-12-02T11:47:20.728Z","modified":"2022-12-02T11:47:20.903Z"},"maintainers":[{"name":"mateusz.k","email":"mateusz.k@adchitects.co"},{"name":"adchitects-dev","email":"github@adchitects.co"}],"description":"@adchitects extendable configuration for tsup.","homepage":"https://github.com/adchitects/configs","keywords":["config","tsup","tools"],"repository":{"directory":"packages/tsup","type":"git","url":"git+https://github.com/adchitects/configs.git"},"bugs":{"url":"https://github.com/adchitects/configs/issues"},"license":"MIT","readme":"# @adchitects/tsup-config\n\n![package version badge]\n\n➡️ **Extendable [tsup] configuration**, part of the\n[adchitects/configs] project.\n\n[package version badge]: https://img.shields.io/npm/v/@adchitects/tsup-config/latest?style=for-the-badge&logo=npm\n[tsup]: https://tsup.egoist.dev/\n[adchitects/configs]: https://github.com/adchitects/configs\n\n---\n\n## Prerequisites\n\n[![node.js version support badge]][node.js]\n[![supported tsup version badge]][tsup]\n\n[node.js version support badge]: https://img.shields.io/node/v-lts/@adchitects/tsup-config?style=for-the-badge&logo=nodedotjs\n[supported tsup version badge]: https://img.shields.io/github/package-json/dependency-version/adchitects/configs/peer/tsup?filename=packages%2Ftsup%2Fpackage.json&logo=tsup&style=for-the-badge\n\nℹ️ This configuration package require these tools to use locally on your\ndevice(s):\n\n1. ![node.js icon] Latest [Node.js] LTS _(Long-Term Support)_ version\n1. One of Node.js package managers:\n    - ![pnpm icon] [pnpm]\n    - ![yarn icon] [yarn]\n    - ![npm icon] [npm]\n1. Latest [tsup] version\n\n[node.js]: https://nodejs.org/en/\n[node.js icon]: https://api.iconify.design/logos/nodejs-icon.svg\n[pnpm]: https://pnpm.io/\n[pnpm icon]: https://api.iconify.design/vscode-icons/file-type-light-pnpm.svg\n[npm]: https://npmjs.com/\n[npm icon]: https://api.iconify.design/logos/npm-icon.svg\n[yarn]: https://yarnpkg.com/\n[yarn icon]: https://api.iconify.design/logos/yarn.svg\n\n---\n\n## Basic usage\n\n👣 Follow the steps below:\n\n1. **Install it with the ![node.js icon] [Node.js] package manager of your\n   choice** _(in our case, we use ![pnpm icon] [pnpm])_.\n\n    ```sh\n     pnpm install --save-dev tsup @adchitects/tsup-config\n    ```\n\n1. **Create a [tsup configuration file] - `tsup.config.ts`**.\n\n1. **Import a specific [getter] from this module package configuration and use it.**\\\n   NOTE: This one below is an example!\n\n    ```ts\n    import { defineConfig } from \"tsup\";\n\n    import { setNodeUniveralOptions } from \"@adchitects/tsup-config\";\n\n    export default defineConfig((options) => ({\n    \t...setNodeUniveralOptions(options),\n    \tentry: [\"./source/**/*.ts\"],\n    }));\n    ```\n\n📖 For the [tsup CLI] usage, please refer to its documentation.\n\n[getter]: #available-options-getters\n[tsup configuration file]: https://tsup.egoist.dev/#using-custom-configuration\n[tsup cli]: https://tsup.egoist.dev/#usage\n\n---\n\n## Available options getters\n\n| Name                       | Purpose                                                                   |\n| -------------------------- | ------------------------------------------------------------------------- |\n| `getBaseOptions()`         | For **general** usage                                                     |\n| `getComponentsOptions()`   | For building a **component** package                                      |\n| `getNodeCJSOptions()`      | For building a Node.js package in **CommonJS** format                     |\n| `getNodeESMOptions()`      | For building a Node.js package in **ES Modules** format                   |\n| `getNodeUniveralOptions()` | For building a Node.js package in both **CommonJS and ES Modules** format |\n\n---\n\n## Used configurations & plugins\n\n[![Dependencies badge]][dependencies url]\n\n⚙️ This configuration module loads configurations and plugins options\n_conditionally_.\n\n[dependencies badge]: https://img.shields.io/librariesio/release/npm/@adchitects/tsup-config?style=for-the-badge\n[dependencies url]: https://libraries.io/npm/@adchitects%2Ftsup-config\n\n### Configurations\n\nNone so far.\n\n### Plugins\n\nNone so far.\n\n---\n\n## Security\n\n[![workflow security badge]][security policy]\n\n🔐 For more information, please refer to the [Security section] at the root of the\n[adchitects/configs] monorepo.\n\n[workflow security badge]: https://img.shields.io/github/workflow/status/adchitects/configs/Maintenance?label=Security&logo=github&style=for-the-badge\n[security section]: https://github.com/adchitects/configs#security\n[security policy]: https://github.com/adchitects/configs/security/policy\n\n---\n\n## Contributing\n\n[![contributors badge]][contributors url]\n\n🤝 **Contributions of any kind are welcome!**\n\nPlease refer to the monorepo _([adchitects/configs])_ project's\n[CONTRIBUTING file] for more information if you wish to get involved.\n\n[contributing file]: https://github.com/adchitects/configs/blob/main/.github/CONTRIBUTING.md\n[contributors badge]: https://img.shields.io/github/contributors/adchitects/configs?style=for-the-badge\n[contributors url]: https://github.com/adchitects/configs#contributors\n\n---\n\n## License\n\n[![license badge]][license]\n\n⚖️ For more information, please refer to the [License section] at the root of\nthe [adchitects/configs] monorepo.\n\n[license badge]: https://img.shields.io/github/license/adchitects/configs?style=for-the-badge\n[license]: https://github.com/adchitects/configs/blob/main/LICENSE.md\n[license section]: https://github.com/adchitects/configs#License\n\n---\n\n## Resources\n\nNone so far.\n","readmeFilename":"README.md"}