{"name":"gatsby-plugin-typescript","description":"Adds TypeScript support to Gatsby","version":"2.0.0-alpha.80a21f04","author":{"name":"Kyle Mathews","email":"mathews.kyle@gmail.com"},"bugs":{"url":"https://github.com/gatsbyjs/gatsby/issues"},"contributors":[{"name":"Noah Lange","email":"noahrlange@gmail.com"}],"dependencies":{"@babel/preset-typescript":"7.0.0-beta.51","@babel/runtime":"7.0.0-beta.51","babel-plugin-remove-graphql-queries":"^2.1.0-alpha.80a21f04"},"devDependencies":{"@babel/cli":"7.0.0-beta.51","@babel/core":"7.0.0-beta.51","cross-env":"^5.1.4"},"homepage":"https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-typescript#readme","keywords":["gatsby","gatsby-plugin","typescript"],"license":"MIT","main":"index.js","peerDependencies":{"gatsby":">2.0.0-alpha"},"repository":{"type":"git","url":"https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-typescript"},"scripts":{"build":"babel src --out-dir . --ignore **/__tests__","prepublish":"cross-env NODE_ENV=production npm run build","watch":"babel -w src --out-dir . --ignore **/__tests__"},"readmeFilename":"README.md","readme":"# gatsby-plugin-typescript\n\nProvides drop-in support for TypeScript and TSX.\n\n## Install\n\n`npm install gatsby-plugin-typescript`\n\n## How to use\n\n1.  Include the plugin in your `gatsby-config.js` file.\n1.  Write your components in TSX or TypeScript.\n1.  You're good to go.\n\n`gatsby-config.js`\n\n```javascript\nplugins: [`gatsby-plugin-typescript`]\n```\n\n## Caveats\n\nThis plugin uses [`babel-plugin-transform-typescript`](https://new.babeljs.io/docs/en/next/babel-plugin-transform-typescript.html) to transpile typescript. It does _not do type checking_. Also since the TypeScript\ncompiler is not involved, the following applies:\n\n> Does not support namespaces.\n> Workaround: Move to using file exports, or\n> migrate to using the module { } syntax instead.\n>\n> Does not support const enums because those require\n> type information to compile. Workaround: Remove the\n> const, which makes it available at runtime.\n>\n> Does not support export = and import =, because those\n> cannot be compile to ES.next. Workaround: Convert\n> to using export default and export const,\n> and import x, {y} from \"z\".\n\nhttps://new.babeljs.io/docs/en/next/babel-plugin-transform-typescript.html\n\n## Type checking\n\nFirst of all you should set up your IDE so that type errors are surfaced.\nVisual Studio Code is very good in this regard.\n\nIn addition, you can see the instructions in [TypeScript-Babel-Starter](https://github.com/Microsoft/TypeScript-Babel-Starter)\nfor setting up a `type-check` task.\n","_id":"gatsby-plugin-typescript@2.0.0-alpha.80a21f04","dist":{"shasum":"3b564edf4e310f3d4b76629cf8970ea543256b00","tarball":"http://registry-npm.ywwl.com/gatsby-plugin-typescript/download/gatsby-plugin-typescript-2.0.0-alpha.80a21f04.tgz","fileCount":7,"unpackedSize":4295,"integrity":"sha512-vDJr3PrX5HFzUevsMAHYZPJt3ocGczwoesAEDGNUh7dfjUm/C5xF+h8JYoLcVyBbI1HN9pHJDhkRtRFhKe+/DA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH2Q/SLQO5hM1YbAmblvyCc+MbvGs1bB8sbN/XFofgfZAiEAkM0TfTxj7BELUAkt2gYyiGLSBAn5Vo3ZF0CYSiCllM0="}],"size":2100,"noattachment":false,"key":"/gatsby-plugin-typescript/-/gatsby-plugin-typescript-2.0.0-alpha.80a21f04.tgz"},"maintainers":[{"email":"mathews.kyle@gmail.com","name":"kylemathews"},{"email":"michael.allanson@gmail.com","name":"m-allanson"},{"email":"monastic.panic@gmail.com","name":"monastic.panic"},{"email":"misiek.piechowiak@gmail.com","name":"pieh"}],"_npmUser":{"name":"kylemathews","email":"mathews.kyle@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-plugin-typescript_2.0.0-alpha.80a21f04_1529177918412_0.6803897427407655"},"_hasShrinkwrap":false,"publish_time":1529177918459,"_cnpm_publish_time":1529177918459,"dist-tags":{"alpha-9689ff":"4.23.0-alpha-9689ff.25","alpha-a5-peer":"4.23.0-alpha-a5-peer.70","alpha-gatsby-metadata":"4.17.0-alpha-gatsby-metadata.81","alpha-mdx-v2":"4.18.0-alpha-mdx-v2.68","alpha-qe-sm":"3.14.0-alpha-qe-sm.33","alpha-remote-fetch":"3.14.0-alpha-remote-fetch.79","alpha-remote-file":"3.10.0-alpha-remote-file.48","alpha-rspack":"5.8.0-alpha-rspack.16","alpha-trailing-slash":"4.5.0-alpha-trailing-slash.71","alpha-transformer-json":"4.14.0-alpha-transformer-json.26","alpha-ts-jit":"4.6.0-alpha-ts-jit.27","alpha-v5":"5.0.0-alpha-v5.d20221012t101120.57","cbp3":"3.0.0-cpb3.83","coreutils":"3.12.0-coreutils.29","debug-missing-sq":"2.4.19-debug-missing-sq.231","dev-ssr-2":"2.4.19-dev-ssr-2.196","drupal-next":"3.14.0-drupal-next.81","drupal-proxyurl":"5.0.0-alpha-drupal-proxyurl.14","drupal-self-reference":"4.18.0-alpha-drupal-self-reference.18","functions-next":"3.4.0-functions-next.18","image-cdn":"4.9.0-alpha-image-service2.14","image-service":"4.8.0-alpha-image-service.35","latest":"5.16.0","latest-v3":"3.15.0","latest-v4":"4.25.0","mdxv4-rc":"4.20.0-mdxv4-rc.65","next":"5.17.0-next.0","otp-test":"2.1.6-otp-test.69","preview-gh-api":"4.23.0-alpha-preview-gh-api.26","query-modules-debug-missing-sq":"2.4.19-query-modules-debug-missing-sq.267","reach-router":"3.0.0-reach-router.17","react19":"5.17.0-react19.1","unifiedroutes":"2.3.3-unifiedroutes.76","unifiedroutes-v2":"2.3.3-unifiedroutes-v2.151","v3rc":"3.0.0-v3rc.0","wp-image-cdn-auth":"4.15.0-alpha-wp-image-cdn-auth.45"}}