{"_id":"@emarketeer/esbuild-plugin-tsc","_rev":"6-6d91e301fecda974283ffa9d8db8d085","name":"@emarketeer/esbuild-plugin-tsc","dist-tags":{"latest":"0.4.1"},"versions":{"0.4.0":{"name":"@emarketeer/esbuild-plugin-tsc","version":"0.4.0","keywords":["esbuild","esbuild-plugin","tsc","typescript"],"author":{"name":"Arseny Yankovski","email":"arseny.yankovsky@emarketeer.com"},"license":"MIT","_id":"@emarketeer/esbuild-plugin-tsc@0.4.0","maintainers":[{"name":"ayankovsky","email":"arsenii.yankovskii@gmail.com"}],"homepage":"https://github.com/eMarketeerSE/esbuild-plugin-tsc#readme","bugs":{"url":"https://github.com/eMarketeerSE/esbuild-plugin-tsc/issues"},"dist":{"shasum":"23700643b6b34fd45bffaa1a606af1b651db4c52","tarball":"https://registry.npmjs.org/@emarketeer/esbuild-plugin-tsc/-/esbuild-plugin-tsc-0.4.0.tgz","fileCount":26,"integrity":"sha512-ZsotIbrH/PjdekmqM7izWDwIqb/6dO21s5gNe9ESAxOgsNgzylMA7Yow6xEfWFcbdDD+0pfDZ8wletORODwqTg==","signatures":[{"sig":"MEYCIQDZtNQjWtrA6X/l4UQOFKcat0j1zWvX/bz7pfKDn67FTgIhAImr5+de8WYbTAqlKpKR9tR6bHCplADLX2r7XhFN5kch","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20199,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/Qu6CRA9TVsSAnZWagAAH8cP/AgAk32vkai5gP/TvnkQ\nHdLlkbeKKyzT2OewJwCoZx44YHfywpc3LZ2vCsmIuRS2WkKIhjyVaWYI7qhm\n3rFFANcnQK/Ma6dFWYjMavMF64p6CusmmeFYZSnbuCf0rTDMOUZV4qmgKptm\n4ie3eQmU8UEBwQXhKObKG3nK19XN5xknSz80GJTKoNjdBiNjsAOPPm4UVd9h\nhpLcLkYmLs5a7dP7r/ZlvRbk9b7EcM/YyXUJGrBQ77hGUb2zdAHsQNOyCZJS\n9uxkjtytML0lcm8gIdoucq2l7/4KvtGRkhvYNY2eKmvId0q04G4G1xaPKnrf\nJQyR4TNktckMRYKr8MpsczcZTUXSe7iySGKRUwFAy/6uVIOBj182iItnKIkz\nIMqCOJUDcy8tHgsdRJ5C6QyRs/njBFOdQCWjCze+Xjd9kBSulTnpUN7RTk1G\nBteD7JM74vMxyZcoyPy9RrSfU2ZkFU4flyCabIl+O9P7Jgk+09albH78N3F8\nWVZg1LdsW5n/xD1VZPeNlkX7NrcIfveZObPPeiHhhfL18JvHWl+LEBYjmmkV\nuoiL6gGq670FQ3MLKLiNrgEUhxkj7hQ7OSyc4l1DKJAM4OPth80nEcjj8bdd\n59i/jEeaOz9j2IKj6MLBlzOcSCr+xT77nEQaYwlS6IguEtTrLzHmapN89ZS/\nAyy5\r\n=6TJM\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"verbose":true},"main":"src/index.js","types":"./types.d.ts","gitHead":"ccac87e4e0cb75e89645187466353c5be1ee8de5","scripts":{"test":"jest"},"_npmUser":{"name":"ayankovsky","email":"arsenii.yankovskii@gmail.com"},"repository":{"url":"git+https://github.com/eMarketeerSE/esbuild-plugin-tsc.git","type":"git"},"_npmVersion":"7.19.1","description":"An esbuild plugin which uses tsc to compile typescript files.","directories":{},"_nodeVersion":"16.5.0","dependencies":{"strip-comments":"^2.0.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.0.1","prettier":"^2.3.0","typescript":"^4.3.2"},"peerDependencies":{"typescript":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/esbuild-plugin-tsc_0.4.0_1643973562769_0.007964713163974402","host":"s3://npm-registry-packages"}},"0.4.1":{"name":"@emarketeer/esbuild-plugin-tsc","version":"0.4.1","keywords":["esbuild","esbuild-plugin","tsc","typescript"],"author":{"name":"Arseny Yankovski","email":"arseny.yankovsky@emarketeer.com"},"license":"MIT","_id":"@emarketeer/esbuild-plugin-tsc@0.4.1","maintainers":[{"name":"ayankovsky","email":"arsenii.yankovskii@gmail.com"}],"homepage":"https://github.com/eMarketeerSE/esbuild-plugin-tsc#readme","bugs":{"url":"https://github.com/eMarketeerSE/esbuild-plugin-tsc/issues"},"dist":{"shasum":"8a11fe98c9bc313058b466e65dbb8e9ab06ef9d8","tarball":"https://registry.npmjs.org/@emarketeer/esbuild-plugin-tsc/-/esbuild-plugin-tsc-0.4.1.tgz","fileCount":22,"integrity":"sha512-J6WxNUDvDJihUQwkNWTDcRq1mx0f6Q3WfKF1YCdVn/BTJrTkV87++INfPeBNmFvGKLB+zXgxqSY1P+Tlu+tgVg==","signatures":[{"sig":"MEUCIFKY48IfTDydlESaOCTrUrcpPIyPuBCoz7W82Qm5jooTAiEA2wDft+vkG/0jwGDvDKSla24wsCSFVcAum6Cw8cD6EGY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19284,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBmi3CRA9TVsSAnZWagAAHQIQAJv0KXr0481iuvKKAarP\nDD/cb9fV1TOZ6n9DMM1W6JSKDUyzbRBH2FWCIrgdpVNp0uJ8H/Ie+b30NMh4\nttNnPUP1kL0cwmlUlcXvMZO5ol2rT3nNIcTiIS6T2NNqofGvR3va5zy1Rqsh\n3ZkE7xeqtKCrq/t0ALR1hQiRYoAH7SRc575Z7kbHtgnrHTaqSEypClzDRYdw\nhv1KeFecCHz6/oVSbRpb3DtCPSuJMBWKUPFVsZeHrV7DK2MgIQ3Fw+e8TT99\nMP8SlaXe7kzgYQkdRwazjewcA4tLQWwrjbyF+K5w+5CDwMKh+JYYqv5nHZO2\nNcSeFRq0uKqnOO3ii0cN5hjUXSVfY1r1FkEMmJ7sZjyAU3NKXic9LPDjUJx3\nPp/NppP2uHwsbb8I1AypqzIsO6wpNO5m9i1oNjFTSNyMGRnQhqm7nH5I/Bg+\nqnT0w8v6i4df/v5noZJVXzpZ9dWxhDqs9DBu10qt0SHiIISO2cCwCVONBLfM\n4W/PwvUkYm8+mOPHWIXN2Yl15qD2hvQf2OEFJ+RnzBWmAWEUN1LxKJnn6ltV\ncD+3XLXzQkTdm6cfVKxNmO/TmxfcydtLgA2PP+vaFxv8TGkN8XOVcuiYfRp9\noopG91PMm/CexnOkLbfOPaRNOSc96X3jbRb6sfEwl5u6K0VmFA+iHxTShDDc\n/6T/\r\n=83cA\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"verbose":true},"main":"src/index.js","types":"./types.d.ts","gitHead":"61d0dce3e2ea37fbeec0f59d28b1813c74d9e641","scripts":{"test":"jest"},"_npmUser":{"name":"ayankovsky","email":"arsenii.yankovskii@gmail.com"},"repository":{"url":"git+https://github.com/eMarketeerSE/esbuild-plugin-tsc.git","type":"git"},"_npmVersion":"7.19.1","description":"An esbuild plugin which uses tsc to compile typescript files.","directories":{},"_nodeVersion":"16.5.0","dependencies":{"strip-comments":"^2.0.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.0.1","prettier":"^2.3.0","typescript":"^4.3.2"},"peerDependencies":{"typescript":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/esbuild-plugin-tsc_0.4.1_1644587191713_0.005667414206406152","host":"s3://npm-registry-packages"}}},"time":{"created":"2022-02-04T11:19:22.712Z","modified":"2026-08-12T15:39:08.453Z","0.4.0":"2022-02-04T11:19:22.924Z","0.4.1":"2022-02-11T13:46:31.846Z"},"bugs":{"url":"https://github.com/eMarketeerSE/esbuild-plugin-tsc/issues"},"author":{"name":"Arseny Yankovski","email":"arseny.yankovsky@emarketeer.com"},"license":"MIT","homepage":"https://github.com/eMarketeerSE/esbuild-plugin-tsc#readme","keywords":["esbuild","esbuild-plugin","tsc","typescript"],"repository":{"url":"git+https://github.com/eMarketeerSE/esbuild-plugin-tsc.git","type":"git"},"description":"An esbuild plugin which uses tsc to compile typescript files.","maintainers":[{"email":"arsenii.yankovskii@gmail.com","name":"ayankovsky"},{"email":"magnus.baudin@gmail.com","name":"mbaudin"}],"readme":"# @emarketeer/esbuild-plugin-tsc\n\nAn esbuild plugin which uses tsc to compile typescript files.\n\n## Why?\n\nEsbuild natively supports typescript files - so if you are not using exotic typescript features this plugin is not meant for you!\n\nI wanted to use [`typescripts emitDecoratorMetadata`](https://www.typescriptlang.org/tsconfig#emitDecoratorMetadata) feature, which is [not supported by esbuild](https://github.com/evanw/esbuild/issues/257). If you are only using typescript decorators in some files, this plugin allows you to convert only the files containing decorators and lets esbuild handle all other files.\nIf for some reason you want to use typescripts compiler for all files you can simple set the `force` option.\n\n## Basic Usage\n\n1. Install this plugin in your project:\n\n   ```sh\n   npm install --save-dev @emarketeer/esbuild-plugin-tsc typescript\n   ```\n\n2. Add this plugin to your esbuild build script:\n\n   Javascript:\n   ```diff\n   +const esbuildPluginTsc = require('@emarketeer/esbuild-plugin-tsc');\n    ...\n    esbuild.build({\n      ...\n      plugins: [\n   +    esbuildPluginTsc(),\n      ],\n    })\n   ```\n\n   Typescript:\n   ```diff\n   +import { esbuildPluginTsc } from '@emarketeer/esbuild-plugin-tsc';\n    ...\n    esbuild.build({\n      ...\n      plugins: [\n   +    esbuildPluginTsc(),\n      ],\n    })\n   ```\n\n## Config\n\n```typescript\nesbuildPluginTsc{\n    // If empty, uses tsconfig.json\n    tsconfigPath?: string,\n    // If true, force compilation with tsc\n    force?: boolean,\n    // If true, enables tsx file support\n    tsx?: boolean\n})\n```\n","readmeFilename":"README.md"}