{"_id":"@agss/mylibdts-testing","_rev":"1-c838bfff9d860600b205b63e6e54141e","name":"@agss/mylibdts-testing","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.0":{"name":"@agss/mylibdts-testing","version":"0.1.0","license":"MIT","author":{"name":"AGSS18"},"main":"dist/index.js","module":"dist/mylibdts.esm.js","typings":"dist/index.d.ts","scripts":{"analyze":"size-limit --why","build":"dts build","lint":"dts lint","prepare":"dts build","size":"size-limit","start":"dts watch","test":"dts test --passWithNoTests"},"husky":{"hooks":{"pre-commit":"dts lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"jest":{"testEnvironment":"jsdom"},"peerDependencies":{"react":">=16"},"engines":{"node":">=12"},"size-limit":[{"path":"dist/mylibdts.cjs.production.min.js","limit":"10 KB"},{"path":"dist/mylibdts.esm.js","limit":"10 KB"}],"devDependencies":{"@size-limit/preset-small-lib":"^7.0.8","@tsconfig/create-react-app":"^1.0.2","@tsconfig/recommended":"^1.0.1","@types/react":"^18.0.15","@types/react-dom":"^18.0.6","dts-cli":"^1.5.2","husky":"^8.0.1","react":"^17.0.1","react-dom":"^17.0.1","size-limit":"^7.0.8","tslib":"^2.4.0","typescript":"^4.7.4"},"gitHead":"b878b9752c8ca43c45ead59c3a797300d95e8402","description":"Congrats! You just saved yourself hours of work by bootstrapping this project with DTS. Let’s get you oriented with what’s here and how to use it.","_id":"@agss/mylibdts-testing@0.1.0","_nodeVersion":"17.9.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-yKx/bPoXNf+eHwX4dURJzP0zS+0lw32zhsoegSDZXStFndbsG9Mg1BWmChaGSPgb3ESUTbFROLeMJc3rANI1Vg==","shasum":"161874087a6cbcb0c64e84b03d8da66a3877387b","tarball":"https://registry.npmjs.org/@agss/mylibdts-testing/-/mylibdts-testing-0.1.0.tgz","fileCount":12,"unpackedSize":12869,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAaGbDI0tGu0cupGeifjJ8kS4+AiomlhXAl4ynLY/0fcAiAmKK47xkmzlumBQXDdi/QIyfFQFDMhwqsWWMdbdvSmYQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixwbLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmptwg//YXh9vZXtxOFIqs7MU1aCet2hAmXbCOh23+kvOrABCQm5b4qi\r\n2GuArHlOOk/2gfvAd85A2LdydU4r7h5WV1G6SJNY5AveeVHJw1xP2ze0OXWR\r\nqgP+yBTukN9FP0K8ZMcjkc6xBD/h2lY3iFKTeThlLT8ddJYjA8Gxh44Wvqyh\r\na3nbOAl70Un1vAisi3szhf9kOU+nnCND7MKkTZBqA8Ji0zFifzMYiCa7BLFf\r\nDnFcCqLtOq/O+IgNrEn6ksbn9Xqgd0rQ6p2A4XFv5rls44v9InTHlokmJWKm\r\nd8zaF5MVCZ4KrkVAgfomiDIzr3Otp6Z75IlYWieCggUwgzoDMD5MRf3pZ22B\r\nwRl7fHeYkhnTeHjrbtbNff/SuoJPaM6qXBIQTFi28IR3ognr4gNNB25+W7BL\r\npAwSixrvNJhHhmEHQHISEcQnKTrxPmJaymkt0fkqbln/MS5wlaHKP/Fnfg2O\r\njW4h2+LOoJpCJaR9bMUBfuSCRIcvGKSpbMP0iKV3k02Ng6PI4Ma7f9BB2hgd\r\nLV1pZMESbD7KKOXIuPECo+yrF7c03/mt+k5/+LsTcVY3mx6bK/Lj2CEvcL1L\r\nzZR1UOHKaSzA9iOuFAwQhADOkfrLS9SDz4nyNFOcwKMN2+mHOn82aR6cIaNp\r\nBZvpWhkkuVu4s0unZL/KdLve3C3HysZFl+w=\r\n=EJFs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"agss","email":"georgina.sala18@gmail.com"},"directories":{},"maintainers":[{"name":"agss","email":"georgina.sala18@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mylibdts-testing_0.1.0_1657210571485_0.7455546890861378"},"_hasShrinkwrap":false},"1.0.0":{"name":"@agss/mylibdts-testing","version":"1.0.0","license":"MIT","author":{"name":"AGSS18"},"main":"dist/index.js","module":"dist/mylibdts.esm.js","typings":"dist/index.d.ts","scripts":{"analyze":"size-limit --why","build":"dts build","lint":"dts lint","prepare":"dts build","size":"size-limit","start":"dts watch","test":"dts test --passWithNoTests"},"husky":{"hooks":{"pre-commit":"dts lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"jest":{"testEnvironment":"jsdom"},"peerDependencies":{"react":">=16"},"engines":{"node":">=12"},"size-limit":[{"path":"dist/mylibdts.cjs.production.min.js","limit":"10 KB"},{"path":"dist/mylibdts.esm.js","limit":"10 KB"}],"devDependencies":{"@size-limit/preset-small-lib":"^7.0.8","@tsconfig/create-react-app":"^1.0.2","@tsconfig/recommended":"^1.0.1","@types/react":"^18.0.15","@types/react-dom":"^18.0.6","dts-cli":"^1.5.2","husky":"^8.0.1","react":"^17.0.1","react-dom":"^17.0.1","size-limit":"^7.0.8","tslib":"^2.4.0","typescript":"^4.7.4"},"gitHead":"b878b9752c8ca43c45ead59c3a797300d95e8402","description":"Congrats! You just saved yourself hours of work by bootstrapping this project with DTS. Let’s get you oriented with what’s here and how to use it.","_id":"@agss/mylibdts-testing@1.0.0","_nodeVersion":"17.9.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-/1HSZams6Svv2me2aP2u4KJ0p3Ec+E32+cAYeJhEIvtrQdFfuKJpHVwCY/B1Tu77JzaMrJvWwOZxvfE2SHigYw==","shasum":"6074515f950a6f9322291f57685745b525c42eaa","tarball":"https://registry.npmjs.org/@agss/mylibdts-testing/-/mylibdts-testing-1.0.0.tgz","fileCount":12,"unpackedSize":16672,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAm932I+rAa+FvawA1oU+t/xGSDJWR/itxGW8yhWB14kAiA5NL88DYdeN+1qG6NzbsCr+lCu8U8jIl9T7PFVAig5MQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixwuAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoX1hAAkX35PdsL+LbFaRNhGSsqKLl2FVKg0B39LTrAC6ZBS+Iw76+Y\r\nY8DWlPErKKWBuXI/w4OdtGAkFMp7B/v+Kfqhe9uM8fn8ZDzuO2PxKT7N32ax\r\niLdBJVZWMBrMtxWZixO54hFwsXLtyJm3dMC2Kk6SSK62R7cn/hUhDnvcN41p\r\nJoZ8C5yyRlXEcKV9PhJNlAnnEjWteyhcaOGxSx8OUznIrVNFLIaevkaUTaZv\r\nA+Rk6hRCPJnBSRfGCX/MmZXJBegrSin+AHxz7qK2QiCMdixA2QjRYTooSsmt\r\nCdnXBfjVMoh359AYrE4rXXGoTm+kpDpBe+YafHF/NXaFralKyLRfV+Rrg/69\r\nlNWjUqYm+nE3bYHQYLZLupl5CPqqoDpR8N0li5ktRp4Tc+ol0ck3RzmeuizI\r\nQpdoN1M/XFW52GF7txzZj+lZYaPpP4UOcrukncdQe6u4CC42Eq4l+zqyBPTp\r\n5J1GATSgkSF8fIqowDoGE4CRup+ZH7MkZ6VbQNe9fxvNPfDg22CfzCgbOKGO\r\nWZC7XFCaUX3GAN4Y0A7GcDMYOD5qlRPnMv7RKecrdlSjom7KMYlWm2YODGsg\r\n9eWWryH/0nIZFA2v0FPp7kW1RW7U3rXIP5LdNudZuka57lZbn8Wl6O7vlM9Y\r\noYUMpQScxKhntVdMryldfoNkanVNUbiALUk=\r\n=hCHp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"agss","email":"georgina.sala18@gmail.com"},"directories":{},"maintainers":[{"name":"agss","email":"georgina.sala18@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mylibdts-testing_1.0.0_1657211776523_0.15018103086993628"},"_hasShrinkwrap":false}},"time":{"created":"2022-07-07T16:16:11.439Z","0.1.0":"2022-07-07T16:16:11.619Z","modified":"2022-07-07T16:36:16.789Z","1.0.0":"2022-07-07T16:36:16.709Z"},"maintainers":[{"name":"agss","email":"georgina.sala18@gmail.com"}],"description":"Congrats! You just saved yourself hours of work by bootstrapping this project with DTS. Let’s get you oriented with what’s here and how to use it.","author":{"name":"AGSS18"},"license":"MIT","readme":"# DTS React User Guide\n\nCongrats! You just saved yourself hours of work by bootstrapping this project with DTS. Let’s get you oriented with what’s here and how to use it.\n\n> This DTS setup is meant for developing React component libraries (not apps!) that can be published to NPM. If you’re looking to build a React-based app, you should use `create-react-app`, `razzle`, `nextjs`, `gatsby`, or `react-static`.\n\n> If you’re new to TypeScript and React, checkout [this handy cheatsheet](https://github.com/sw-yx/react-typescript-cheatsheet/)\n\n## Commands\n\nDTS scaffolds your new library inside `/src`, and also sets up a [Vite-based](https://vitejs.dev) playground for it inside `/example`.\n\nThe recommended workflow is to run DTS in one terminal:\n\n```bash\nnpm start # or yarn start\n```\n\nThis builds to `/dist` and runs the project in watch mode so any edits you save inside `src` causes a rebuild to `/dist`.\n\nThen run the example inside another:\n\n```bash\ncd example\nnpm i # or yarn to install dependencies\nnpm start # or yarn start\n```\n\nThe default example imports and live reloads whatever is in `/dist`, so if you are seeing an out of date component, make sure DTS is running in watch mode like we recommend above. \n\nTo do a one-off build, use `npm run build` or `yarn build`.\n\nTo run tests, use `npm test` or `yarn test`.\n\n## Configuration\n\nCode quality is set up for you with `prettier`, `husky`, and `lint-staged`. Adjust the respective fields in `package.json` accordingly.\n\n### Jest\n\nJest tests are set up to run with `npm test` or `yarn test`.\n\n### Bundle analysis\n\nCalculates the real cost of your library using [size-limit](https://github.com/ai/size-limit) with `npm run size` and visulize it with `npm run analyze`.\n\n#### Setup Files\n\nThis is the folder structure we set up for you:\n\n```txt\n/example\n  index.html\n  index.tsx       # test your component here in a demo app\n  package.json\n  tsconfig.json\n/src\n  index.tsx       # EDIT THIS\n/test\n  index.test.tsx  # EDIT THIS\n.gitignore\npackage.json\nREADME.md         # EDIT THIS\ntsconfig.json\n```\n\n#### React Testing Library\n\nWe do not set up `react-testing-library` for you yet, we welcome contributions and documentation on this.\n\n### Rollup\n\nDTS uses [Rollup](https://rollupjs.org) as a bundler and generates multiple rollup configs for various module formats and build settings. See [Optimizations](#optimizations) for details.\n\n### TypeScript\n\n`tsconfig.json` is set up to interpret `dom` and `esnext` types, as well as `react` for `jsx`. Adjust according to your needs.\n\n## Continuous Integration\n\n### GitHub Actions\n\nTwo actions are added by default:\n\n- `main` which installs deps w/ cache, lints, tests, and builds on all pushes against a Node and OS matrix\n- `size` which comments cost comparison of your library on every pull request using [`size-limit`](https://github.com/ai/size-limit)\n\n## Optimizations\n\nPlease see the main `dts` [optimizations docs](https://github.com/weiran-zsd/dts-cli#optimizations). In particular, know that you can take advantage of development-only optimizations:\n\n```js\n// ./types/index.d.ts\ndeclare var __DEV__: boolean;\n\n// inside your code...\nif (__DEV__) {\n  console.log('foo');\n}\n```\n\nYou can also choose to install and use [invariant](https://github.com/weiran-zsd/dts-cli#invariant) and [warning](https://github.com/weiran-zsd/dts-cli#warning) functions.\n\n## Module Formats\n\nCJS, ESModules, and UMD module formats are supported.\n\nThe appropriate paths are configured in `package.json` and `dist/index.js` accordingly. Please report if any issues are found.\n\n## Deploying the Example Playground\n\nThe Playground is just a simple [Vite](https://vitejs.dev) app, you can deploy it anywhere you would normally deploy that. Here are some guidelines for **manually** deploying with the Netlify CLI (`npm i -g netlify-cli`):\n\n```bash\ncd example # if not already in the example folder\nnpm run build # builds to dist\nnetlify deploy # deploy the dist folder\n```\n\nAlternatively, if you already have a git repo connected, you can set up continuous deployment with Netlify:\n\n```bash\nnetlify init\n# build command: yarn build && cd example && yarn && yarn build\n# directory to deploy: example/dist\n# pick yes for netlify.toml\n```\n\n## Named Exports\n\nPer Palmer Group guidelines, [always use named exports.](https://github.com/palmerhq/typescript#exports) Code split inside your React app instead of your React library.\n\n## Including Styles\n\nThere are many ways to ship styles, including with CSS-in-JS. DTS has no opinion on this, configure how you like.\n\nFor vanilla CSS, you can include it at the root directory and add it to the `files` section in your `package.json`, so that it can be imported separately by your users and run through their bundler's loader.\n\n## Publishing to NPM\n\nWe recommend using [np](https://github.com/sindresorhus/np).\n\n## Usage with Lerna\n\nWhen creating a new package with DTS within a project set up with Lerna, you might encounter a `Cannot resolve dependency` error when trying to run the `example` project. To fix that you will need to make changes to the `package.json` file _inside the `example` directory_.\n\nThe problem is that due to the nature of how dependencies are installed in Lerna projects, the aliases in the example project's `package.json` might not point to the right place, as those dependencies might have been installed in the root of your Lerna project.\n\nChange the `alias` to point to where those packages are actually installed. This depends on the directory structure of your Lerna project, so the actual path might be different from the diff below.\n\n```diff\n   \"alias\": {\n-    \"react\": \"../node_modules/react\",\n-    \"react-dom\": \"../node_modules/react-dom\"\n+    \"react\": \"../../../node_modules/react\",\n+    \"react-dom\": \"../../../node_modules/react-dom\"\n   },\n```\n\nAn alternative to fixing this problem would be to remove aliases altogether and define the dependencies referenced as aliases as dev dependencies instead. [However, that might cause other problems.](https://github.com/formium/tsdx/issues/64)\n","readmeFilename":"README.md"}