{"_id":"@benyap/tscpaths","_rev":"19-db0a52585edd28b3acb6196ffe18ef5e","time":{"0.0.10-rc.0":"2021-07-02T13:11:10.253Z","0.0.10-rc.1":"2021-07-02T13:11:10.253Z","0.0.10-rc.2":"2021-07-02T13:11:10.253Z","0.0.10-rc.3":"2021-07-02T13:11:10.253Z","0.0.10-rc.4":"2021-07-02T13:11:10.253Z","0.0.10-rc.5":"2021-07-02T13:11:10.253Z","0.0.10-rc.6":"2021-07-02T13:11:10.253Z","0.0.10-rc.7":"2021-07-02T13:11:10.253Z","0.0.10-rc.8":"2021-07-02T13:11:10.253Z","created":"2021-07-03T13:38:38.656Z","0.1.0":"2021-07-03T13:38:39.029Z","modified":"2023-02-09T12:50:21.018Z","0.1.1":"2021-07-03T14:55:57.487Z","0.1.2":"2021-10-02T11:10:51.228Z"},"name":"@benyap/tscpaths","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@benyap/tscpaths","version":"0.1.0","description":"Replace absolute paths to relative paths after typescript compilation","main":"cjs/main.js","module":"lib/main.js","types":"lib/main.d.ts","bin":{"tscpaths":"cjs/main.js"},"directories":{"lib":"lib"},"scripts":{"prebuild":"yarn clear && yarn format","build":"yarn build:esm && yarn build:cjs","build:esm":"tsc -p ./tsconfig.esm.json","build:cjs":"tsc -p ./tsconfig.cjs.json","clear":"rm -rf ./lib ./cjs ./coverage","format":"prettier --write \"./src/**/*.ts\"","start:dev":"ts-node src/main.ts","start":"node cjs/main.js","test":"jest","test:coverage":"jest --coverage","test:watch":"jest --watch","release-rc":"standard-version --skip.changelog --prerelease rc","release":"standard-version --skip.changelog"},"repository":{"type":"git","url":"git+https://github.com/benyap/tscpaths.git"},"keywords":["typescript","paths","alias","absolute path","relative path","compilation","tsc"],"author":{"name":"Ben Yap","email":"contact@benyap.com"},"license":"MIT","bugs":{"url":"https://github.com/benyap/tscpaths/issues"},"homepage":"https://github.com/benyap/tscpaths#readme","devDependencies":{"@types/jest":"26.0.23","@types/node":"15.14.0","jest":"27.0.6","prettier":"2.3.2","standard-version":"9.3.0","ts-jest":"27.0.3","ts-node":"10.0.0","typescript":"4.3.5"},"dependencies":{"ansi-colors":"4.1.1","commander":"8.0.0","globby":"11.0.4"},"gitHead":"eafefa97c899690142066c9b87f1e00bc78e8e33","_id":"@benyap/tscpaths@0.1.0","_nodeVersion":"14.17.0","_npmVersion":"7.19.0","dist":{"integrity":"sha512-zMbtjkTvaxZ/DMCoj7vryQnZ1VPDsZek2Xu4RBBzEtluZDWD3hK3oVw4RhCY4OYJ/F7uNrn9z3WHA0uueO/hwQ==","shasum":"12e783fe7e3504f702f9ce353701d1b5a76f1e4c","tarball":"https://registry.npmjs.org/@benyap/tscpaths/-/tscpaths-0.1.0.tgz","fileCount":77,"unpackedSize":55416,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg4GhfCRA9TVsSAnZWagAArFQQAKJXrwogkxnIq7lL9/f5\nPZNi73758wotilehFxUZ9SzCf6pM2vE6iX0K89mZILXIIZRqb82XC8jUROrI\nqTOobvRQZHlBkFq8DkLs5S/dRJeoHsDWCSWLQtF+RX+ljDtEMXE2BC+GWrql\n7hfN80hDI5swfRGevkCmZ3sw4ZsrC8VkfIDUkrtFc/tWXikvloCdLOWktotJ\ngh9ferikulIii0V3uJNRumQ5i88dHvUyhAzjoyypM7LW+8A9oF4lJ6xlktoQ\n6uQjJ6ADlcmyyIGBCHHbizxc35yR4kIdhjoqYPSwI1MpOH3zYHLwUVvvrki1\nQw4ht1VlRe2y3Vj9SBBUr+SBPAObkypIwYzWPpiCCBAluEUPPDsLVaRYsaL3\n7AwV6POMwdC6ro+z/bUwylAcxqod+O2a5Ol/hGT8MddSOMcerB7ELMlvy0iU\nfJJLH4MbdkVU6ru24w21EB9tStZjs1r5TSVXmLhvpkehNkAekC73ZiIZAlrQ\n+KEXolfB1B+DNf5s1+sMtp3JPNfdeS5Rou4Q9h2/hyq9Oo1oD/Hh5GTQ8jHK\nT0oh20cxFWc+lOlhVCAInQx3LCGUSm0XvJFyeJ/Ahs7PTOnzsMD8YiKSpqw0\nYe6XdscoLvsT9sF4OJNu1l4vtV4izaeoATHyEjBZV/IxAfrqxI6bTlr+MkR9\ndana\r\n=Jp4z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIClTLYWAfRPztcNjEET0eMzp0+XVr6CqOjjENRhU9DTeAiEA6JOxzPdVj9UoU10QAe61Lsahl1ww27+nnSz1dIZeC34="}]},"_npmUser":{"name":"bwyap","email":"contact@benyap.com"},"maintainers":[{"name":"bwyap","email":"contact@benyap.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tscpaths_0.1.0_1625319518913_0.4542528718125405"},"_hasShrinkwrap":false,"deprecated":"WARNING: This package has been renamed to resolve-tspaths. Install resolve-tspaths instead."},"0.1.1":{"name":"@benyap/tscpaths","version":"0.1.1","description":"Replace absolute paths to relative paths after typescript compilation","main":"cjs/main.js","module":"lib/main.js","types":"lib/main.d.ts","bin":{"tscpaths":"cjs/main.js"},"directories":{"lib":"lib"},"scripts":{"prebuild":"yarn clear && yarn format","build":"yarn build:esm && yarn build:cjs","build:esm":"tsc -p ./tsconfig.esm.json","build:cjs":"tsc -p ./tsconfig.cjs.json","clear":"rm -rf ./lib ./cjs ./coverage","format":"prettier --write \"./src/**/*.ts\"","start:dev":"ts-node src/main.ts","start":"node cjs/main.js","test":"jest","test:coverage":"jest --coverage","test:watch":"jest --watch","release-rc":"standard-version --skip.changelog --prerelease rc","release":"standard-version --skip.changelog"},"repository":{"type":"git","url":"git+https://github.com/benyap/tscpaths.git"},"keywords":["typescript","paths","alias","absolute path","relative path","compilation","tsc"],"author":{"name":"Ben Yap","email":"contact@benyap.com"},"license":"MIT","bugs":{"url":"https://github.com/benyap/tscpaths/issues"},"homepage":"https://github.com/benyap/tscpaths#readme","devDependencies":{"@types/jest":"26.0.23","@types/node":"15.14.0","jest":"27.0.6","prettier":"2.3.2","standard-version":"9.3.0","ts-jest":"27.0.3","ts-node":"10.0.0","typescript":"4.3.5"},"dependencies":{"ansi-colors":"4.1.1","commander":"8.0.0","globby":"11.0.4"},"gitHead":"815b21e3483b8d6fbe369cb5f429eae99808e349","_id":"@benyap/tscpaths@0.1.1","_nodeVersion":"14.17.0","_npmVersion":"7.19.0","dist":{"integrity":"sha512-N5nsf+9tXazZ9vmAYVkuvXYwn8F9nyfum+JdGK5jq36IiPKfPZb1WkROvpGxZTQegQdsPU/8CURF7wX8rI7HUA==","shasum":"ccf2bce5fc14d9c297d316904d6f9a1501848953","tarball":"https://registry.npmjs.org/@benyap/tscpaths/-/tscpaths-0.1.1.tgz","fileCount":77,"unpackedSize":56408,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg4Hp+CRA9TVsSAnZWagAA3V8P/20bm2E5147ZlJJaOiTL\nnzWt/r+yJ/XUxhDeWXpFRQw0/NTfQLZ8yj0RkSubfgBKkY0p3OmXQciltfN8\nNGFbyxb3Refbt9f88l+iGj8BwoOOgg4muMu2XyCHL3d0GK2oGWJH0VY6JxKH\nD8O6nqV2El3HJuMg1+bbTxOGlPXsWeofLkzTMNUbgPi9Kc4kUaMNwOVvN2wV\noBOQz6Dd/+nJ6XFzby0arZuvlnKkvWF+Nt7pty3Q+e40dF+gGtkTo0fALpMn\nNzfWEHPLxTODDY8EL1xvHZVfkOmQXwKBvtNuouY6ewGp0h9X6G3Ox6HASiSq\n7rB7eqDLiEKU4IbMAWavHaXqBxdMRQuOkogvH0TqNqu5hhkWBO3zmzSRS6Y1\ncVTnYdmygF0yBqhfvu6yzFwObJSvUe1tbptVSqv4CFwn1rVWwYlYvDc4SfNy\n4ItedjKifv776YUK5QBfCq1OLCKhMI/R2+UQWnDJ70sz08V0xqVO4KMP3fIM\nwYnOv+a6T539u0cv6uvjMzQqfyWohT7cCFk66kp7iM0OZ2KxsR1zU7UG9tda\nye9mjQU/4VKZplZBGnjdw8ry7lPD6gjmZPB2vPGTiOZu5cceI2HxNzSsBZVY\nIaqi7dXhxRnSPEDjtwRGdlH65wGUFF1lwsSEQs3efFbocPZDvdxsGjlrZ87p\nPqYY\r\n=EcnD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDlOA+JELrh9M9X4dRrEVg1Ox9iTqp3lE8lpxQhUhpNQAIgHlUZ434wbv3AvtXdwa2mcr2BaCAtT5DtN48tIyIoA4A="}]},"_npmUser":{"name":"bwyap","email":"contact@benyap.com"},"maintainers":[{"name":"bwyap","email":"contact@benyap.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tscpaths_0.1.1_1625324157350_0.08821131170554497"},"_hasShrinkwrap":false,"deprecated":"WARNING: This package has been renamed to resolve-tspaths. Install resolve-tspaths instead."},"0.1.2":{"name":"@benyap/tscpaths","version":"0.1.2","description":"Replace absolute paths to relative paths after typescript compilation","main":"cjs/main.js","module":"lib/main.js","types":"lib/main.d.ts","bin":{"tscpaths":"cjs/main.js"},"directories":{"lib":"lib"},"scripts":{"prebuild":"yarn clear && yarn format","build":"yarn build:esm && yarn build:cjs","build:esm":"tsc -p ./tsconfig.esm.json","build:cjs":"tsc -p ./tsconfig.cjs.json","clear":"rm -rf ./lib ./cjs ./coverage","format":"prettier --write \"./src/**/*.ts\"","start:dev":"ts-node src/main.ts","start":"node cjs/main.js","test":"jest","test:coverage":"jest --coverage","test:watch":"jest --watch","release-rc":"standard-version --prerelease rc","release":"standard-version"},"repository":{"type":"git","url":"git+https://github.com/benyap/tscpaths.git"},"keywords":["typescript","paths","alias","absolute path","relative path","compilation","tsc"],"author":{"name":"Ben Yap","email":"contact@benyap.com"},"license":"MIT","bugs":{"url":"https://github.com/benyap/tscpaths/issues"},"homepage":"https://github.com/benyap/tscpaths#readme","devDependencies":{"@types/jest":"26.0.23","@types/node":"15.14.0","jest":"27.0.6","prettier":"2.3.2","standard-version":"9.3.0","ts-jest":"27.0.3","ts-node":"10.0.0","typescript":"4.3.5"},"dependencies":{"ansi-colors":"4.1.1","commander":"8.0.0","globby":"11.0.4"},"gitHead":"386a793563009709afb3bc90c49ee88ae936a99b","_id":"@benyap/tscpaths@0.1.2","_nodeVersion":"14.17.0","_npmVersion":"7.22.0","dist":{"integrity":"sha512-Ug3P35uvR4JHYnRrF7Z+ifi/qQdc6Sn+OdCpaGl3PqYMiWZjxepJ1PtLwJosLhy1LzLGBoMk5VyQOqXG+cSeRA==","shasum":"30e0ccdc1cc2a0dd53c6037cd0c65de99a811101","tarball":"https://registry.npmjs.org/@benyap/tscpaths/-/tscpaths-0.1.2.tgz","fileCount":77,"unpackedSize":56543,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/AGz/CS1R7rS3F/kF3c48kHAuv61MzvHcVdOM8eZCvwIgDt57pJnE1TeUFzlFG4zcyaUHJVcz52tmDPHaIJPfh0g="}]},"_npmUser":{"name":"bwyap","email":"contact@benyap.com"},"maintainers":[{"name":"bwyap","email":"contact@benyap.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tscpaths_0.1.2_1633173050882_0.5721607980359222"},"_hasShrinkwrap":false,"deprecated":"WARNING: This package has been renamed to resolve-tspaths. Install resolve-tspaths instead."}},"maintainers":[{"email":"contact@benyap.com","name":"bwyap"},{"email":"contact@benyap.coM","name":"benyap"}],"description":"Replace absolute paths to relative paths after typescript compilation","homepage":"https://github.com/benyap/tscpaths#readme","keywords":["typescript","paths","alias","absolute path","relative path","compilation","tsc"],"repository":{"type":"git","url":"git+https://github.com/benyap/tscpaths.git"},"author":{"name":"Ben Yap","email":"contact@benyap.com"},"bugs":{"url":"https://github.com/benyap/tscpaths/issues"},"license":"MIT","readme":"# This package is deprecated\n\nPlease use [resolve-tspaths](https://github.com/benyap/resolve-tspaths) instead! It is a rewrite and tested version of this package.\n\n---\n\n# @benyap/tscpaths\n\n> This is a fork of joonhocho's\n> [tscpaths](https://github.com/joonhocho/tscpaths). Credit goes to\n> [joonhocho](https://github.com/joonhocho) for the original code.\n\n[![npm version](https://badge.fury.io/js/%40benyap%2Ftscpaths.svg)](https://badge.fury.io/js/%40benyap%2Ftscpaths)\n[![Dependency Status](https://david-dm.org/benyap/tscpaths.svg)](https://david-dm.org/benyap/tscpaths)\n[![License](https://img.shields.io/:license-mit-blue.svg)](LICENSE)\n\nIf you use Typescript's\n[path mapping](https://www.typescriptlang.org/docs/handbook/module-resolution.html#path-mapping)\nfeature (by setting `baseUrl` and `paths` in `tsconfig.json`), you may have\nfound that transpiling with `tsc` doesn't convert your aliases to proper\nrelative paths. This causes problems as the transpiled code can't actually run\nwith those path aliases - you'll get a \"module not found\" error.\n\nUse this package after `tsc` transpilation to replace path aliases with relative\npaths so that you can develop using path aliases whilst still being able to ship\nworking JavaScript code.\n\n## Comparison to [tsconfig-paths](https://github.com/dividab/tsconfig-paths)\n\n- Use during compile time - no runtime dependencies!\n\n## Usage\n\n1. Install `@benyap/tscpaths` as a dev dependency using npm or yarn.\n\n   ```sh\n   npm install --save-dev @benyap/tscpaths\n   # or\n   yarn add -D @benyap/tscpaths\n   ```\n\n2. Add it as a part of your build script in `package.json` after the code has\n   been transpiled.\n\n   ```json\n   \"scripts\": {\n     \"build\": \"tsc && tscpaths -p tsconfig.json -s ./src -o ./out\",\n   }\n   ```\n\n### Options\n\n| flag      | shorthand | required | default       | description                                             |\n| --------- | --------- | -------- | ------------- | ------------------------------------------------------- |\n| --src     | -s        | yes      |               | source directory (where the source code is)             |\n| --out     | -o        | yes      |               | output directory of transpiled code (tsc --outDir)      |\n| --project | -p        | no       | tsconfig.json | path to the project configuration file (tsconfig.json)  |\n| --ext     |           | no       | js            | comma separated list of extensions to match and replace |\n| --verbose |           | no       |               | show verbose output                                     |\n\n## Disclaimer\n\nThis is not a mature nor is it a well tested project. It works for some personal\nuse cases. Feel free to fork or submit pull requests.\n","readmeFilename":"README.md"}