{"id":20529734,"url":"https://github.com/7ph/esbuild-plugin-shelljs","last_synced_at":"2025-10-12T12:13:21.599Z","repository":{"id":242786851,"uuid":"810531795","full_name":"7PH/esbuild-plugin-shelljs","owner":"7PH","description":"Plugin for esbuild to be able to bundle shelljs","archived":false,"fork":false,"pushed_at":"2024-09-24T00:42:03.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T23:56:24.611Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/shelljs/shelljs/issues/1160","language":"TypeScript","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/7PH.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-04T22:01:48.000Z","updated_at":"2024-10-18T18:50:11.000Z","dependencies_parsed_at":"2024-06-05T01:36:15.831Z","dependency_job_id":"8858f9d7-6660-4315-96f1-5876f416c9cf","html_url":"https://github.com/7PH/esbuild-plugin-shelljs","commit_stats":null,"previous_names":["7ph/esbuild-plugin-shelljs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7PH%2Fesbuild-plugin-shelljs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7PH%2Fesbuild-plugin-shelljs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7PH%2Fesbuild-plugin-shelljs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7PH%2Fesbuild-plugin-shelljs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/7PH","download_url":"https://codeload.github.com/7PH/esbuild-plugin-shelljs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242133820,"owners_count":20077144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-11-15T23:33:54.852Z","updated_at":"2025-10-12T12:13:16.538Z","avatar_url":"https://github.com/7PH.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esbuild-plugin-shelljs\n\nPlugin for esbuild to be able to bundle [shelljs](https://github.com/shelljs/shelljs). Without this fix, bundling shelljs gives error:\n\n```text\nError: Module not found in bundle: ./src/cat\n```\n\n### Install\n\n```bash\nnpm i -D esbuild-plugin-shelljs\n```\n\n```javascript\nimport { shellJsPlugin } from \"esbuild-plugin-shelljs\";\n\nesbuild.build({\n  // [..]\n  plugins: [shellJsPlugin],\n});\n```\n\n### How does it work\n\nThis plugin patches the `shelljs` dependency before bundling it. Esbuild knows the path of `shelljs` local dependencies with `.js` suffixes, but a dynamic import which omits the extension makes esbuild fail to resolve dependencies. The patch adds `.js` to the dynamic imports.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7ph%2Fesbuild-plugin-shelljs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F7ph%2Fesbuild-plugin-shelljs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7ph%2Fesbuild-plugin-shelljs/lists"}