{"_id":"@akumzy/esbuild-node-tsc","_rev":"1-72de3eef876db8c31406127724e5289f","name":"@akumzy/esbuild-node-tsc","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.6":{"name":"@akumzy/esbuild-node-tsc","description":"Build your Typescript Node.js projects using blazing fast esbuild","version":"1.0.6","main":"./dist/index.js","bin":{"esbuild-node-tsc":"dist/index.js","etsc":"dist/index.js"},"license":"MIT","scripts":{"prepare":"tsc","build":"tsc"},"keywords":["esbuild","node","dev","tsnode","ts-node","tsc","typescript"],"devDependencies":{"@types/node":"^14.6.4","@types/rimraf":"^3.0.0","typescript":"^4.0.2"},"dependencies":{"cpy":"^8.1.1","esbuild":"^0.8.34","rimraf":"^3.0.2"},"peerDependencies":{"typescript":"*"},"prettier":{"semi":true},"gitHead":"4e6c944665259cb1aca8d2dc564eef35865b0665","_id":"@akumzy/esbuild-node-tsc@1.0.6","_nodeVersion":"15.4.0","_npmVersion":"7.0.15","dist":{"integrity":"sha512-hh0/QCzTRoGWjEpOKLxMVtILg/h+za2uZoFuAJ/PxAOBUTLymntK7dM3smpVP0GmCCodyxmiti/T3rlYWI76Lw==","shasum":"0dc15c8febffc60ee632536053554b83081da32f","tarball":"https://registry.npmjs.org/@akumzy/esbuild-node-tsc/-/esbuild-node-tsc-1.0.6.tgz","fileCount":10,"unpackedSize":14447,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgDxeLCRA9TVsSAnZWagAAC8gP/1rDvL1Q74v7w+1Eicp/\n5uf0TtsvUgwmc/hoHEx6Y9fmS5++lWfpL5ehRG8XbIIOvWBGzCLW7TLF0t2A\nqVx2gIzFLR0nEVjiwDOgT8dxyP72dt9VASPrvsfGph6zerZwasZg5JyDC3do\nLIgrg9YxIERU5+0IdMTPtsaGhxnfXqehqaKPP3crBSSN9jBPwIrwHrj7WKwC\n3R3v2/v5xg4Vp+N4+0xFspOy+ocsWAyXi51zlx8pdSbG1DExAI1/TQGF0ePd\nQO+OAqL8FRdyV89y0WW8Zh8PP9/V0v8djTRELCeB3fh1kGE8d3TmKgPrS1vP\nZuqKlCv+lwQOuob7KrnfCre/bNEpSmEdD+uRsqm3pLF/73uPjBnaRKq10ba0\nj80z41QMKm9shEbElhEWdKyRt8TWvEXw9me/omnh9pnhz16W/qnoiymLk+RM\njlew4gS7YUSbfbJpo0Poq8thu0HSMgbQow0d8OGmCdEdpO8IH7to6TguE/9V\nlTgmCGjKj6kLu2wiEXmaVYQryI4HNqau8/f2x0ebm5dNtzRrKFVchxCeb7JI\nWbmALj/Lp6AZRlTQwj5XCL6dN41u8Ylxx6/eWhu7qs5dto+urpP4UqrokE2B\nBV2gXK96UI6pcjkz5UGhadTwg3EUQuI1J9zuWtDTF1e9qDN56ev6Ab8sVQg1\nim3Q\r\n=LBzS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGf//i7LelNduDlzdVDHBUIhwTMtBMnpIkP4RzxYbMUEAiEAieqMTgdah2B85dtFS1jM8eCnMl6EYzHellCbCFvyUSU="}]},"_npmUser":{"name":"akumzy","email":"akumaisaacakuma@gmail.com"},"directories":{},"maintainers":[{"name":"akumzy","email":"akumaisaacakuma@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esbuild-node-tsc_1.0.6_1611601802561_0.758505921493619"},"_hasShrinkwrap":false}},"time":{"created":"2021-01-25T19:10:02.521Z","1.0.6":"2021-01-25T19:10:02.866Z","modified":"2022-04-04T12:31:42.745Z"},"maintainers":[{"name":"akumzy","email":"akumaisaacakuma@gmail.com"}],"description":"Build your Typescript Node.js projects using blazing fast esbuild","keywords":["esbuild","node","dev","tsnode","ts-node","tsc","typescript"],"license":"MIT","readme":"# ⚡️ esbuild-node-tsc\n\nBuild your Typescript Node.js projects using blazing fast **[esbuild](https://github.com/evanw/esbuild)**.\n\nSince esbuild can build large typescript node projects in subsecond speeds, this is quite useful for development builds too if you want to stick with `tsc` for production builds.\n\n**_Please note this library doesnt do typechecking. For typechecking please continue to use tsc._**\n\n## How does it work?\n\nesbuild-node-tsc reads the tsconfig.json and builds the typescript project using esbuild. esbuild is the fastest typescript builder around. It also copies the non ts files such as json, graphql files, images,etc to the dist folder. If the assets are not copied correctly check the configuration guide below.\n\n## Installation\n\n```\nnpm install --save-dev esbuild-node-tsc\n```\n\n## Usage\n\n```\nnpx esbuild-node-tsc\n```\n\nor use the short form.\n\n```\nnpx etsc\n```\n\nAdditionally, you can add it to your build scripts\n\n```json\n{\n  \"name\": \"myproject\",\n  \"version\": \"0.1.0\",\n  \"scripts\": {\n    \"dev\": \"etsc\" \n  }\n}\n```\n\nThen just run\n\n```\nnpm run dev\n```\n\n## Live reloading (nodemon ❤️ esbuild-node-tsc)\n\nSince esbuild can build large typescript projects in subsecond speeds you can use this library instead of ts-node-dev or ts-node which usually slow down when project scales.\n\nTo achieve live reloading:\n\n```\nnpm install --save-dev nodemon esbuild-node-tsc\n```\n\nThen add the following script to package.json\n\n```json\n{\n  \"name\": \"myproject\",\n  \"version\": \"0.1.0\",\n  \"scripts\": {\n    \"dev\": \"nodemon\"\n  }\n}\n```\n\nAnd add a `nodemon.json`\n\n```json\n{\n  \"watch\": [\"src\"],\n  \"ignore\": [\"src/**/*.test.ts\"],\n  \"ext\": \"ts,mjs,js,json,graphql\",\n  \"exec\": \"etsc && node ./dist/index.js\",\n  \"legacyWatch\": true\n}\n```\n\nFinally run\n\n```\nnpm run dev\n```\n\n## Comparison with tsc\n\n<img src=\"https://user-images.githubusercontent.com/4029423/94347242-c6497600-0032-11eb-8a66-4311adf04554.gif\" width=\"638\" height=\"750\">\n\n\n## Optional configuration\n\nBy default esbuild-node-tsc should work out of the box for your project since it reads the necessary configuration from your tsconfig.json\n\nBut if things are not working as expected you can configure esbuild-node-tsc by adding `etsc.config.js` along side tsconfig.json.\n\nExample `etsc.config.js`\n\n```js\nmodule.exports = {\n  outDir: \"./dist\",\n  esbuild: {\n    minify: false,\n    target: \"es2015\",\n  },\n  assets: {\n    baseDir: \"src\",\n    filePatterns: [\"**/*.json\"],\n  },\n};\n```\n\nAll of the above fields are optional\n\n## License\n\nMIT\n","readmeFilename":"README.md"}