{"id":16527784,"url":"https://github.com/infctr/fork-ts-react-scripts","last_synced_at":"2026-06-08T19:31:19.252Z","repository":{"id":57240194,"uuid":"155695802","full_name":"infctr/fork-ts-react-scripts","owner":"infctr","description":"A fork of CRA2 that supports tsconfig.json path","archived":false,"fork":false,"pushed_at":"2018-11-02T13:15:36.000Z","size":87,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-08T17:08:55.276Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/infctr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-01T10:03:19.000Z","updated_at":"2018-11-02T13:15:37.000Z","dependencies_parsed_at":"2022-09-05T08:21:43.055Z","dependency_job_id":null,"html_url":"https://github.com/infctr/fork-ts-react-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/infctr/fork-ts-react-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infctr%2Ffork-ts-react-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infctr%2Ffork-ts-react-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infctr%2Ffork-ts-react-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infctr%2Ffork-ts-react-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infctr","download_url":"https://codeload.github.com/infctr/fork-ts-react-scripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infctr%2Ffork-ts-react-scripts/sbom","scorecard":{"id":487845,"data":{"date":"2025-08-11","repo":{"name":"github.com/infctr/fork-ts-react-scripts","commit":"7450f7a1080c78bf0890745c2bbf034d9b2c0e60"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-19T18:15:32.626Z","repository_id":57240194,"created_at":"2025-08-19T18:15:32.626Z","updated_at":"2025-08-19T18:15:32.626Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34078019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T17:36:46.669Z","updated_at":"2026-06-08T19:31:19.224Z","avatar_url":"https://github.com/infctr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fork-ts-react-scripts\n\nA fork of CRA 2.1+ that doesn't mess up with `tsconfig.json` absolute paths import feature.\n\n## How it works\n\nOriginal CRA with typescript support overrides `paths` and `baseUrl` settings in an existing typescript project enforcing to use relative paths imports ([refer](https://github.com/facebook/create-react-app/issues/5585#issuecomment-433751395)) which pretty much sucks. This version of `react-scripts` removes these strict checks allowing to keep `paths` in `tsconfig.json` just to keep the changes minimal.\n\n## Usage\n\nIn order to make absolute path imports work webpack config has to be tweaked just a tad bit with the help of [arackaf/customize-cra](https://github.com/arackaf/customize-cra) package and [timarney/react-app-rewired](https://github.com/timarney/react-app-rewired). Install these two and create a `config-overrides.js` file at the root of your project. Add aliases and module directories that you like for webpack `resolve` settings:\n\n```js\n// config-overrides.js\nconst path = require('path');\nconst {\n  override,\n  addWebpackAlias,\n  addBundleVisualizer,\n} = require('customize-cra');\n\nconst addWebpackModules = modules =\u003e config =\u003e {\n  if (!config.resolve) {\n    config.resolve = {};\n  }\n\n  if (!config.resolve.modules) {\n    config.resolve.modules = ['node_modules'];\n  }\n\n  config.resolve.modules = [...config.resolve.modules, ...modules];\n\n  return config;\n};\n\nmodule.exports = override(\n  process.env.BUNDLE_VISUALIZE \u0026\u0026 addBundleVisualizer(),\n  addWebpackModules([path.resolve(__dirname, 'src')]),\n  addWebpackAlias({\n    ['scripts']: path.resolve(__dirname, 'scripts'),\n    ['e2e']: path.resolve(__dirname, 'e2e'),\n  })\n);\n```\n\nAdd `fork-ts-react-scripts` and remove `react-scripts`:\n\n```sh\nyarn remove react-scripts\nyarn add fork-ts-react-scripts\n```\n\nUpdate your `package.json` tasks to make sure CRA's config gets \"rewired\":\n\n```diff\n\"scripts\": {\n-  \"start\": \"react-scripts start\",\n+  \"start\": \"react-app-rewired start --scripts-version fork-ts-react-scripts\",\n-  \"build\": \"react-scripts build\"\n+  \"build\": \"react-app-rewired build --scripts-version fork-ts-react-scripts\"\n}\n```\n\nAnd that's it! Now you can have your cake and eat it 🎉.\n\n## Tracking changes from the CRA upstream\n\nForking a single package from a monorepo is not as straightforward as it might seem, so it was created as a git subtree of the original CRA with squashed commits preserving the ability to track upstream changes. Refer to this [gist](https://gist.github.com/alfredringstad/ac0f7a1e081e9ee485e653b6a8351212) for some guidance.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfctr%2Ffork-ts-react-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfctr%2Ffork-ts-react-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfctr%2Ffork-ts-react-scripts/lists"}